OAS 3 This guide is OpenAPI 3.0.
API General Info
It is considered to be a good practice to include general information about your API into the specification: version number, license notes, contact data, links to documentation, and more. We particularly recommend doing this for publicly available APIs; as this will can increase user confidence in the services, your company provides. To specify the API metadata, you use properties of the top-level
# You application title. Required.
title: Sample Pet Store App
# API version. You can use semantic versioning like 1.0.0,
# or an arbitrary string like 0.99-beta. Required.
# API description. Arbitrary text in CommonMark or HTML.
description: This is a sample server for a pet store.
# Link to the page that describes the terms of service.
# Must be in the URL format.
# Contact information: name, email, URL.
name: API Support
# Name of the license and a URL to the license description.
name: Apache 2.0
# Link to the external documentation (if any).
# Code or documentation generation tools can use description as the text of the link.
description: Find out more
version properties are required, others are optional.
Did not find what you were looking for? Ask the community
Found a mistake? Let us know