Skip to content

farhadjaman/fjjsonserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lws-json-server-todos

Example in memory todos api with json-server by Learn with Sumit

Installation

git clone [email protected]:learnwithsumit/lws-json-server-todos.git
cd lws-json-server-todos
npm install json-server
npm start

Now opens:

You now have a full REST API. Test with POSTMAN or any other REST Client):

Retrieve all (GET):

GET http://localhost:3000/todos

Retrieve one (GET):

GET http://localhost:3000/todos/1

Post a todo (POST):

POST http://localhost:3000/todos text="Learn Redux" completed=false color="red"

Update todo (PUT):

PUT http://localhost:3000/todos/3 name="Learn Redux with Learn with Sumit" completed=true color="green"

Delete todo (DELETE):

DELETE http://localhost:3000/todos/1

Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages