Skip to content

Instantly share code, notes, and snippets.

@Kumawatlalit912
Last active December 9, 2022 19:08
Show Gist options
  • Save Kumawatlalit912/b085dcd04a487d15cdcc013bb11124cc to your computer and use it in GitHub Desktop.
Save Kumawatlalit912/b085dcd04a487d15cdcc013bb11124cc to your computer and use it in GitHub Desktop.
---first
dowload this npm install -g json-server
then
create fake data---->
{
"users": [
{
"id": 1,
"name": "user1",
"email": "user1@testmail.com"
}
]
}
THEN
json-server --watch data.json
THEN OPEN YOUR POSTMAN AND DO YOUR TESTING
post get del put (using id etc http://localhost:3000/users/1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment