Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 471 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 471 Bytes

RESTAPI

  • This is a basic code of REST API with NodeJs and Express that gives GET, POST, PUT, DELETE requests to local host
  • To Run the Project: Download NPM packages by running npm install
  • Then Run

npm start to start the server on port

localhost/3000 to get into server

localhost/3000/api/courses to get JSON of courses array

localhost/3000/api/courses/:id to get JSON of specific course in courses array