Potřebné API je dostupné na adrese https://nfctron-frontend-seating-case-study-2024.vercel.app a obsahuje následující
endpointy:
Endpoint: GET:/event
Odpověď:
{
"eventId": "uuid",
"namePub": "string",
"description": "string",
"currencyIso": "string",
"dateFrom": "datetime",
"dateTo": "datetime",
"headerImageUrl": "string",
"place": "string"
}Endpoint: GET:/event-tickets?eventId=<uuid>
Odpověď:
{
"ticketTypes": [
{
"id": "uuid",
"name": "string",
"price": 0
}
],
"seatRows": [
{
"seatRow": 1,
"seats": [
{
"seatId": "uuid",
"place": 1,
"ticketTypeId": "uuid"
}
]
}
]
}Endpoint: POST:/login
Použijte email:
frontend@nfctron.coma heslo:Nfctron2025
Vstup:
{
"email": "string",
"password": "string"
}Odpověď:
{
"message": "string",
"user": {
"firstName": "string",
"lastName": "string",
"email": "string"
}
}Endpoint: POST:/order
Vstup:
{
"eventId": "uuid",
"tickets": [
{
"ticketTypeId": "uuid",
"seatId": "uuid"
}
],
"user": {
"email": "string",
"firstName": "string",
"lastName": "string"
}
}Odpověď:
{
"message": "string",
"orderId": "uuid",
"tickets": [],
"user": {
"email": "string",
"firstName": "string",
"lastName": "string"
},
"totalAmount": 0
}