Skip to content

Mandarin vocabulary REST API. Node | Restify | JWT

Notifications You must be signed in to change notification settings

becathey/mandarin-vocab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mandarin Vocabulary API

Mandarin Vocabulary API is a REST API built with Node.js and Restify for studying Mandarin vocabulary. It uses JSON Web Tokens for authentication and authorization.

Project Setup

npm install

Usage

Get Words

Retrieve a list of Mandarin vocabulary words.

Endpoint

GET /words

Example Response

[
    {
        "_id": "6042f4c0476e3b42b249b547",
        "mandarin": "一",
        "pinyin": "yī",
        "english": "one",
        "wordId": 2,
        "updatedAt": "2021-03-06T03:19:28.351Z",
        "createdAt": "2021-03-06T03:19:28.351Z",
        "__v": 0
    },
    {
        "_id": "6042f521476e3b42b249b384",
        "mandarin": "是",
        "pinyin": "shì",
        "english": "be",
        "wordId": 4,
        "updatedAt": "2021-03-06T03:21:05.303Z",
        "createdAt": "2021-03-06T03:21:05.303Z",
        "__v": 0
    },
    …
]

Get Single Word

Retrieve a single Mandarin vocabulary word by ID.

Endpoint

GET /words/:id

Example Response

{
    "_id": "604aea0d920f3700153d34a7",
    "mandarin": "学",
    "pinyin": "xué",
    "english": "study",
    "wordId": 50,
    "updatedAt": "2021-03-12T04:11:57.621Z",
    "createdAt": "2021-03-12T04:11:57.621Z",
    "__v": 0
}

About

Mandarin vocabulary REST API. Node | Restify | JWT

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published