Skip to content

Instantly share code, notes, and snippets.

swagger: '2.0'
info:
title: Put request definition
version: 1.0.0
host: localhost
basePath: /rat
schemes:
- https
consumes:
- application/json
{
"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.0",
"title":"Swagger Petstore",
"termsOfService":"http://swagger.io/terms/",
"contact":{
"email":"[email protected]"
},
swagger: '2.0'
info:
version: "1.0.0"
title: Test REST API
basePath: /api
schemes:
- http
consumes:
- application/x-www-form-urlencoded
produces:
{"swagger":"2.0","info":{"version":"v1","title":"Web API for AccellosOne Data Services"},"host":"localhost:12540","schemes":["http"],"paths":{"/odata/AccountCollection":{"get":{"tags":["AccountCollection"],"summary":"GET Account request.","description":"GET request for retrieving Account collection.","operationId":"OData_AccountCollection_GET","consumes":[],"produces":["application/json","application/atom+xml"],"parameters":[{"name":"$expand","in":"query","description":"Expands related entities inline.","required":false,"type":"string"},{"name":"$filter","in":"query","description":"Filters the results, based on a Boolean condition.","required":false,"type":"string"},{"name":"$select","in":"query","description":"Selects which properties to include in the response.","required":false,"type":"string"},{"name":"$orderby","in":"query","description":"Sorts the results.","required":false,"type":"string"},{"name":"$top","in":"query","description":"Returns only the first n results.","required":false,"type":"integer","f
openapi: 3.0.0
info:
version: 0.0.0
title: test
paths: {}
components:
schemas:
# Item type is NOT displayed
ArrayOfStrOrInt:
type: array
openapi: 3.0.0
info:
version: 0.0.0
title: test
paths: {}
components:
schemas:
# Item type is displayed
ArrayOfStr:
type: array
@owenconti
owenconti / gist:0412232108e84a30c1d30b2f9d203cc6
Created September 9, 2017 16:06
Petstore Swagger 2.0 Spec
---
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.0"
title: "Swagger Petstore"
termsOfService: "http://swagger.io/terms/"
swagger: "2.0"
info:
version: "1"
title: "CRUD"
description: "demonstrate Swagger UI bug (model schemas repeated; wrong description)"
basePath: "/crud"
schemes:
- "http"
paths:
@owenconti
owenconti / #3633
Last active September 17, 2017 15:16
swagger: "2.0"
info:
version: 0.0.0
title: test
paths: {}
definitions:
ModelInteger:
title: My Integer Title
type: integer
ModelObject:
@owenconti
owenconti / #3417
Created September 17, 2017 16:03
#3417
swagger: "2.0"
info:
version: "1"
title: "CRUD"
description: "demonstrate Swagger UI bug (model schemas repeated; wrong description)"
basePath: "/crud"
schemes:
- "http"
paths:
/models: