Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "swagger": "2.0",
- "info": {
- "version": "2019-11-19T10:18:49Z",
- "title": "Pets"
- },
- "host": "[host].execute-api.us-west-2.amazonaws.com",
- "basePath": "/test",
- "schemes": [
- "https"
- ],
- "paths": {
- "/pets": {
- "get": {
- "produces": [
- "application/json"
- ],
- "parameters": [
- {
- "name": "type",
- "in": "query",
- "required": false,
- "type": "string"
- },
- {
- "name": "page",
- "in": "query",
- "required": false,
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "200 response",
- "schema": {
- "$ref": "#/definitions/Empty"
- }
- }
- }
- },
- "options": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "responses": {
- "200": {
- "description": "200 response",
- "schema": {
- "$ref": "#/definitions/Empty"
- },
- "headers": {
- "Access-Control-Allow-Origin": {
- "type": "string"
- },
- "Access-Control-Allow-Methods": {
- "type": "string"
- },
- "Access-Control-Allow-Headers": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "/pets/flattenall": {
- "get": {
- "produces": [
- "application/json"
- ],
- "responses": {
- "200": {
- "description": "200 response",
- "schema": {
- "$ref": "#/definitions/PetsModelFlattenAll"
- }
- }
- }
- }
- },
- "/pets/flattensome": {
- "get": {
- "produces": [
- "application/json"
- ],
- "responses": {
- "200": {
- "description": "200 response",
- "schema": {
- "$ref": "#/definitions/PetsModelFlattenSome"
- }
- }
- }
- }
- },
- "/pets/lambdaflattensome": {
- "get": {
- "produces": [
- "application/json"
- ],
- "responses": {
- "200": {
- "description": "200 response",
- "schema": {
- "$ref": "#/definitions/PetsModelFlattenSome"
- }
- }
- }
- }
- },
- "/pets/noflatten": {
- "get": {
- "produces": [
- "application/json"
- ],
- "responses": {
- "200": {
- "description": "200 response",
- "schema": {
- "$ref": "#/definitions/PetsModelNoFlatten"
- }
- }
- }
- }
- }
- },
- "definitions": {
- "PetsModelFlattenAll": {
- "type": "object",
- "properties": {
- "listings": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "title": "PetsModelFlattenAll"
- },
- "PetsModelNoFlatten": {
- "title": "PetsModelNoFlatten",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "number": {
- "type": "integer"
- },
- "class": {
- "type": "string"
- },
- "salesPrice": {
- "type": "number"
- }
- }
- }
- },
- "Empty": {
- "type": "object",
- "title": "Empty Schema"
- },
- "PetsModelFlattenSome": {
- "title": "PetsModelFlattenSome",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "description": {
- "type": "string"
- },
- "askingPrice": {
- "type": "number"
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement