openapi: 3.0.3 info: version: 1.0.0 title: Example.com termsOfService: 'https://example.com/terms/' contact: email: contact@example.com url: 'http://example.com/contact' license: name: Apache 2.0 url: 'http://www.apache.org/licenses/LICENSE-2.0.html' x-logo: url: 'https://redocly.github.io/openapi-template/logo.png' description: $ref: ./info-description.md externalDocs: description: Find out how to create a GitHub repo for your OpenAPI definition. url: 'https://github.com/Rebilly/generator-openapi-repo' tags: - name: Echo description: Example echo operations. - name: User description: Operations about users. - name: Tag description: This is a tag description. servers: - url: 'http://example.com/api/v1' - url: 'https://example.com/api/v1' paths: '/users/{username}': $ref: 'paths/users@{username}.yaml' /echo: $ref: paths/echo.yaml /pathItem: $ref: paths/path-item.yaml /pathItemWithExamples: $ref: paths/path-item-with-examples.yaml components: securitySchemes: main_auth: type: oauth2 flows: implicit: authorizationUrl: 'http://example.com/api/oauth/dialog' scopes: 'read:users': read users info 'write:users': modify or remove users api_key: type: apiKey in: header name: api_key basic_auth: type: http scheme: basic