Skip to content

Instantly share code, notes, and snippets.

View char0n's full-sized avatar
GitHub Star

Vladimír Gorej char0n

GitHub Star
View GitHub Profile
@char0n
char0n / openapi.yaml
Created July 12, 2023 10:35
OpenAPI 3.1.0 Petstore
openapi: 3.1.0
info:
title: Swagger Petstore - OpenAPI 3.1
description: |-
This is a sample Pet Store Server based on the OpenAPI 3.1 specification.
You can find out more about
Swagger at [http://swagger.io](http://swagger.io).
termsOfService: http://swagger.io/terms/
contact:
email: apiteam@swagger.io
openapi: 3.0.0
info:
title: "Multiple Examples: Core Document"
description: |
This document has examples for straightforward usage of `examples` in...
* Parameter Object positions
* Response Object positions
* Request Body Object positions
It includes:
openapi: 3.0.2
info:
title: Swagger Petstore - OpenAPI 3.0
description: >-
This is a sample Pet Store Server based on the OpenAPI 3.0 specification.
You can find out more about
Swagger at [http://swagger.io](http://swagger.io). In the third iteration of
the pet store, we've switched to the design first approach!
{
"openapi" : "3.1.0",
"info" : {
"description" : "Twitter API v2 available endpoints",
"version" : "2.62",
"title" : "Twitter API v2",
"termsOfService" : "https://developer.twitter.com/en/developer-terms/agreement-and-policy.html",
"contact" : {
"name" : "Twitter Developers",
"url" : "https://developer.twitter.com/"
openapi: 3.0.2
info:
title:
{
"openapi": "3.1.0",
"info": {
"title": "API",
"license": {
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.txt"
},
"version": "1.0"
},
openapi: 3.0.0
info:
title: Swagger Petstore - OpenAPI 3.0
description: |-
This is a sample Pet Store Server based on the OpenAPI 3.1 specification. You can find out more about
Swagger at [https://swagger.io](https://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!
You can now help us improve the API whether it's by making changes to the definition itself or to the code.
That way, with time, we can improve the API in general, and expose some of the new features in OAS3.
Some useful links:
openapi: 3.1.0
info:
title: Swagger Petstore - OpenAPI 3.1
description: |-
This is a sample Pet Store Server based on the OpenAPI 3.1 specification. You can find out more about
Swagger at [https://swagger.io](https://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!
You can now help us improve the API whether it's by making changes to the definition itself or to the code.
That way, with time, we can improve the API in general, and expose some of the new features in OAS3.
Some useful links:
openapi: 3.1.0
info:
title: Swagger Petstore - OpenAPI 3.1
description: |-
This is a sample Pet Store Server based on the OpenAPI 3.1 specification. You can find out more about
Swagger at [https://swagger.io](https://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!
You can now help us improve the API whether it's by making changes to the definition itself or to the code.
That way, with time, we can improve the API in general, and expose some of the new features in OAS3.
Some useful links: