Create A REST API With JSON Server study note
RESTful code
REST, or Representational State Transfer, is an architectural style for providing standards between computer systems on the web, making it easier for systems to communicate with each other. In the REST architectural style, the implementation of the client and the implementation of the server can be done independently without each knowing about the other.
Making Requests
- an HTTP verb (GET, POST, PUT, DELETE)
- a header, which allows the client to pass along information about the request
- a path to a resource
- an optional message body containing data
JSON Server is a simple project that helps you to setup a REST API with CRUD operations very fast.
$ npm install -g json-servercreate a new JSON file with name db.json
Get Eddie Na’s stories in your inbox
Join Medium for free to get updates from this writer.
start JSON server
$ json-server --watch db.jsonmore info : https://github.com/typicode/json-server
reference : https://www.codecademy.com/article/what-is-rest https://medium.com/codingthesmartway-com-blog/create-a-rest-api-with-json-server-36da8680136d
https://gmlwjd9405.github.io/2018/09/21/rest-and-restful.html





