Categorygithub.com/asakshat/go-event-booking
module
0.0.0-20241024120706-85b59275e5e4
Repository: https://github.com/asakshat/go-event-booking.git
Documentation: pkg.go.dev

# README

Event Booking Documentation

Authors

Project Overview

The "Event Booking" project is designed to provide a platform for users to book events.

Features for v1 (CRUD)

  • Auth functions
  • Post, Edit, and Delete functions
  • Buying Tickets
  • Sending QR through email for confirmation and validation
  • Change email & password
  • Function to validate QR code

Goals for v2

  • Setting early bird prices and normal prices
  • Admin panel for analytics (i.e table showing the information about bought tickets)

APIs

Base URL: https://eventbooking-go-9c6c8d14446d.herokuapp.com/

Auth Requests

POST /api/signup

Registers a new user.

{
	"username": "retrosax",
	"email": "[email protected]",
	"password": "MegaMan123!"
}

Post /api/login

{
	"email": "[email protected]",
	"password": "MegaMan123!"
}

Post /api/logout

Logs out user

Post /api/logged

 Get the user details of the currently logged in user

POST /api/forgot-password

	"email":"[email protected]" // sends an email with a link to change password

POST /api/reset-password

  	"email":"[email protected]",
	"new_password":"Megaman123!",
	"token":"YourToken"

Event Routes

Post /api/event/create # (with form-data)

{
title:Gopher
description:Gopher  description
venue:BeCode
date:20/09/2024
time:18:00
location:rude  de  canterlaan  ,  16
price:29.99
image:file
}

PUT /api/event/update/:event_id #(with form data)

{
title:Gopherrrrss
description:Gopher descriptionsss
venue:BeCodesss
date:20/09/2023
time:19:00
location:rude de canterlaan , 19
price:19.99
image:file
}

Delete /api/event/delete/:event_id

Deletes event ( not permanent)

PATCH /api/event/undo-delete/:event_id

Undo the deleted event

Delete /api/event/delete_perm/:event_id

Deletes event permanently

GET /api/event/:event_id

Get event by event id

GET /api/event

Get all events

GET /api/event/events_by_organizer

Get events by specific user

Ticket Routes

POST /api/ticket/:event_id

"first_name":"Denis",
"last_name":"M",
"email":"[email protected]"

POST /api/ticket/verify/*token

verify the tickets

# Packages

No description provided by the author
No description provided by the author