Skip to content

A Go-powered "Event Booking" REST-API that enables users to create, retrieve, update, and delete event data. It includes authorization for creating, updating, and deleting events, ensuring secure access to protected operations.

Notifications You must be signed in to change notification settings

skstef/Go-REST-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Event Booking REST API

Introduction

This project is a Go-powered Event Booking REST API that allows users to manage events by performing CRUD (Create, Read, Update, Delete) operations. The API also includes secure authentication and authorization, ensuring that only authenticated users can create, update, or delete events. It is designed for scalability and efficiency, leveraging Go's concurrency features for optimal performance.

Available Endpoints List

Example requests for each endpoint can be found in the api-test folder.

Public endpoints:

  • GET /events – Retrieves a list of all events.
  • GET /events/{id} – Fetches details of a specific event by its ID.
  • POST /signup – Registers a new user.
  • POST /login – Authenticates a user and provides a token.

Protected Endpoints (Authorization Required)

  • POST /events – Creates a new event.
  • PUT /events/{id} – Updates an existing event by its ID.
  • DELETE /events/{id} – Deletes a specific event by its ID.
  • POST /events/{id}/register – Registers a user for an event.
  • POST /events/{id}/cancel – Cancels a user's registration for an event.

How to Run the Project

  1. Clone the repository:
git clone https://github.com/skstef/Go-REST-API.git
cd event-booking-api
  1. Install dependencies:
go mod tidy
  1. Run the project: You can run the server with the following command:
go run .

About

A Go-powered "Event Booking" REST-API that enables users to create, retrieve, update, and delete event data. It includes authorization for creating, updating, and deleting events, ensuring secure access to protected operations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages