HTTP Method |
Endpoint |
Description |
POST |
{{base_ticket_url}}/v1/event |
Create New Event |
DELETE |
{{base_ticket_url}}/event/:event_id |
Delete an event |
PUT |
{{base_ticket_url}}/event/:event_id |
Update event by id |
GET |
{{base_ticket_url}}/event/:event_id |
Get Event by id |
HTTP Method |
Endpoint |
Description |
POST |
{{base_ticket_url}}/seat/1 |
Create New Seat |
GET |
{{base_ticket_url}}/event/:event_id/seats |
Get Seat from Event Id |
HTTP Method |
Endpoint |
Description |
POST |
{{base_ticket_url}}/public |
Send Email |
HTTP Method |
Endpoint |
Description |
POST |
{{base_ticket_url}}/book/cancel |
Cancel a booking |
HTTP Method |
Endpoint |
Description |
POST |
{{base_ticket_url}}/webhook |
Webhook |
- Replace
{{base_ticket_url}}
with the actual base URL of the Ticket App service.
- For endpoints with parameters (like
:event_id
), replace them with actual values when calling the API.
https://crimson-meadow-438973.postman.co/workspace/PAT~5e4b20a9-a21e-48b8-8eef-baeb56a29ad7/collection/30701742-215d3d8c-31b2-4ae8-adf4-d23db163d0d6?action=share&creator=30701742&active-environment=30701742-3c17942c-d556-4a3c-b175-2402ac791441
- Clone or fork this repository
https://github.com/NicholasLiem/IF4031_M1_Ticket_App
- Initialize .env file using the template given (.env.example and docker.env.example)
touch .env
touch docker.env
- Run docker compose and build
docker-compose up --build