-
Notifications
You must be signed in to change notification settings - Fork 0
/
requests.http
70 lines (51 loc) · 1.04 KB
/
requests.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
@baseUrl = https://ticketing.dev/api
@contentType = application/json
@ticketId = 603ebd694a31b3001bb65def
###
POST {{baseUrl}}/payments
Content-Type: application/json
{}
### @name createTicket
POST {{baseUrl}}/tickets
Content-Type: application/json
{
"title": "Some ticket",
"price": 35.9
}
###
GET {{baseUrl}}/tickets
### @name getTicket
GET {{baseUrl}}/tickets/{{ticketId}}
### @name updateTicket
PUT {{baseUrl}}/tickets/{{ticketId}}
Content-Type: {{contentType}}
{
"title": "UPDATE TO V5!!!",
"price": 69.99
}
### @name createOrder
POST {{baseUrl}}/orders
Content-Type: application/json
{
"ticketId": "{{ticketId}}"
}
###
GET {{baseUrl}}/orders
### @name signup
POST {{baseUrl}}/users/signup
Content-Type: {{contentType}}
{
"email": "[email protected]",
"password": "pass"
}
### @name signin
POST {{baseUrl}}/users/signin
Content-Type: {{contentType}}
Cookie: foo=bar
{
"email": "[email protected]",
"password": "pass"
}
### @name currentUser
GET {{baseUrl}}/users/currentuser
Content-Type: {{contentType}}