Skip to content

loaialsharee/event-booking-go-restapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

event-booking-go-restapi

An event booking REST API project powered by Golang.

Project Breakdown

API Routes

This part shows the REST API endpoints that are included in this Golang backend server:

Method Route Description Restrictions
GET /events Get a list of available events
GET /events/{id} Get an available list by ID
POST /events Create a new event Auth Required
PUT /events/{id} Update an event Auth Required Admin access only
DELETE /events/{id} Delete an event Auth Required Admin access only
POST /signup Create a new user
POST /login Authenticate user Initiates Auth Token
POST /events/{id}/register Register user for event Auth Required
DELETE /events/{id}/register Cancel event registration Auth Required

Visual Flow Chart

graph LR

A((Auth)) --> B(GET /events)
A((Auth)) --> C(GET /events/id)
A((Auth)) --> D(POST /events)
A((Auth)) -- Admin Access --> E(PUT /events/id)
A((Auth)) -- Admin Access --> F(DELETE /events/id)
A((Auth)) --> I(POST /events/id/register)
A((Auth)) --> J(DELETE /events/id/register)

Loading

About

An event booking REST API project powered by Golang.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages