Skip to content

Latest commit

 

History

History
81 lines (65 loc) · 1.37 KB

index.md

File metadata and controls

81 lines (65 loc) · 1.37 KB
code type title
true
page
openapi | API | Core

openapi

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.


Query Syntax

HTTP

URL: http://kuzzle:7512/_openapi[?format=<json|yaml>][scope=<app|kuzzle>]
Method: GET

Other protocols

{
  "controller": "server",
  "action": "openapi",
  "format": "<json|yaml>",
  "scope": "<kuzzle|app",
}

Response

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
# ...