-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqueries.http
153 lines (123 loc) · 5.05 KB
/
queries.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
// Input: "id = null"
// Output: "id = null"
http://localhost:5000/m_1param
###
// Input: "id = 42"
// Output: "id = 42"
http://localhost:5000/m_1param?id=42
###
// Input: "id = null"
// Output: "One or more validation errors occurred. The Id field is required."
http://localhost:5000/m_1paramR
###
// Input: "id = null", "firstname = null", "lastname = null"
// Output: "id = null", "firstname = null", "lastname = null"
http://localhost:5000/m_3param
###
// Input: "id = 42", "firstname = null", "lastname = null"
// Output: "id = 42", "firstname = null", "lastname = null"
http://localhost:5000/m_3param?id=42
###
// Input: "id = 42", "firstname= John", "lastname = null"
// Output: "id = 42", "firstname = John", "lastname = null"
http://localhost:5000/m_3param?id=42&firstname=John
###
// Input: "id = 42", "firstname= John", "lastname = Doe"
// Output: "id = 42", "firstname = John", "lastname = Doe"
http://localhost:5000/m_3param?id=42&firstname=John&lastname=Doe
###
// Input: "id = null", "firstname = null", "lastname = null"
// Output: "id = null", "firstname = null", "lastname = null"
http://localhost:5000/m_rm
###
// Input: "id = 42", "firstname = null", "lastname = null"
// Output: "id = 42", "firstname = null", "lastname = null"
http://localhost:5000/m_rm?id=42
###
// Input: "id = 42", "firstname = John", "lastname = null"
// Output: "id = 42", "firstname = John", "lastname = null"
http://localhost:5000/m_rm?id=42&firstname=John
###
// Input: "id = 42", "firstname = John", "lastname = Doe"
// Output: "id = 42", "firstname = John", "lastname = Doe"
http://localhost:5000/m_rm?id=42&firstname=John&lastname=Doe
###
// Input: "id = null", "firstname = null", "lastname = null"
// Output: "One or more validation errors occurred. The Id field is required."
http://localhost:5000/m_rm_bv
###
// Input: "id = 42", "firstname = null", "lastname = null"
// Output: "id = 42", "firstname = null", "lastname = null"
http://localhost:5000/m_rm_bv?id=42
###
// Input: "id = 42", "firstname = John", "lastname = null"
// Output: "id = 42", "firstname = John", "lastname = null"
http://localhost:5000/m_rm_bv?id=42&firstname=John
###
// Input: "id = 42", "firstname = John", "lastname = Doe"
// Output: "id = 42", "firstname = John", "lastname = Doe"
http://localhost:5000/m_rm_bv?id=42&firstname=John&lastname=Doe
###
// Input: "id = null", "firstname = null", "lastname = null"
// Output: "id = null", "firstname = null", "lastname = null"
http://localhost:5000/m_rm_classv
###
// Input: "id = 42", "firstname = null", "lastname = null"
// Output: Invalid
http://localhost:5000/m_rm_classv?id=42
###
// Input: "id = 42", "firstname = John", "lastname = null"
// Output: "id = 42", "firstname = John", "lastname = null"
http://localhost:5000/m_rm_classv?id=42&firstname=John
###
// Input: "id = 42", "firstname = null", "lastname = Doe"
// Output: "id = 42", "firstname = null", "lastname = Doe"
http://localhost:5000/m_rm_classv?id=42&lastname=Doe
###
// Input: "id = null", "firstname = null", "lastname = null"
// Output: "id = null", "firstname = null", "lastname = null"
http://localhost:5000/m_rm_cv
###
// Input: "id = 42", "firstname = null", "lastname = null"
// Output: "id = 42", "firstname = null", "lastname = null"
http://localhost:5000/m_rm_cv?id=42
###
// Input: "id = 42", "firstname = John", "lastname = null"
// Output: "id = 42", "firstname = John", "lastname = null"
http://localhost:5000/m_rm_cv?id=42&firstname=John
###
// Input: "id = 42", "firstname = John", "lastname = Doe"
// Output: "id = 42", "firstname = John", "lastname = Doe"
http://localhost:5000/m_rm_cv?id=42&firstname=John&lastname=Doe
###
// Input: "id = 42", "firstname = John", "lastname = Doe", "maritalstatus = unknown"
// Output: Invalid
http://localhost:5000/m_rm_cv?id=42&firstname=John&lastname=Doe&maritalstatus=unknown
###
// Input: "id = 42", "firstname = John", "lastname = Doe", "maritalstatus = 6"
// Output: Invalid
http://localhost:5000/m_rm_cv?id=42&firstname=John&lastname=Doe&maritalstatus=6
###
// Input: "id = 42", "firstname = John", "lastname = Doe", "maritalstatus = married"
// Output: "id = 42", "firstname = John", "lastname = Doe"
http://localhost:5000/m_rm_cv?id=42&firstname=John&lastname=Doe&maritalstatus=married
###
// Input: "id = 42", "firstname = John", "lastname = Doe", "maritalstatus = married", "spousefirstname = Fred"
// Output: Invalid
http://localhost:5000/m_rm_cv?id=42&firstname=John&lastname=Doe&maritalstatus=married&spousefirstname=Fred
###
// Input: "id = 42", "firstname = John", "lastname = Doe", "maritalstatus = married", "spousefirstname = Fred", "spouselastname = Doe"
// Output: "id = 42", "firstname = John", "lastname = Doe"
http://localhost:5000/m_rm_cv?id=42&firstname=John&lastname=Doe&maritalstatus=married&spousefirstname=Fred&spouselastname=Doe
###
// Input: { "id" : "42", "firstname" : "John", "lastname" : "Doe", "maritalstatus" : 1, "spousefirstname" : "Fred" }
// Output: Invalid
http://localhost:5000/m_rm_cv_b
Content-Type: application/json
{
"id" : "42",
"firstname" : "John",
"lastname" : "Doe",
"maritalstatus" : 1,
"spousefirstname" : "Fred"
}