Download OpenAPI specification:Download
This is a webfakes web app for HTTP testing in R packages. It implements the https://httpbin.org API
An endpoint to make a GET request agains. It returns the request's parameters and the request headers, in JSON.
Success.
{- "args": { },
- "headers": { },
- "origin": "string",
- "path": "string",
- "url": "string"
}
{- "args": { },
- "data": { },
- "files": { },
- "form": { },
- "headers": { },
- "json": { },
- "method": "string",
- "path": "string",
- "origin": "string",
- "url": "string"
}
{- "args": { },
- "data": { },
- "files": { },
- "form": { },
- "headers": { },
- "json": { },
- "method": "string",
- "path": "string",
- "origin": "string",
- "url": "string"
}
{- "args": { },
- "data": { },
- "files": { },
- "form": { },
- "headers": { },
- "json": { },
- "method": "string",
- "path": "string",
- "origin": "string",
- "url": "string"
}
{- "args": { },
- "data": { },
- "files": { },
- "form": { },
- "headers": { },
- "json": { },
- "method": "string",
- "path": "string",
- "origin": "string",
- "url": "string"
}
Basic authentication with specified user and password
user required | string User name. |
password required | string Password. |
Authorization | string Base64 encoded user name and password. See https://en.wikipedia.org/wiki/Basic_access_authentication#Client_side for the protocol. |
Success.
Failed authentication.
{- "authenticated": true,
- "user": "Aladdin"
}
Checks is that a token is supplied in the Authorization
header.
Authorization | string ^Bearer |
Success.
Failed authentication.
{- "authenticated": true,
- "token": "string"
}
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
. See
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes for more
about status codes.
status required | integer Status code. |
Informational responses.
Success.
Redirection.
Client errors.
Server errors.
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
. See
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes for more
about status codes.
status required | integer Status code. |
Informational responses.
Success.
Redirection.
Client errors.
Server errors.
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
. See
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes for more
about status codes.
status required | integer Status code. |
Informational responses.
Success.
Redirection.
Client errors.
Server errors.
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
. See
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes for more
about status codes.
status required | integer Status code. |
Informational responses.
Success.
Redirection.
Client errors.
Server errors.
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
. See
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes for more
about status codes.
status required | integer Status code. |
Informational responses.
Success.
Redirection.
Client errors.
Server errors.
Assumes the specified etag
parameter as the ETag
header.
If-None-Match
header, then
it returns with HTTP status code 304.If-Match
header is supplied, then it return with
HTTP status code 412.See https://en.wikipedia.org/wiki/HTTP_ETag for more about ETag
headers.
etag required | string Assumed ETag value. |
Non-matching If-Non-Match
or matching If-Match
, or no
such headers at all.
Matching If-Non-Match
header.
Non-matchinf If-Match
header.
{- "args": { },
- "headers": { },
- "origin": "string",
- "path": "string",
- "url": "string"
}
Set response headers from the passed query parameters. The same parameter migth be specified multiple times to create the same HTTP header multiple times.
params | object |
The passed query parameters are also returned as a JSON response.
{ }
Set response headers from the passed query parameters. The same parameter migth be specified multiple times to create the same HTTP header multiple times.
params | object |
The passed query parameters are also returned as a JSON response.
{ }