cloudtools / cloudtools/troposphere

How to write swagger body in RestApi ?

Open
#1,092 1 comment 0 reactions 0 assignees View on GitHub
examples
Dominant language
Python
Stars
4.9k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

I'm trying to write swagger in RestApi, How should I write ymal file in a dict ? Is there any example doing this ?
```
class RestApi(AWSObject):
resource_type = "AWS::ApiGateway::RestApi"

props = {
"ApiKeySourceType": (basestring, False),
"BinaryMediaTypes": ([basestring], False),
"Body": (dict, False),
"BodyS3Location": (S3Location, False),
"CloneFrom": (basestring, False),
"Description": (basestring, False),
"EndpointConfiguration": (EndpointConfiguration, False),
"FailOnWarnings": (basestring, False),
"MinimumCompressionSize": (positive_integer, False),
"Name": (basestring, False),
"Parameters": ([basestring], False),
"Policy": (dict, False),
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.