Skip to content

About

REST API with Node.js and Express.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

node-ts-api

The purpose of this project is to learn the basics of typescript and apply this knowledge to node.js and express.

Due to that, currently other concepts like database and architecture are not important and therefore not implemented.

Get started

npm install
tsc -w
npm run dev

Routes

Post

Include the JSON in body request

{
    "text" : "Add eslint support!"
}

Get

Example response

{
    "message": "List of todos",
    "data": [
        {
            "id": "0.6990519671278974",
            "text": "Add eslint support!"
        }
    ]
}

Patch

Example response

{
    "message": "Todo is updated",
    "data": {
        "id": "0.6990519671278974",
        "text": "Add prettier support."
    }
}

Delete

Example response

{
    "message": "Todo is deleted",
    "data": {
        "id": "0.6990519671278974",
        "text": "Add prettier support."
    }
}

About

REST API with Node.js and Express.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages