-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_doc.http
35 lines (26 loc) · 926 Bytes
/
test_doc.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
# REST Client tests on Camouflage
@httpBaseUrl = http://localhost:8080
### Test GET Request Handlers
GET {{httpBaseUrl}}/hello-world
### Test GET Request Handlers with query param and delay
GET {{httpBaseUrl}}/hello-world?name=Shubhendu
### Test POST Request Handlers
POST {{httpBaseUrl}}/hello-world
{
"nicknames": [
{"nickname":"bob"},
{"nickname":"don"}
]
}
### Test GET Request Handlers with XML Response
GET {{httpBaseUrl}}/note
### Test GET Request Handlers to different url
GET {{httpBaseUrl}}/users
### Test GET Request Handlers with path as resources and subresources with wildcards and query param
GET {{httpBaseUrl}}/users/get/11212?name=Shubhendu
### Test POST Request Handlers capturing data from request body and with path as resource and subresources with wildcard
POST {{httpBaseUrl}}/users/get/11212?name=Shubhendu
{
"firstName": "Shubhendu",
"lastName": "Madhukar"
}