GitHub Raw JSON API

spec-first / connexion

4,582 Python

Connexion is a modern Python web framework that makes spec-first and api-first development easy.

connexion Specification

Located in examples/apikey/spec/openapi.yaml on branch HEAD

3.x (YAML) YAML 0.5 KB
Raw YAML Specification
openapi: 3.0.0
info:
  title: API Key Example
  version: '1.0'
servers:
  - url: /openapi
paths:
  /secret:
    get:
      summary: Return secret string
      operationId: app.get_secret
      responses:
        '200':
          description: secret response
          content:
            '*/*':
              schema:
                type: string
      security:
        - api_key: []
components:
  securitySchemes:
    api_key:
      type: apiKey
      name: X-Auth
      in: header
      x-apikeyInfoFunc: app.apikey_auth