Skip to content

alxsah/golang-booking-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang booking API

A small API I'm working on to learn Golang.

Specification

POST /register

Register an account. Responds with auth token if successful.

POST /login

Log in with your username and password. Responds with auth token if successful.

GET /bookings

Returns all bookings created by the user

POST /bookings

Create a new booking. Currently accepts the fields "name", "date" and "location".

GET /bookings/:id

Returns a particular booking made by the user

PUT /bookings/:id

Update a booking with the associated booking ID

DELETE /bookings/:id

Delete a booking with the associated booking ID

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published