Skip to content

sean-d/Booklyifywizzbangthingaroo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Booklyifywizzbangthingaroo

Project demonstrating a basic rest api solution to better understand go. This project will leverage the gin framework, sqllite and will provide a user auth mechanism to protect certain endpoints. This will be accomplished via JWT.

Dependencies

  • Go
  • Bcrypt
    • go get -u golang.org/x/crypto/
  • Gin
    • go get -u github.com/gin-gonic/gin
  • SQLite
    • go get github.com/glebarez/go-sqlite

Plan

Create an "events booking" API with the following:

Action Endpoint Description Auth Required
GET /events Get a list of available events No
GET /events/ Get a specific event by id No
POST /events Create a new bookable event Yes
PUT /events/ Update an event Yes - only by creator
DELETE /events/ Delete an event Yes - only by creator
POST /signup Create a new user No
POST /login Authenticate a user No - auth will leverage JWT
POST /events//register Register user for an event Yes
DELETE /events//register Cancel an event registration Yes

About

event booking tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages