This api is made for manage ticket creation
https://api-tickets-cbbg.onrender.com/
git clone this project
git clone https://github.com/jucrojasba/api-tickets.git
cd api-tickets
install gems
gem install
run project
rails s
GET events/:event_id/tickets/summary
Parameter | Type | Description | Response |
---|---|---|---|
:event_id |
int |
Required. event that requires summary | json |
event_id:
available_tickets:
reserved_tickets:
sold_tickets:
canceled_tickets:
total_tickets:
GET events/:event_id/tickets/:quantity
Parameter | Type | Description |
---|---|---|
:event_id |
int |
Required. event that you need tickets for |
:quantity |
int |
Required. number of tickets needed |
event_id:
tickets:
{ id: , serial: }
GET /tickets/:id/logs
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of item to fetch |
POST /events/:event_id/tickets
Parameter | Type | Description |
---|---|---|
id |
string |
Required. id of an event that need to generate all their tickets from ticket_quantity |
PATCH tickets/:ticket_id/status
Parameter | Type | Description |
---|---|---|
id |
string |
Required. ticket to patch |
body with id of status :
Parameter | Type |
---|---|
1 |
available |
2 |
reserved |
3 |
sold |
4 |
canceled |
Example of body request :
{
"new_status_id": 2
}
This project is used by the following companies: