-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.http
52 lines (36 loc) · 1.02 KB
/
test.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
## nunce change to force rebuild
##@host = https://localhost:5001
@host = https://dotnet-roslyn-dynamic-api.azurewebsites.net/
@contentType = application/json
GET {{host}}/Swagger/index.html
###
GET {{host}}/api/entity HTTP/1.1
###
POST {{host}}/api/entity/3fa85f64-5717-4562-b3fc-2c963f66affe HTTP/1.1
Content-Type: {{contentType}}
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66affe",
"name": "Computer",
"fields": "public Guid Id { get; set; } public string Name { get; set; } public string IpAddress {get; set;}",
"isActive": true
}
###
GET {{host}}/api/Computer HTTP/1.1
###
POST {{host}}/api/Computer/3fa85f64-5717-4562-b3fc-2c963f66afad HTTP/1.1
Content-Type: {{contentType}}
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afad",
"name": "My computer",
"ipAddress": "122.22.311.12"
}
###
GET {{host}}/api/book HTTP/1.1
###
POST {{host}}/api/book/3fa85f64-5717-4562-b3fc-2c963f66afa7 HTTP/1.1
Content-Type: {{contentType}}
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa7",
"title": "Book 1",
"author": "Author 1"
}