This repository was archived by the owner on Jul 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 390
Expand file tree
/
Copy pathopenapi.yaml
More file actions
61 lines (59 loc) · 1.65 KB
/
openapi.yaml
File metadata and controls
61 lines (59 loc) · 1.65 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
openapi: "3.0.2"
info:
title:
Fn::Sub: "${AWS::StackName}-api"
version: 1.0.0
description: Payment service API definition
license:
name: MIT-0
url: https://github.com/aws/mit-0
paths:
/backend/validate:
post:
description: |
Validates a paymentToken.
__Remark__: This is an internal API that requires valid IAM credentials
and signature.
operationId: backendValidate
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- paymentToken
- total
properties:
paymentToken:
type: string
example: "63fa7809-a708-461f-99e8-13c48bbb5dbb"
total:
type: integer
example: 12345
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
required:
- ok
properties:
ok:
type: boolean
example: true
default:
description: Error
content:
application/json:
schema:
$ref: "../../shared/resources/schemas.yaml#/Message"
x-amazon-apigateway-auth:
type: AWS_IAM
x-amazon-apigateway-integration:
httpMethod: "POST"
type: aws_proxy
uri:
Fn::Sub: "arn:${AWS::Partition}:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${ValidateFunction.Arn}/invocations"