Skip to content

Commit

Permalink
fix: Fix for un-named path params (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
gazbert committed Nov 14, 2024
1 parent 64dd7fb commit b83bb77
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ public List<MarketConfig> getAllMarkets(@Parameter(hidden = true) Principal prin
content = @Content(schema = @Schema(implementation = String.class)))
})
public ResponseEntity<MarketConfig> getMarket(
@Parameter(hidden = true) Principal principal, @PathVariable String marketId) {
@Parameter(hidden = true) Principal principal,
@PathVariable(name = "marketId") String marketId) {

log.info(
"GET " + MARKETS_RESOURCE_PATH + "/{} - getMarket() - caller: {}",
Expand Down Expand Up @@ -174,7 +175,7 @@ public ResponseEntity<MarketConfig> getMarket(
})
public ResponseEntity<MarketConfig> updateMarket(
@Parameter(hidden = true) Principal principal,
@PathVariable String marketId,
@PathVariable(name = "marketId") String marketId,
@RequestBody MarketConfig config) {

log.info(
Expand Down Expand Up @@ -257,7 +258,8 @@ public ResponseEntity<MarketConfig> createMarket(
content = @Content(schema = @Schema(implementation = String.class)))
})
public ResponseEntity<MarketConfig> deleteMarket(
@Parameter(hidden = true) Principal principal, @PathVariable String marketId) {
@Parameter(hidden = true) Principal principal,
@PathVariable(name = "marketId") String marketId) {

log.info(
"DELETE " + MARKETS_RESOURCE_PATH + "/{} - deleteMarket() - caller: {}",
Expand Down

0 comments on commit b83bb77

Please sign in to comment.