PORT
- address for server listen
$ docker-compose up
POST /add
- for new request
GET /list
- for request list
GET /delete
- for delete request by id
Request url /add
with POST
json data
method
- request method (string)url
- request url (string)headers
- request headers (map[string][]string)body
- request body (string)
Result is in json
format
id
- generated id for request url (uint64)statusCode
- response status code (int)headers
- response headers list (map[string][]string)contentLength
- response body length (uint64)
code
- error codemessage
- error message
Result is in json
format
id
- generated id for request url (uint64)url
- url (string)
code
- error codemessage
- error message
Request url /delete
with GET
param
id
- request id (uint64)
Result is in json
format with
{"success" : "ok"}
code
- error codemessage
- error message