Skip to content

IlhamRobyana/GoRestAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoRestAPI

A simple Golang REST API that can do CRUD operations with Gorm, Echo 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}

Releases

No releases published

Packages

No packages published

Languages