-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscratch.http
41 lines (34 loc) · 917 Bytes
/
scratch.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
### GET request to example server
GET http://localhost:8080/invoices
Accept: application/json
### GET
GET http://localhost:8080/invoices/user/Mirko
Accept: application/json
### POST request to example server
POST http://localhost:8080/invoices
Accept: application/json
Content-Type: application/json
{
"amount": 75, "user_id": "Mirko"
}
<> 2025-01-24T101915.200.json
<> 2025-01-24T101808.200.json
<> 2025-01-24T101026.200.json
<> 2025-01-24T100807.500.json
<> 2025-01-24T095538.500.json
<> 2025-01-24T095326.500.json
<> 2025-01-24T094000.200.json
<> 2025-01-23T233016.200.json
<> 2025-01-23T151443.200.json
<> 2025-01-23T144623.200.json
<> 2025-01-23T115018.400.json
<> 2025-01-23T112508.400.html
### POST request to example server
POST http://localhost:8080/invoices
Accept: application/json
Content-Type: application/xml
<invoiceDto>
<amount>100</amount>
<user_id>Slavko</user_id>
</invoiceDto>
###