Sofia Metro API

WHAT IS SOFIA METRO API?

Sofia Metro API is an API Rest where the Sofia Metro Website makes requests to load all its resources so that users can enjoy the content. Like the web, the Sofia Metro is under development but several developers can use it to obtain information from the different sections such as: User Information, Tickets, Receipts, etc...

GET/ USER

https://sofiametro-api.herokuapp.com/user/all You get a list of all users along with their information for each one.

https://sofiametro-api.herokuapp.com/user?id=1 You get the user with the id number 1 (in this case).

GET/ TICKET

https://sofiametro-api.herokuapp.com/ticket/all You get a list of all tickets along with their information for each one.

https://sofiametro-api.herokuapp.com/ticket?family=1 You get the ticket with the id-family number 1 (in this case).

GET/ RECEIPT

https://sofiametro-api.herokuapp.com/receipt/all You get a list of all receipts of each user along with their information for each one.

https://sofiametro-api.herokuapp.com/receipt?id=1 You get all the receipts of the user with the id number 1 (in this case).