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.
0
votes
0answers
6 views
express js send html with assets to api gateway in a microservices architecture
I could not find any solutions that worked for me.
I am trying to create a simple microservices architecture with Node.js instances. The gateway microservice does not load the html with CSS, JS like ...
1
vote
0answers
6 views
API Gateway and ACL
I'm designing a microservice based application with two API endpoints, and one of them is for user access. Users, authenticated with JWT, can belong to different organizations which are in turn ...
0
votes
1answer
14 views
How to improve security with API Gateway, AWS Lambda, and ElastiCache setup
I am adding a feature to a piece of software where I want an AWS Lambda function to be triggered via and HTTP request via API Gateway, where the lambda function performs four functions with an ...
0
votes
0answers
7 views
API Gateway passthrough to Step-Function
Pals.
I've configured API_GW to POST raw JSON payload to backend (in my case, Step-Function/State-Machine); it's >500+ JSON code.
While, I'm able to successfully test the connection b/w API GW and ...
1
vote
0answers
23 views
How do you run a docker containerized application behind an application gateway in Azure
I've been searching the help forums and the only documentation I've seen on how to do this is to create the gateway and then spin up vm's to run your application. We are using docker containers and I'...
0
votes
1answer
22 views
API Gateway cors issue from s3 bucket
I'm really stuck here and none of the cors related solutions I've found have helped so this is my last resort.
I have created an API Gateway with a POST method that triggers a Lambda function, which ...
-1
votes
1answer
14 views
Azure API gateway vs nginx
I am evaluating wep api gateway for my new projects. I used azure api gateway in the past. Reading about nginx as it is new and adopted by many. Can someone help me point out with some facts, pros, ...
0
votes
0answers
8 views
How can i share some infrastructure in Terragrunt across different environments
I am new to terraform/terragrunt and we are using terragrunt to manage our infra.
The scenario is that i am trying to create a infra like this:
APIGateway - Resource - Method - Authorizer(Lambda) - ...
0
votes
1answer
52 views
How to directly access Azure On-Prem Data Gateway through code
I have set up an Azure On-Premise Data Gateway by following these instructions here. I also tested accessing through Logic Apps following these instructions.
However, I don't want to use Logic Apps. ...
0
votes
1answer
18 views
Azure API Gateway and Web Apps - how to serve CSS, JS and images?
I have a website that serves regular sites using ASP.NET MVC, and also acts as an API which has resources that return JSON.
I've chosen to "hide" this website/API behind an Azure API Gateway, because ...
-2
votes
1answer
26 views
How to upload a csv file to AWS S3 using API gateway and lambda in python
I have a requirement where in i have to pass a csv file from POST method and receive it from Lambda and push it to S3.
0
votes
0answers
15 views
Unable to access APIGateway service hosted on docker container
Windows 10, Visual Studio 2017
Docker and Visual Studio 2017 on same windows 10 machine
Trying to build sample Asp.Net Core Microservice with ApiGateway, and host all these services on Docker ...
0
votes
0answers
30 views
Spring zuul for authorization code grant type
I have been trying to build a spring distributed application that works on JWT. Github repo - https://github.com/dhananjay12/spring-microservice-demo
Service Description
product-service : A simple ...
0
votes
1answer
15 views
AWS API Gateway- No options for models in Method Response
https://imgur.com/a/sN5aPg0
Under models, there's no options to choose from for Application/Json content type. I want an empty model for my method response. How do I create this model?
0
votes
1answer
39 views
API Gateway Design
Api gateway http://microservices.io/patterns/apigateway.html seems to be a good pattern to be adopted in Micro Service architecture(Not internal communication between services).
But I have below ...
0
votes
1answer
73 views
How to properly use express-gateway for authentication of a web app?
I am fairly new to the concept of microservices and api gateways in general. I am trying to understand the role that an api gateway plays in a modern web application using many microservices. I have ...
0
votes
0answers
19 views
Using a microservice behind an API gateway with multiple authentication scenarios
We are migrating an existing application to more towards microservices architecture. We are planning to implement an API Gateway (not just for this, but org level).
Here is our current architecture (...
0
votes
1answer
11 views
I have created a aws private api gateway, but don't know where to find the public dns name
I have created a private aws api gateway with a test method. Per this document I can call it by using the public dns name. Anyone knows where I can find the public dns name of my api. I only can see ...
0
votes
0answers
14 views
JSON query parameter in API Gateway
I would like to send a request that contains a query parameter like ?key={"a" : "b"} through AWS API Gateway.
Url parameters are encoded but API Gateway but response is always a 400 status code.
...
1
vote
1answer
50 views
How to stich (merge, join, …) multiple OData microservices together
we want to publish multiple datasources in our company via separate OData microservices. All these microservices shall be presented by one API Gateway. The gateway shall also stich the metadata ...
0
votes
1answer
15 views
AWS API Gateway Access-Control-Allow-Origin
I've wasted all day on this one. For some reason this works with method GET but when I try it with method PUT I get
No 'Access-Control-Allow-Origin' header is present on the requested resource
I'...
0
votes
0answers
22 views
How to monitor get/post endpoints on aws api gateway?
I have got a service stack consisting of:
api gateway ( with custom url )
|
lambda
The endpoint is public and will be hit by customer. Now, the question is, How do I ensure that endpoint is up ...
0
votes
0answers
20 views
CloudTrail to Audit API Gateway and Lambda API Access
Ok fellow stackoverflowians I have spent the last two days reading every AWS article on CloudTrail and CloudFront and every stackoverflow question I could find on the subject and am running into dead ...
0
votes
1answer
35 views
Cname for AWS API Gateway custom domain
the concept is simple.
Create a Cname switch that points to blue / green deployment channels via AWS API Gateway. The API has two stages for blue and green mapped back into an environment variable ...
0
votes
0answers
24 views
Correct term for API Gateway with realtime data
I am developing a generic API Gateway, Resgate, that provides real-time data from microservices to web clients using WebSockets.
Trying to get feedback from the open source community, I have ...
1
vote
0answers
40 views
use 'X-Forwarded-For' instead of '$remote_ip' in pluggin 'rate-limiting'
We have many layers before Kong server.
How can we use the plugin rate-limiting to limit requests by every enduser's client IP?
I want the plugin rate-limiting to read the header X-Forwarded-For to ...
0
votes
1answer
45 views
Dynamic change Traefik frontend configuration in Docker
I run Traefik in Docker using docker-compose
version: '3'
services:
traefik:
image: traefik
command: --api --docker --docker.watch
ports:
- "80:80"
- "8080:8080"
...
0
votes
0answers
18 views
how to make one endpoint that consist of multiple microservices using python?
So I have http://endpoint.com/order, which will give response that consist from order service dan user service, how to compose this kind of response using python?
{
"result": {
"user": {
"...
0
votes
1answer
55 views
return payload for a API Gateway AWS
I have created a lambda function in Python 3.6 to return few records to an API gateway. the return standard according to documentation must be:
{
"isBase64Encoded" : "boolean",
"statusCode": "...
0
votes
2answers
126 views
Minimal setup for a secured microservice environment
I would like to setup an SSO microservice environment with Gradle, Spring Boot2, Zuul, JWT, Microservices with a REST-Api and a self made Authentication server.
What are the Annotations for the ...
0
votes
1answer
57 views
How to attach or update an API gateway resource policy using boto3
Is there any method in boto3 which will attach or update the resource policy in api -gateway?
I searched in the boto3 documentation, but didn't find any method.
0
votes
2answers
17 views
Can I use 2 API keys to validate a single API gateway API?
I know of a way to have a single API key for authorization purposes of API gateway. Can I have "AND" behavior of 2 API keys as the authorization part of the API gateway API?
1
vote
1answer
29 views
aws apigateway to internal network load balance of a beanstalk does not work
I am facing a blocker and I am totally stuck.
I use beanstalk with internal network load balancer.
Then I use api gatway and vpc link integration to redirect any api calls to my beanstalk. so this way ...
0
votes
0answers
49 views
not able to load netflix zuul route values from configuration class
I was trying my hands on netflix zuul api gateway technology. I was able to route my urls using application.properties file. But I was not able to do the same with third party configuration using ...
0
votes
0answers
6 views
How to avoid clients also changing the service url's whenever it is changes
We have an mvc application and wcf service. We consume multiple webapi also. These service url's keep changing when with version number or systemname. so it's impacting all clients and forcing us to ...
0
votes
0answers
32 views
API gateway with lambda proxy throwing InternalServerError
I have a simple lambda that I am fronting through API gateway with Lambda proxy integration.
Here is my lambda code
exports.handler = main;
function main(event, context, callback) {
console.log(...
0
votes
1answer
42 views
load netflix zuul routes values from database
I was learning about api gateway technology netflix zuul. I figured out all things in place and was able to route my apis with zuul proxy url. Below is my code:
Main class
package com.example....
0
votes
1answer
41 views
Api-Gateway Spring boot Variable URI
I'm starting learning spring boot last month in an internship, so I have some problems. I'm working on api-gateway of spring boot. I want to configure an URI that is programmable. I'll give you an ...
0
votes
1answer
38 views
Punchout2go integration for c#
I want to implement "punch out" integration in my website. I am working on a e commerce website and it required to implement "punch out" with help of punchout2go.com .
I searched over web, but can't ...
0
votes
0answers
80 views
Strip off prefix in Zuul API gateway
I am trying to configure an API call router using zuul that forwards calls .
There are two services: the users service is using path versioning, i.e. /v1/users, /v2/users, ...
The accounts service ...
1
vote
0answers
11 views
Validating content on Oracle API Gateway
I am quite new to Oracle API Gateway and I need to have access to all its fields in order to make validation. Thus, I am using a small Java application I developed with Entity(getAllFields) and ...
1
vote
1answer
65 views
API Gateway Micro Service Lookup Method
I have built an API, with an API Gateway and two micro services.
The two micro services are Products and Categories.
The API call can do the following:
/v1/account/getAccount // gets all ...
0
votes
0answers
19 views
Zuul configuration help needed for legacy url
I am a very new to Zuul, so please pardon my ignorance and if i have forgotten to read any document. This was my reference
https://cloud.spring.io/spring-cloud-netflix/multi/...
0
votes
0answers
28 views
AWS API Gateway optional request content-type for type mock api
I need to have a mock API on AWS API Gateway, which should always respond with 200 response code, text/html as content-Type and static content in body.
The problem is that my current configuration ...
1
vote
1answer
93 views
APIs authentication and JWT token validation with KONG
I plan to use Kong in our project. I'm currently working on a POC to see how we can integrate it in our platform as the main API gateway. I also want to use the JWT plugin for authentication and ...
0
votes
0answers
10 views
Circuit breaker - storing failures locally vs on remote?
For the circuit breaker pattern of API gateway do we store the count of failures locally on same shard or we should store the same on a seperate remote data node so that it can be aggregated across ...
0
votes
0answers
62 views
AWS API Gateway CORS from Swagger
I am importing a Swagger file into a Terraform created AWS API Gateway deployment, and everything seems to work fine apart from enabling CORS. Once I have finished deploying, then I always receive the ...
0
votes
0answers
39 views
implementing spring security in API gateway in micro services using spring boot
I am implementing micro services with API gateway. I want to use security that uses json-web-token. I am using angular-5 as front end, and back end micro service using spring boot. I am using zuul for ...
0
votes
0answers
44 views
API Gateway is not calling global mediaton extension - WSO2 AM 2.2.0
I am following given documentation to create a global synapse mediator, but it seems that my mediator is not used. When I upload the same mediator XML to the API on publisher, works properly.
My XML ...
3
votes
1answer
96 views
Should API gateway be responsible for authorisation?
Currently I have a monolith application with Java/Spring Boot the following endpoints:
/login
/logout
/some-resource
To access some-resource, the flow is following:
The user makes a POST request to ...