About 269 results
Open links in new tab
  1. Data Models (Schemas) | Swagger Docs

    Swagger Open Source. Ideal for individuals and small teams to design, build, and document APIs.

  2. OpenAPI Specification - Version 3.1.0 - Swagger

    The OpenAPI Specification allows combining and extending model definitions using the allOf keyword of JSON Schema, in effect offering model composition. allOf takes an array of object definitions that are validated independently but together compose a single object.

  3. Inheritance and Polymorphism | Swagger Docs

    In your API, you can have request and responses that can be described by several alternative schemas. In OpenAPI 3.0, to describe such a model, you can use the oneOf or anyOf keywords:

  4. Basic Structure | Swagger Docs

    Swagger Open Source Ideal for individuals and small teams to design, build, and document APIs. Swagger Codegen Generate server stubs and client SDKs from OpenAPI Specification definitions.

  5. OpenAPI Specification - Version 2.0 - Swagger

    Version 2.0 specification defines a set of files required to describe an API. These files can then be used by the Swagger-UI project and Swagger-Codegen. Learn more.

  6. API Code & Client Generator | Swagger Codegen

    Swagger Codegen can simplify your build process by generating server stubs and client SDKs for any API, defined with the OpenAPI (formerly known as Swagger) specification, so your team can focus better on your API’s implementation and adoption.

  7. Enums | Swagger Docs

    You can use the enum keyword to specify possible values of a request parameter or a model property. For example, the sort parameter in GET /items?sort=[asc|desc] can be described as:

  8. OpenAPI Specification - Version 3.1.0 - Swagger

    The OpenAPI Specification allows combining and extending model definitions using the allOf property of JSON Schema, in effect offering model composition. allOf takes an array of object definitions that are validated independently but together compose a single object.

  9. Adding Examples | Swagger Docs

    You can add examples to parameters, properties and objects to make OpenAPI specification of your web service clearer. Examples can be read by tools and libraries that process your API in some way. For example, an API mocking tool can use sample values to generate mock requests.

  10. Describing Responses | Swagger Docs

    An API operation can return a file, such as an image or PDF. OpenAPI 3.0 defines file input/output content as type: string with format: binary or format: base64. This is in contrast with OpenAPI 2.0, which uses type: file to describe file input/output content.

Refresh