-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathawscats.yml
More file actions
47 lines (47 loc) · 1.5 KB
/
awscats.yml
File metadata and controls
47 lines (47 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
swagger: "2.0"
info:
title: Cats
description: |
This is a simple API to scan images for cats. The current implementation requires the image to be hosted via HTTP(S).
Only images in jpeg and png that are less than 5MB in size are valid at this time.
contact:
name: Mitten Development
email: mittendevelopment@gmail.com
version: 0.1.0
paths:
/:
get:
description: Returns JSON detailing if image is of cats.
summary: Scan image for cats.
operationId: scanImage
produces:
- "application/json"
parameters:
- name: "img"
in: "query"
required: true
type: "string"
responses:
200:
description: "200 response"
400:
description: Bad Request
413:
description: Image too large
415:
description: Wrong format
x-amazon-apigateway-request-validator: "Validate query string parameters and\
\ headers"
x-amazon-apigateway-integration:
responses:
default:
statusCode: "200"
uri: "arn:aws:apigateway:<region>:lambda:path/2015-03-31/functions/arn:aws:lambda:<region>:<account_id>:function:${stageVariables.LambdaName}/invocations"
passthroughBehavior: "when_no_match"
httpMethod: "POST"
contentHandling: "CONVERT_TO_TEXT"
type: "aws_proxy"
x-amazon-apigateway-request-validators:
Validate query string parameters and headers:
validateRequestParameters: true
validateRequestBody: false