/
postman_requests_test.txt
66 lines (62 loc) · 1.1 KB
/
postman_requests_test.txt
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
GET
http://localhost:55071/api/Contact/get/1
GET
http://localhost:55071/api/Contact/getList
Header: "Content-Type": "application/json"
Body:
{
"PagingDTO": {
"PageNumber": 2,
"PageSize": 10
}
}
Body:
{
"Name": "Maria"
}
Body:
{
"Telephone": "3213878962"
}
POST
http://localhost:55071/api/Contact/insert
Header: "Content-Type": "application/json"
{
"Name": "Ivan",
"BirthDate": "1994-09-01",
"Address": "Test Address 1",
"TelephoneDTOList": [
{
"Number": "1234567891"
},
{
"Number": "1234567892"
},
{
"Number": "1234567893"
}
]
}
PUT
http://localhost:55071/api/Contact/update
Header: "Content-Type": "application/json"
Body:
{
"Id": 51,
"Name": "Ivan Cupic",
"BirthDate": "1994-09-02",
"Address": "Test Address 4",
"TelephoneDTOList": [
{
"Number": "1234567891"
},
{
"Number": "1234567894"
},
{
"Number": "1234567895"
}
]
}
DELETE
http://localhost:55071/api/Contact/delete/51