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 b83bb77 commit f078407
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ public List<StrategyConfig> getAllStrategies(@Parameter(hidden = true) Principal
content = @Content(schema = @Schema(implementation = String.class)))
})
public ResponseEntity<StrategyConfig> getStrategy(
@Parameter(hidden = true) Principal principal, @PathVariable String strategyId) {
@Parameter(hidden = true) Principal principal,
@PathVariable(name = "strategyId") String strategyId) {

log.info(
"GET " + STRATEGIES_RESOURCE_PATH + "/{} - getStrategy() - caller: {}",
Expand Down Expand Up @@ -175,7 +176,7 @@ public ResponseEntity<StrategyConfig> getStrategy(
})
public ResponseEntity<StrategyConfig> updateStrategy(
@Parameter(hidden = true) Principal principal,
@PathVariable String strategyId,
@PathVariable(name = "strategyId") String strategyId,
@RequestBody StrategyConfig config) {

log.info(
Expand Down Expand Up @@ -263,7 +264,8 @@ public ResponseEntity<StrategyConfig> createStrategy(
content = @Content(schema = @Schema(implementation = String.class)))
})
public ResponseEntity<StrategyConfig> deleteStrategy(
@Parameter(hidden = true) Principal principal, @PathVariable String strategyId) {
@Parameter(hidden = true) Principal principal,
@PathVariable(name = "strategyId") String strategyId) {

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

0 comments on commit f078407

Please sign in to comment.