Closed zomgbre closed 1 year ago
Also, notice it doesn't preserve the type of the query parameters either... see limit
and offset
query parameters. It also is true for type boolean
. I don't have it in the example, but it seems across the board there is some inconsistency.
Hi @zomgbre thanks for reaching out. Here is apigateway get-export
documentation for reference: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/apigateway/get-export.html.
It sounds like you are requesting changes to what this command returns, in which case this request should get rerouted to the API Gateway team for review since they own the underlying GetExport API. Could you alternatively use the GetTags API to get the tag/description info you need?
If the behavior you're describing doesn't match the documentation then adding --debug
to your command and sharing the logs (with sensitive info redacted) would help with further investigation.
Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.
Hi @zomgbre thanks for reaching out. Here is
apigateway get-export
documentation for reference: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/apigateway/get-export.html.It sounds like you are requesting changes to what this command returns, in which case this request should get rerouted to the API Gateway team for review since they own the underlying GetExport API. Could you alternatively use the GetTags API to get the tag/description info you need?
If the behavior you're describing doesn't match the documentation then adding
--debug
to your command and sharing the logs (with sensitive info redacted) would help with further investigation.
Hi @tim-finnigan, the issue is with tags of open api, not aws tags. it are different things.
the tags of open api are used to group resource in swagger ui, therefore are important in get-export
I have the same issue, any workaroud?
Describe the bug
When using an Open API 3.0.2 spec to create an API Gateway when using CDK construct
SpecRestApi
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway.SpecRestApi.html,aws apigateway get-export
does not include fieldsdescription
andtags
. There are probably others, but these are specifically important to me.Expected Behavior
I expect that when I export the api spec it is much closer to what I uploaded to create the API.
Current Behavior
CDK Construct creation:
This produces the following CloudFormation
AWS::ApiGateway::RestApi
(redacted some strings):After deploying, running the following:
aws apigateway get-export --rest-api-id xxxxx --stage-name stage --export-type oas30 spec-02-02-2023.json
Outputs (I tried my best to make it like the fields I censored hah):
As you can see, the output doesn't contain description or tags attribute under the paths. :sad
Reproduction Steps
See "current behavior".
aws apigateway get-export --rest-api-id xxxxx --stage-name stage --export-type oas30 spec-02-02-2023.json
Possible Solution
No response
Additional Information/Context
No response
CLI version used
aws-cli/2.2.25 Python/3.8.8 Darwin/21.6.0 exe/x86_64 prompt/off
Environment details (OS name and version, etc.)
macOS Monterey 12.5