Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mdshimulmahmud/redux-toolkit-video-gallery-json-server
https://github.com/mdshimulmahmud/redux-toolkit-video-gallery-json-server
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mdshimulmahmud/redux-toolkit-video-gallery-json-server
- Owner: MdShimulMahmud
- Created: 2023-11-24T03:01:03.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2023-11-24T04:52:09.000Z (12 months ago)
- Last Synced: 2023-11-24T05:30:14.191Z (12 months ago)
- Language: JavaScript
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lws-json-server-todos
Example in memory todos api with json-server by Learn with Sumit
# Installation
```bash
git clone [email protected]:learnwithsumit/lws-json-server-todos.git
cd lws-json-server-todos
npm install json-server
npm start
```Now opens:
- http://localhost:3000
You now have a full REST API. Test with POSTMAN or any other REST Client):
Retrieve all (GET):
```bash
GET http://localhost:3000/todos
```Retrieve one (GET):
```bash
GET http://localhost:3000/todos/1
```Post a todo (POST):
```bash
POST http://localhost:3000/todos text="Learn Redux" completed=false color="red"
```Update todo (PUT):
```bash
PUT http://localhost:3000/todos/3 name="Learn Redux with Learn with Sumit" completed=true color="green"
```Delete todo (DELETE):
```bash
DELETE http://localhost:3000/todos/1
```# Links
- https://github.com/typicode/json-server
- Jswon view Chrome plugin: https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc
- Learn with Sumit official website: htts://learnwithsumit.com