Skip to content

ArronJLinton/coqodaq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coqodaq

Restaurant Booking API

Tools

Migrations

- goose postgres postgres://postgres:@localhost:5431/coqodaq up

Creating New Model

- Step 1) Create New Schema in `sql/schema`
- Step 2) Run the migration
- Step 3) Create Queries in `sql/queries`
- Step 4) Run `sqlc generate`
Routes

Create Reservation

  • /api/reservation/create

Example Request Body

{
    name: "Flintstone Family",
    party_size: 2,
    time: "2024-08-31T23:00:00Z",
    restaurant_id: 1,
    table_id: 1
}

About

Restaurant Booking API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages