Skip to content

ashishra0/go-with-postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A meal DB api with postgres

Endpoints

GET requests

  • localhost:8000/meals List all the meals
  • localhost:8000/meal/{id} List specific meal

POST request

  • localhost:8000/meal/{id} Add a new meal
{
  "name": "some dish",
  "cuisine": "some cuisine",
  "category": "veg/nonveg"
}

PUT request

  • localhost:8000/meal/{id} Update a specific meal by ID

Delete request

  • localhost:8000/meal/{id} Delete a specific meal by ID

About

A meal api with postgres

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages