This example showcases how to use a Express server.
Launch the app from the Terminal:
$ node server.js
Method | URL | Description |
---|---|---|
GET | /todos | List todo list |
POST | /todos | Create a new todo |
GET | /todos/:id | Retrieve a todo task |
PUT | /todos/:id | Update a todo task |
You can test API using cURL
$ curl https://your.api.host/todos