Created
December 11, 2019 03:25
-
-
Save suryaavala/bc57f160f57d8920318940b9453ac98f to your computer and use it in GitHub Desktop.
Swagger Api 2.0 - Get Car
This file contains 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": "API to return Car Image", | |
"version": "1.0.0", | |
"title": "Get_Car API" | |
}, | |
"schemes": [ | |
"https" | |
], | |
"paths": { | |
"/": {}, | |
"/get_car": { | |
"post": { | |
"produces": [ | |
"application/json", | |
"application/customer-error", | |
"application/api_not_found", | |
"application/no_record", | |
"application/api_error" | |
], | |
"responses": { | |
"200": { | |
"description": "200 response", | |
"schema": { | |
"$ref": "#/definitions/Empty" | |
} | |
}, | |
"201": { | |
"description": "201 response" | |
}, | |
"204": { | |
"description": "204 response" | |
}, | |
"230": { | |
"description": "230 response" | |
}, | |
"231": { | |
"description": "231 response" | |
}, | |
"232": { | |
"description": "232 response" | |
}, | |
"233": { | |
"description": "233 response" | |
} | |
}, | |
"security": [ | |
{ | |
"sigv4": [] | |
} | |
], | |
"x-amazon-apigateway-integration": { | |
"responses": { | |
"default": { | |
"statusCode": "200" | |
} | |
}, | |
"uri": {"Fn::Join": [ ":", ["arn:aws:apigateway", {"Ref": "AWS::Region"}, "lambda:path/2015-03-31/functions/arn:aws:lambda", {"Ref": "AWS::Region"}, {"Ref": "AWS::AccountId"}, "function", {"Fn::Join": ["",[{"Ref": "APIFunction"}, "/invocations"]]}]]}, | |
"passthroughBehavior": "when_no_match", | |
"httpMethod": "POST", | |
"contentHandling": "CONVERT_TO_TEXT", | |
"credentials": {"Fn::GetAtt": ["IAMAPIServiceRole", "Arn"]}, | |
"type": "aws" | |
} | |
} | |
} | |
}, | |
"securityDefinitions": { | |
"sigv4": { | |
"type": "apiKey", | |
"name": "Authorization", | |
"in": "header", | |
"x-amazon-apigateway-authtype": "awsSigv4" | |
} | |
}, | |
"definitions": { | |
"Empty": { | |
"type": "object", | |
"title": "Empty Schema" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment