-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.http
53 lines (42 loc) · 1.09 KB
/
api.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
### Get Event by ID with Variable
@baseUrl = http://localhost:8080
@eventID = 10853e59-dc5b-4d7b-a028-01513ef50d76
### Listar todos os Events
GET {{baseUrl}}/events
### Listar Event por ID
GET {{baseUrl}}/events/{{eventID}}
### Listar Spots por id Event
GET {{baseUrl}}/events/{{eventID}}/spots
### Criar Spots por id
POST {{baseUrl}}/events/{{eventID}}/spots
Content-Type: application/json
Accept: application/json
{
"number_of_spots": 5
}
### Buy Tickets for an Event
POST {{baseUrl}}/checkout
Content-Type: application/json
Accept: application/json
{
"event_id": "e0352b32-7698-4805-b029-28302b3a911f",
"card_hash": "809kh",
"ticket_kind": "half",
"spots": [ "B2", "A3", "B5" ],
"email": "[email protected]"
}
### Criar evento
POST {{baseUrl}}/event
Content-Type: application/json
Accept: application/json
{
"name":"Event 005 - Partner1",
"location": "São Paulo, SP",
"organization": "Partner 1",
"rating": "L14",
"date": "2024-10-10T04:12:05Z",
"image_url": "https://images.unsplash.com/photo-1470229722913-7c0e2dbbafd3",
"capacity": 10,
"price": 100,
"partner_id": 1
}