Skip to content

Latest commit

 

History

History
25 lines (25 loc) · 552 Bytes

README.md

File metadata and controls

25 lines (25 loc) · 552 Bytes

This is a Api build using golang and net/http for routing simple get and post user data you can simply run it using followiing command on your terminal make sure golang is installed

go run main.go

and test it postman by hitting Post request on

http://localhost:3000/user

sample request

{
    "Name" : "Md Amaan",
    "ID" : 2,
    "valid": false
}

GET request on id = Whatever integer you filled in ID field above post request which got registered

http://localhost:3000/user/id

Response {Name: Md Amaan, ID : 2}