Skip to content

impactbyte-learn/code-expressjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learn Express.js

Greenkeeper badge

Features

  1. Get all todos
  2. Save new todo

REST API Specification

  • REST = Representational State Transfer, between request and response.
  • RESTful API = Conform with REST API convention

Good example:

Endpoint HTTP Description
/todos GET Get all todo list
/todos/:id GET Get one todo
/todos POST Save new todo
/todos DELETE Remove all todo list
/todos/:id DELETE Remove one todo
/todos/:id PUT Update one todo
/todos?search GET Search todo

Bad example:

Endpoint HTTP Description
/todos/display GET Get all todo list
/todos/display/:id GET Get one todo
/todos/save GET Save new todo
/todos/delete GET Delete all todo

Development

npm install
npm run dev

Production

npm run start

Releases

No releases published

Packages

No packages published