This OpenAPI document
GET
/openapi.json
const url = 'http://localhost:3000/openapi.json';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/openapi.jsonPublic: it describes the routes and holds no data (D231).
Responses
Section titled “Responses”The OpenAPI 3.1 document.
Media typeapplication/json
object
key
additional properties
Example generated
{ "additionalProperty": "example"}Headers
Section titled “Headers”X-Request-Id
required
Id of the request (req_…), also the id of its request log row.
string
Id of the request (req_…), also the id of its request log row.
Error: internal_error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
requestId
required
string
Example
{ "error": { "code": "unauthorized" }}Headers
Section titled “Headers”X-Request-Id
required
Id of the request (req_…), also the id of its request log row.
string
Id of the request (req_…), also the id of its request log row.