Questions tagged [api-gateway]

A service which acts as a gateway for many other services. Providing discovery, registry, security, circuit breaker, fault tolerance among other things.

Useful links:

1246 questions
3
votes
0 answers

Add integration tests for API gateway endpoints

I have implemented an API gateway in .NET Core and I want to write functional tests to verify the behavior of the endpoints in the API gateway. I am using TestServer to test integration events between microservices, but I am not sure how to use it…
3
votes
2 answers

Azure AD B2C breaks OIDC spec

I've configured a custom policy with AAD B2C IEF per this link and am now trying to integrate it into API Gateway as a JWT authorizer per this link. However, attempting to configure the authorizer throws an error error updating API Gateway v2…
John B
  • 1,129
  • 14
  • 23
3
votes
1 answer

Can I upload form-data files to S3 via AWS API-Gateway?

In AWS environment I want to upload a file to S3 via API gateway. I can't use lambda, because the 6MB payload limit. (The API gateway's 10MB limit is fine.) I could manage to upload a file with POST request and binary body. My question is how can I…
pityo10000
  • 117
  • 1
  • 13
3
votes
0 answers

BFF pattern + ReacJS - How to handle componentization?

I'm having trouble trying to figure out the use of BFF pattern and ReactJs componentization. As described in BFF articles the BFF layer should serve as an aggregator to the frontend in a microservices architecture, this means that one screen can…
3
votes
1 answer

kong gateway add headers

I want to add some headers to my incoming rest api requests with kong gateway. In the kong admin UI, I set these parametes : config.add.headers: myheader: $(consumer_id) myheader is a name for new header and I want to set variable of consumer_id…
pheshmati
  • 53
  • 1
  • 5
3
votes
2 answers

API Gateway doesn't aggregate microservices swagger docs Spring boot

Pom.xml: io.springfox springfox-boot-starter 3.0.0 org.springdoc
George
  • 31
  • 1
  • 3
3
votes
1 answer

How does the API Gateway token bucket algorithm work when burst < rate?

I’m trying to understand the token bucket algorithm that is used by API Gateway, but one scenario isn’t making sense to me. How does the algorithm work when the burst is lower than the rate? If you did that, wouldn’t your rate limit effectively be…
mymemesarespiciest
  • 501
  • 2
  • 4
  • 11
3
votes
2 answers

Enable CORS DEFAULT 4XX/5XX for API Gateway in Cloudformation template

I'm creating AWS Cloudformation template for my environment and I try to enable CORS for API Gateway method. Answer to question #40292888 link to question #40292888 partially answered my question. Solution works great when API return code 200 but I…
3
votes
0 answers

Spring Boot RewritePath Replacement

server.port= 8888 spring.application.name=my-api spring.cloud.gateway.routes[0].id = my-api spring.cloud.gateway.routes[0].uri =…
3
votes
3 answers

api gateway for spring boot microservices in open shift

We have a microservices based application running in openshift for which we need to design an API gateway. This API gateway is expected to perform minimal checks like authentication , routing to appropriate micro services , logging , tracing etc (…
lives
  • 1,243
  • 5
  • 25
  • 61
3
votes
1 answer

Should I validate JWT twice (in API gateway and service itself)?

I'm currently setting up a API gateway for our services. The API gateway handles the Token Validation (via OpenID Connect). The request is only routed to the target backend service if the token is valid. Should I then also validate token in the…
Raman
  • 548
  • 1
  • 7
  • 17
3
votes
0 answers

Why does Apollo Client ignore the response even though I have 200 status

I'm in the process of duplicating AWS services with LocalStack. I've got my Lambda and API Gateway running in LocalStack in much the same way as they would in AWS. I've tested using a Rest API tool to verify. However, when I run the same query…
Dale O'Brien
  • 4,108
  • 2
  • 15
  • 10
3
votes
1 answer

how can I implement rpc in krakend-amqp or how can I return a response to the client on request via a queue in krakend?

Can anyone help me with setting up rabbitmq in krakend, I have a big problem when I try to get a message in kraken from the queue and pass it to the client? The scheme is as follows: client-> API gateway (krakend) -> queue (rabbitmq) ->…
3
votes
0 answers

AWS API Gateway not picking up path and query parameter validation from OpenAPI/Swagger?

I imported an OpenAPI definition json into AWS API Gateway, and I noticed that none of path or query parameter validations works. I am hoping to do /card/{type}?userId={userId}, where type belongs to a set of enum values and userId with a regex…
3
votes
2 answers

Error consume route ApiGateway with ocelot and docker service

I am creating an ApiGateway with ocelot that consume an Api service in net core. The ApiGateway and ApiService are deployed on docker with docker compose of this way: Docker-compose: tresfilos.webapigateway: image:…
Dr oscar
  • 359
  • 1
  • 4
  • 16