-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrequests.http
More file actions
36 lines (26 loc) · 927 Bytes
/
requests.http
File metadata and controls
36 lines (26 loc) · 927 Bytes
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
@url = http://localhost:9000/api
POST {{url}}/auth/login HTTP/1.1
Content-Type: application/json
{
"username": "macjabeth",
"password": "woopwoop"
}
###
POST {{url}}/tickets HTTP/1.1
Content-Type: application/json
Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWJqZWN0IjozLCJ1c2VybmFtZSI6Im1hY2phYmV0aCIsInJvbGUiOiJzdHVkZW50IiwiaWF0IjoxNTU1NTQ4NTI5LCJleHAiOjE1NTU2MzQ5Mjl9.U63dh9c-Z7iyT1CMJk0NPG2jZ5YygA0ViWkOumYlCjg
{
"title": "Ticket Test",
"description": "Will this work?",
"tried": "Posting a new ticket.",
"category": "Inserting and Modifying Data"
}
###
GET {{url}}/tickets/5 HTTP/1.1
###
PUT {{url}}/tickets/5 HTTP/1.1
Content-Type: application/json
Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWJqZWN0IjozLCJ1c2VybmFtZSI6Im1hY2phYmV0aCIsInJvbGUiOiJzdHVkZW50IiwiaWF0IjoxNTU1NTQ4NTI5LCJleHAiOjE1NTU2MzQ5Mjl9.U63dh9c-Z7iyT1CMJk0NPG2jZ5YygA0ViWkOumYlCjg
{
"status": "opened"
}