我有一个检查值的方法,如果它匹配,我计划将此值传递给端点。使用Spring应用程序怎么可能?
这是我的POST方法
@POST
@ApiOperation(value = "Calls Lambda function based on the Vehicle passed")
@ApiResponses(value =
{
@ApiResponse(code = HttpStatus.SC_OK
, message = SUCCESS_MSG),
@ApiResponse(code = HttpStatus.SC_INTERNAL_SERVER_ERROR
, message = "Server Error"
, response = ExceptionResponse.class)
})
public String passVehicleType(String ispName)
{
if( ispName == null ) {
throw new IllegalArgumentException( "VehicleType is null" );
}
if( ispName.equals("US Mutual Fund") ) {
LOGGER.info(zMETHOD + "Vehicles provided: " + ispName);
}
//final String uri = "http://localhost:3000/dispatcher/service/api/message";
return ispName;
}