{"document":{"openapi":"3.2.0","info":{"title":"httpbin","version":"1.0.0","description":"A few endpoints of [httpbin](https://httpbin.org), a service that echoes the requests it receives."},"servers":[{"url":"https://httpbin.org"}],"tags":[{"name":"Requests","description":"Endpoints that echo the request."},{"name":"Auth","description":"Endpoints that check the credentials of the request."}],"paths":{"/get":{"get":{"operationId":"echoQuery","summary":"Echo the query","description":"Returns the query parameters and the headers of the request.","tags":["Requests"],"parameters":[{"name":"name","in":"query","description":"A name to echo back.","schema":{"type":"string","example":"Vuesho"}}],"responses":{"200":{"description":"The request, as httpbin received it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Echo"}}}}}}},"/anything/notes":{"post":{"operationId":"createNote","summary":"Create a note","description":"Echoes a note sent as JSON. httpbin keeps nothing, so the note is only in the response.","tags":["Requests"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Note"}}}},"responses":{"200":{"description":"The request, with the note in `json`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Echo"},{"type":"object","properties":{"json":{"$ref":"#/components/schemas/Note"}}}]}}}}}}},"/status/{code}":{"get":{"operationId":"getStatus","summary":"Return a status code","description":"Responds with the status code of the path, and no body.","tags":["Requests"],"parameters":[{"name":"code","in":"path","required":true,"description":"The status code of the response.","schema":{"type":"integer","minimum":100,"maximum":599,"example":418}}],"responses":{"200":{"description":"The status was 200."},"default":{"description":"The status of the path."}}}},"/bearer":{"get":{"operationId":"checkBearer","summary":"Check a bearer token","description":"Responds with the token when the request has an `Authorization` header with a bearer token.","tags":["Auth"],"security":[{"bearer":[]}],"responses":{"200":{"description":"The token is present.","content":{"application/json":{"schema":{"type":"object","properties":{"authenticated":{"type":"boolean"},"token":{"type":"string"}},"required":["authenticated","token"]}}}},"401":{"description":"The request has no bearer token."}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Any token works."}},"schemas":{"Note":{"type":"object","properties":{"title":{"type":"string","description":"The title of the note.","example":"Read the docs"},"done":{"type":"boolean","default":false}},"required":["title"]},"Echo":{"type":"object","properties":{"args":{"type":"object","description":"The query parameters.","additionalProperties":{"type":"string"}},"headers":{"type":"object","description":"The headers of the request.","additionalProperties":{"type":"string"}},"origin":{"type":"string","description":"The IP address of the client."},"url":{"type":"string","format":"uri"}},"required":["args","headers","origin","url"]}}}}}