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 Antworten
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
EXPERTE
beantwortet vor einem Jahr
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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen