Rest API built with Express JS, which returns json with post examples.
npm install
npm start
- [GET] http://localhost:3100/api/posts
- [GET] http://localhost:3100/api/posts/:id
- [POST] http://localhost:3100/api/posts
- [PUT] http://localhost:3100/api/posts/:id
- [DELETE] http://localhost:3100/api/posts
-
JSON contract used to create a post:
{ "userId": 1, "title": "email-example", "body": "password-example", }
-
JSON contract returned:
{ "userId": 1, "id": "1", "title": "email-example", "body": "password-example", }
- Node.js
- Express.js
The application is deployed in: JSON-POSTS