how to expose put method of spring boot rest api in api gateway

0

I am building api gateway using REST API and HTTP proxy integration. My spring boot rest end point for PUT method is http://localhost:8080/journey/{id} where id is path variable.

How to create method in api gateway so i can use the api gateway's deployed url to hit the spring boot application's put method for updating journey info

2 Respostas
0

Hi,

Depends where are you deploying the app. If using lambda (https://docs.spring.io/spring-cloud-function/docs/current/reference/html/aws-intro.html) you can just have a direct proxy integration between api gw and the lambda itself.

If using a container, you may need an application load balancer between the api gw and you container (deployed in ECS or EKS).

Hope it helps ;)

profile picture
ESPECIALISTA
respondido há um ano
0

In the blog only get method is shown and swagger specs but i would like to know how to do it without swagger.

I was able to workaround with @Request Params instead of @Path Variable but please do let me know if an appropriate solution is availbale.

Thank you.

lavanya
respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas