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개 답변
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
전문가
답변함 일 년 전
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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인