2020-08-27 10:07:46 +03:00
|
|
|
POST http://localhost:8000/post-json
|
|
|
|
|
|
|
|
{
|
|
|
|
"name": "Bob",
|
2022-04-11 11:53:52 +03:00
|
|
|
"password": "&secret\\'<>",
|
2021-01-09 12:28:57 +03:00
|
|
|
"age": 30,
|
2021-07-25 09:19:56 +03:00
|
|
|
"strict": true,
|
|
|
|
"spacing": "\n",
|
2022-03-09 11:51:17 +03:00
|
|
|
"g_clef": "\uD834\uDD1E",
|
2022-06-21 10:19:13 +03:00
|
|
|
"items": [true, "true", 1],
|
|
|
|
"variable": "{{string_variable}}"
|
2020-08-27 10:07:46 +03:00
|
|
|
}
|
|
|
|
|
2022-11-11 16:25:00 +03:00
|
|
|
HTTP 200
|
2020-08-27 10:07:46 +03:00
|
|
|
|
|
|
|
POST http://localhost:8000/post-json-array
|
|
|
|
[1,2,3]
|
|
|
|
|
2022-11-11 16:25:00 +03:00
|
|
|
HTTP 200
|
2020-08-27 10:07:46 +03:00
|
|
|
|
|
|
|
POST http://localhost:8000/post-json-string
|
|
|
|
"Hello"
|
|
|
|
|
2022-11-11 16:25:00 +03:00
|
|
|
HTTP 200
|
2020-08-27 10:07:46 +03:00
|
|
|
|
|
|
|
POST http://localhost:8000/post-json-number
|
|
|
|
100
|
|
|
|
|
2022-11-11 16:25:00 +03:00
|
|
|
HTTP 200
|
2020-08-27 10:07:46 +03:00
|
|
|
|
|
|
|
POST http://localhost:8000/post-json-numbers
|
|
|
|
{
|
|
|
|
"natural": 100,
|
|
|
|
"negative": -1,
|
|
|
|
"float": "3.333333333333333",
|
|
|
|
"exponent": 100e100
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-11-11 16:25:00 +03:00
|
|
|
HTTP 200
|
2020-08-27 10:07:46 +03:00
|
|
|
|
|
|
|
POST http://localhost:8000/post-json-boolean
|
|
|
|
true
|
|
|
|
|
2022-11-11 16:25:00 +03:00
|
|
|
HTTP 200
|
2020-08-27 10:07:46 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Use variable in your input json
|
|
|
|
#
|
|
|
|
GET http://localhost:8000/get-name
|
2022-11-11 16:25:00 +03:00
|
|
|
HTTP 200
|
2020-08-27 10:07:46 +03:00
|
|
|
[Captures]
|
|
|
|
name: body
|
|
|
|
|
2021-07-25 09:19:56 +03:00
|
|
|
POST http://localhost:8000/check_name
|
2020-08-27 10:07:46 +03:00
|
|
|
|
|
|
|
{
|
2021-07-25 09:19:56 +03:00
|
|
|
"name": "{{name}}"
|
2021-01-09 12:28:57 +03:00
|
|
|
}
|