httpbin

Returns 200 unless an If-Modified-Since or If-None-Match header is provided, when it returns a 304.

get

Headers

If-Modified-Sincestring

For testing purposes this header accepts any value. (???) See also https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since

Example:Wed, 21 Oct 2015 07:28:00 GMT

If-None-Matchstring

For testing purposes this header accepts any value. (???) See also https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match

Response

Neigher If-Modified-Since nor If-None-Match header is provided

get/cache
 

auth

Operations for testing various authentication types

Challenges HTTPBasic Auth.

get

Path Parameters

userstringrequired

Username. Use the same username in the path AND for authorization.

passwordstringrequired

Password. Use the same password in the path AND for authorization.

Response

application/json

OK

authenticatedboolean

Example:true

userstring

The user name specified in the request.

get/basic-auth/{user}/{password}
 
application/json

Hidden Basic authentication

Returns 404 Not Found unless the request is authenticated.

get

Path Parameters

userstringrequired

Username. Use the same username in the path AND for authorization.

passwordstringrequired

Password. Use the same password in the path AND for authorization.

Response

application/json

OK

authenticatedboolean

Example:true

userstring

The user name specified in the request.

get/hidden-basic-auth/{user}/{password}
 
application/json

Tests Bearer authentication

get

Response

application/json

Authorized

authenticatedboolean

Example:true

tokenstring

Bearer token specified in the request

get/bearer
 
application/json