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
エキスパート
回答済み 1年前
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
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ