code | type | title |
---|---|---|
true |
page |
openapi | API | Core |
Returns available API routes OpenAPI v3 specifications.
By default, the action returns Kuzzle standard API specification, to return the custom specification from the plugins and application, the scope parameter should be app
.
URL: http://kuzzle:7512/_openapi[?format=<json|yaml>][scope=<app|kuzzle>]
Method: GET
{
"controller": "server",
"action": "openapi",
"format": "<json|yaml>",
"scope": "<kuzzle|app",
}
Returns the OpenAPI v3 specifications JSON (by default) or YAML formatted.
- JSON format:
{
"openapi": "3.0.1",
"info": {
"title":"Kuzzle API", | API | Core
"description":"The Kuzzle HTTP API",
"contact": {
"name":"Kuzzle team",
"url":"http://kuzzle.io",
"email":"hello@kuzzle.io"
},
"license": {
"name":"Apache 2",
"url":"http://opensource.org/licenses/apache2.0"
},
"version":"2.4.5"
},
// ...
}
- YAML format:
openapi: 3.0.1
info:
title: Kuzzle API | API | Core
description: The Kuzzle HTTP API
contact:
name: Kuzzle team
url: http://kuzzle.io
email: hello@kuzzle.io
license:
name: Apache 2
url: http://opensource.org/licenses/apache2.0
version: 2.4.5
# ...