coqodaq

command module
v0.0.0-...-9a8b92e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

README

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
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL