Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate schema for API Gateway responses #620

Closed
esmarkowski opened this issue Mar 11, 2022 · 1 comment
Closed

Generate schema for API Gateway responses #620

esmarkowski opened this issue Mar 11, 2022 · 1 comment
Labels
feature v5 jets v5 issues

Comments

@esmarkowski
Copy link
Contributor

Summary

Add Model definition to schema when building API Gateway templates. Optionally, allow JSON schema to be defined for each endpoint.

Motivation

When schema is defined in API Gateway it's possible to use the SDK to generate API clients directly from AWS. Without the schema the SDK is a useless pile of garbage.

Reference-level explanation

When using models in Jets, we should have enough information to create AWS::ApiGateway::Model. When building the CFN templates for API Gateway we could add the appropriate definition.

Type: AWS::ApiGateway::Model
Properties: 
  ContentType: String
  Description: String
  Name: String
  RestApiId: String
  Schema: Json

I'm going to take a stab at implementing this, but wanted to stub out a feature for reference.

@tongueroo tongueroo added the v5 jets v5 issues label May 24, 2024
@tongueroo
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature v5 jets v5 issues
Projects
None yet
Development

No branches or pull requests

2 participants