Skip to content

uma-victor1/CRUD-app-with-JSON-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRUD-app-with-JSON-file

Curl Commands to fetch the data

==================================================================================================================

List Account

Request curl --location 'http://localhost:3000/account/list'

Response: { "1465": { "username": "madfinger11", "email": "[email protected]", "password": "yddam5342" }, "2646": { "username": "yemiakin", "email": "[email protected]", "password": "iy@g65" }, "3253": { "username": "ikechifortune", "email": "[email protected]", "password": "ifo#mf23" } }

==================================================================================================================

Add Account

Request

curl --location 'http://localhost:3000/account/addaccount'
--header 'Content-Type: text/plain'
--data-raw '{ "username": "sri", "email": "[email protected]", "password": "Sairam3333" }'

Response:

{ "success": true, "msg": "account data added successfully" }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published