Last active
March 17, 2021 15:14
-
-
Save thiagoalves/2b2c655aa7c812bfb75a08cf837ac104 to your computer and use it in GitHub Desktop.
Specs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"openapi": "3.0.0", | |
"info": { | |
"title": "ASD", | |
"version": "123a" | |
}, | |
"tags": [ | |
{ | |
"name": "asdgist" | |
} | |
], | |
"paths": { | |
"/asd": { | |
"get": { | |
"tags": [ | |
"asdgist" | |
], | |
"operationId": "asdgistjson", | |
"parameters": [ | |
{ | |
"in": "header", | |
"name": "limitasd", | |
"schema": { | |
"type": "integer", | |
"maximum": 50 | |
} | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "OK!" | |
} | |
} | |
} | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.0 | |
info: | |
title: ASD | |
version: "123asd" | |
tags: | |
- name: asdgistyaml | |
paths: | |
/asd: | |
get: | |
tags: | |
- asdgistyaml | |
operationId: asdyamlop | |
parameters: | |
- in: header | |
name: limitasd | |
schema: | |
type: integer | |
maximum: 50 | |
responses: | |
"200": | |
description: OK! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"openapi": "3.0.0", | |
"info": { | |
"title": "EFG", | |
"version": "123a" | |
}, | |
"tags": [ | |
{ | |
"name": "efggistjson" | |
} | |
], | |
"paths": { | |
"/efg": { | |
"post": { | |
"tags": [ | |
"efggistjson" | |
], | |
"operationId": "efgjsonop", | |
"parameters": [ | |
{ | |
"in": "header", | |
"name": "limitefg", | |
"schema": { | |
"type": "integer", | |
"maximum": 50 | |
} | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "OK!" | |
} | |
} | |
} | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.0 | |
info: | |
title: EFG | |
version: "123efg" | |
tags: | |
- name: efggistyaml | |
paths: | |
/efg: | |
post: | |
tags: | |
- efggistyaml | |
operationId: efggistyamlop | |
parameters: | |
- in: header | |
name: limitefg | |
schema: | |
type: integer | |
maximum: 50 | |
responses: | |
"200": | |
description: OK! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"info": { | |
"description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.", | |
"version": "1.0.5", | |
"title": "Swagger Petstore", | |
"termsOfService": "http://swagger.io/terms/", | |
"contact": { | |
"email": "[email protected]" | |
}, | |
"license": { | |
"name": "Apache 2.0", | |
"url": "http://www.apache.org/licenses/LICENSE-2.0.html" | |
} | |
}, | |
"host": "petstore.swagger.io", | |
"basePath": "/v2", | |
"tags": [ | |
{ | |
"name": "pet", | |
"description": "Everything about your Pets" | |
} | |
], | |
"schemes": [ | |
"https", | |
"http" | |
], | |
"paths": { | |
"/pet/{petId}/uploadImage": { | |
"post": { | |
"tags": [ | |
"pet" | |
], | |
"summary": "uploads an image", | |
"description": "", | |
"operationId": "uploadFilejsonop", | |
"consumes": [ | |
"multipart/form-data" | |
], | |
"produces": [ | |
"application/json" | |
], | |
"parameters": [ | |
{ | |
"name": "petId", | |
"in": "path", | |
"description": "ID of pet to update", | |
"required": true, | |
"type": "integer", | |
"format": "int64" | |
}, | |
{ | |
"name": "additionalMetadata", | |
"in": "formData", | |
"description": "Additional data to pass to server", | |
"required": false, | |
"type": "string" | |
}, | |
{ | |
"name": "file", | |
"in": "formData", | |
"description": "file to upload", | |
"required": false, | |
"type": "file" | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "successful operation" | |
} | |
}, | |
"security": [ | |
{ | |
"petstore_auth": [ | |
"write:pets", | |
"read:pets" | |
] | |
} | |
] | |
} | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
swagger: "2.0" | |
info: | |
description: "This is a sample server Petstore server. You can find out more about\ | |
\ Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/).\ | |
\ For this sample, you can use the api key `special-key` to test the authorization\ | |
\ filters." | |
version: "1.0.5" | |
title: "Swagger Petstore" | |
termsOfService: "http://swagger.io/terms/" | |
contact: | |
email: "[email protected]" | |
license: | |
name: "Apache 2.0" | |
url: "http://www.apache.org/licenses/LICENSE-2.0.html" | |
host: "petstore.swagger.io" | |
basePath: "/v2" | |
tags: | |
- name: "pet" | |
description: "Everything about your Pets" | |
schemes: | |
- "https" | |
- "http" | |
paths: | |
/pet/{petId}/uploadImage: | |
post: | |
tags: | |
- "pet" | |
summary: "uploads an image" | |
description: "" | |
operationId: "uploadFileYamlOp" | |
consumes: | |
- "multipart/form-data" | |
produces: | |
- "application/json" | |
parameters: | |
- name: "petId" | |
in: "path" | |
description: "ID of pet to update" | |
required: true | |
type: "integer" | |
format: "int64" | |
- name: "additionalMetadata" | |
in: "formData" | |
description: "Additional data to pass to server" | |
required: false | |
type: "string" | |
- name: "file" | |
in: "formData" | |
description: "file to upload" | |
required: false | |
type: "file" | |
responses: | |
200: | |
description: "successful operation" | |
security: | |
- petstore_auth: | |
- "write:pets" | |
- "read:pets" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment