Skip to content

remendes/openapi-schema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openapi-schema

Quadfloor OpenAPI 3.0 JSON schemas.

*** This is a work in progress project***

***Please contact Quadfloor dev team before usage***

Quadfloor APIs:

  • Engineering API
  • Production API
  • Materials API

Schema files

Schema Details:

Server

OpenApi describes the full endpoint for accessing the API as {Server URL} + {endpoint Path} + {Path Parameters}. So a endpoint with /api/getResults as path in a schema with https://example.com as the url in the server object and no parameters will tell clients to send requests to https://example.com/api/getResults

Server Object Example:

"servers": [
    {
        "url": "https://{accountName}.{environment}.com.br",
        "description": "Quadfloor server url",
        "variables": {
            "accountName": {
                "default": "apiexamples",
                "description": "Your Quadfloor account name"
            }
        }
    }
],

The servers key contains an array of server objects. But Readme.io, our documentation system, will select the first one and use default values for the variables

Authentication

Security Scheme

Security schemes describe autentication types that are available in this API. you can check the all the options available int the Security Scheme Spec

They should be inserted inside the Components Object

the ones we use for Quadfloor appKey and appToken are:

"securitySchemes": {
    "appKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-QUADFLOOR-API-AppKey"
    },
    "appToken": {
        "type": "apiKey",
        "in": "header",
        "name": "X-QUADFLOOR-API-AppToken"
    }
}

This tells the client that the request should have X-QUADFLOOR-API-AppKey and X-QUADFLOOR-API-AppToken as variables in the request header

Security Requirement

If defined inside the Open API Object the security requirement will define the required security schemes for all endpoints. If defined inside a path object, it will define a per-endpoint security scheme.

The example we are currently using, defined inside the Open API Object, is:

"security": [
        {
            "appKey": [],
            "appToken": []
        }
    ]

Examples

Example objects will be ignored by our documentation generator. If the desired outcome is to have the values as placeholders in the request parameters form, they should be inside the parameter schema object in the default key.

About

Quadfloor OpenApi 3.0 Schema

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published