Skip to content

IlhamRobyana/NodeJSRestAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJSRestAPI

A simple NodeJS REST API that can do CRUD operations with Express and PostgreSQL

getUser:

curl localhost:1323/users/{id}

getAllUsers:

curl localhost:1323/users

createUser:

curl -X POST -H 'Content-Type:application/json' -d '{"first_name":"foo","last_name":"bar","age":"24","email":"foobar@foobar.com"}' localhost:1323/users

updateUser:

curl -X PUT -H 'Content-Type:application/json' -d '{"first_name":"foo","last_name":"bar","age":"24","email":"foobar@foobar.com"}' localhost:1323/users/{id}

deleteUser:

curl -X DELETE localhost:1323/users/{id}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published