Skip to content

jucrojasba/api-tickets

Folders and files

NameName
Last commit message
Last commit date
Nov 27, 2024
Dec 1, 2024
Nov 27, 2024
Nov 29, 2024
Nov 29, 2024
Nov 29, 2024
Nov 25, 2024
Nov 25, 2024
Nov 27, 2024
Nov 29, 2024
Nov 25, 2024
Nov 28, 2024
Nov 25, 2024
Nov 25, 2024
Nov 27, 2024
Nov 27, 2024
Nov 27, 2024
Nov 27, 2024
Nov 27, 2024
Nov 27, 2024
Nov 25, 2024
Nov 27, 2024
Nov 28, 2024
Nov 28, 2024
Nov 27, 2024
Nov 29, 2024
Nov 27, 2024
Nov 27, 2024

Repository files navigation

Tickets : API

This api is made for manage ticket creation

https://api-tickets-cbbg.onrender.com/

Authors

Installation and running this project

git clone this project

git clone https://github.com/jucrojasba/api-tickets.git
  cd api-tickets

install gems

gem install

run project

rails s

API Reference

Get all items

  GET events/:event_id/tickets/summary
Parameter Type Description Response
:event_id int Required. event that requires summary json

Succed Response Example:

        event_id: 
        available_tickets: 
        reserved_tickets: 
        sold_tickets:
        canceled_tickets: 
        total_tickets: 

Get item

  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

Succed Response Example:

        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

Requieres

body with id of status :

Parameter Type
1 available
2 reserved
3 sold
4 canceled

Example of body request :

{
    "new_status_id": 2
}

Used By

This project is used by the following companies: