Skip to content

Commit

Permalink
Merge pull request #107 from zigc/iteration2-dev
Browse files Browse the repository at this point in the history
Add explicit RequestParam name.
  • Loading branch information
phax authored Sep 7, 2022
2 parents 7669f7d + bf684c0 commit 12fea7f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ private static void _filterDOs (@Nonnull final ResponseLookupRoutingInformationT
}

@GetMapping (value = "/ial/{cot}", produces = MediaType.APPLICATION_XML_VALUE)
public ResponseEntity <byte []> callIalCot (@Valid @PathVariable @NotNull final String cot,
@RequestParam (required = false) final String environment)
public ResponseEntity <byte []> callIalCot (@Valid @PathVariable("cot") @NotNull final String cot,
@RequestParam (name = "environment", required = false) final String environment)
{
if (LOGGER.isInfoEnabled ())
LOGGER.info ("Request to API '/service/ial/" +
Expand Down Expand Up @@ -150,9 +150,9 @@ private static void _filterDOs (@Nonnull final ResponseLookupRoutingInformationT
}

@GetMapping (value = "/ial/{cot}/{atu}", produces = MediaType.APPLICATION_XML_VALUE)
public ResponseEntity <byte []> callIalCotAtu (@Valid @PathVariable @NotNull final String cot,
@Valid @PathVariable @NotNull final String atu,
@RequestParam (required = false) final String environment)
public ResponseEntity <byte []> callIalCotAtu (@Valid @PathVariable("cot") @NotNull final String cot,
@Valid @PathVariable("atu") @NotNull final String atu,
@RequestParam (name = "environment", required = false) final String environment)
{
if (LOGGER.isInfoEnabled ())
LOGGER.info ("Request to API '/service/ial/" +
Expand Down

0 comments on commit 12fea7f

Please sign in to comment.