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 Answers
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
EXPERT
answered a year ago
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
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions