aws-api-gateway

Invalid model schema specified for swagger

旧城冷巷雨未停 提交于 2021-02-09 10:57:07
问题 I tried to deploy API on AWS but it not allowed to add a model in the JSON file and shows error : It working without the use of model so maybe it not take model this way so please suggest me how to use a model in API JSON on AWS! Error is : Your API was not imported due to errors in the Swagger file. Unable to create model for 'LandingPageDTO': Invalid model specified: Validation Result: warnings : [], errors : [Invalid model schema specified] Unable to put method 'POST' on resource at path '

updating CORS policy of HTTP API via AWS CLI

只愿长相守 提交于 2021-02-08 10:44:53
问题 Amazon has released the ability to create HTTP API's via API gateway. On their website they describe that it is possible to create an HTTP API via AWS CLI: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-examples.html#http-api-examples.cli.quick-create. FOR EXAMPLE: aws apigatewayv2 create-api --name my-api --protocol-type HTTP --target arn:aws:lambda:us-east-2:123456789012:function:function-name For REST API's I know it is possible to update the CORS policy via AWS CLI.

Does AWS apigateway change http body? How can I stop it from doing this?

匆匆过客 提交于 2021-02-08 07:27:31
问题 Does AWS apigateway change http body? How can I stop it from doing this? My application: (1) A front end "UI" that sends a "http request" using "POST method" that contains a "zip file" in "body" through "form-data". (2) AWS "apigateway" receives this request and forward it to "Lambda Proxy" (3) AWS "Lambda" implemented by python coding receives this request and decompresses this zip file to a temporary folder. The problem I'm facing: (1) and (2) works fine, but in (3) the pythong program at

CloudFront -> S3 for static or API Gateway with multiple dynamic backends in ECS

旧街凉风 提交于 2021-02-07 18:42:54
问题 I need to implement a reverse proxy/redirect service for site which will be hosted in AWS S3 (static JS assets) + CloudFront and multiple backends running as different tasks AWS ECS available at domain.com/api/session_number Redirect or reverse proxy service should analyze input parameter and redirect to corresponding backend. So far I've found ECS-nginx-proxy but it looks more like the tool for dev/stage environments. How such service can be implemented for production using AWS services like

Amazon API Gateway Import From Swagger Error - Not taking Generics

随声附和 提交于 2021-02-07 14:22:44
问题 I'm trying to create new APIGateway via import from Swagger, but having validation errors: The particular class causing the issue is our PaginationModel class. Code model definition: public class PaginationModel<T> { public IEnumerable<T> items { get; set; } public int offset { get; set; } public int totalCount { get; set; } } Swagger file section representing Generic PaginationModel for a particular type: *"PaginationModel[DepartmentUIModel]":{"type":"object","properties":{"items": {"type":

Amazon API Gateway Import From Swagger Error - Not taking Generics

人盡茶涼 提交于 2021-02-07 14:21:35
问题 I'm trying to create new APIGateway via import from Swagger, but having validation errors: The particular class causing the issue is our PaginationModel class. Code model definition: public class PaginationModel<T> { public IEnumerable<T> items { get; set; } public int offset { get; set; } public int totalCount { get; set; } } Swagger file section representing Generic PaginationModel for a particular type: *"PaginationModel[DepartmentUIModel]":{"type":"object","properties":{"items": {"type":

Aggregation of data on API Gateway

ε祈祈猫儿з 提交于 2021-02-07 12:35:14
问题 I am working on microservice architecture and I want to aggregate data from two microservices. For example, Frontend calls the API Gateway and API Gateway calls two microservices Customer and Order microservices. Customer microservice returns customer details and Order microservice returns all ordered products by customer. This is the format returned by API Gateway after aggregation from two microservice using Ocelot or Azure API Management. Format 1 { "Customers":[ { "customerId":1001,

SAM Template for AWS Api Gateway Integration with S3 as AWS Service

女生的网名这么多〃 提交于 2021-02-07 11:14:06
问题 I am writing SAM templates and I want to create an API Gateway with the path as follows:- http:///userFlights/airlines/static/images/{airlineName}. This should be able to download the file from S3 bucket. The {airlineName} may have value like IndiGo.jpg . I am able to create this manually. Nevertheless, the problem is I am not able to find the appropriate Documentation for SAM templates. I need to automate my API Gateway with SAM. The values are as follows:- Integration type - AWS Service AWS

SAM Template for AWS Api Gateway Integration with S3 as AWS Service

醉酒当歌 提交于 2021-02-07 11:12:29
问题 I am writing SAM templates and I want to create an API Gateway with the path as follows:- http:///userFlights/airlines/static/images/{airlineName}. This should be able to download the file from S3 bucket. The {airlineName} may have value like IndiGo.jpg . I am able to create this manually. Nevertheless, the problem is I am not able to find the appropriate Documentation for SAM templates. I need to automate my API Gateway with SAM. The values are as follows:- Integration type - AWS Service AWS

SAM Template for AWS Api Gateway Integration with S3 as AWS Service

こ雲淡風輕ζ 提交于 2021-02-07 11:10:54
问题 I am writing SAM templates and I want to create an API Gateway with the path as follows:- http:///userFlights/airlines/static/images/{airlineName}. This should be able to download the file from S3 bucket. The {airlineName} may have value like IndiGo.jpg . I am able to create this manually. Nevertheless, the problem is I am not able to find the appropriate Documentation for SAM templates. I need to automate my API Gateway with SAM. The values are as follows:- Integration type - AWS Service AWS