Skip to content

Commit

Permalink
Change field
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Manuel Leflet Estrada <jleflete@redhat.com>
  • Loading branch information
jmle committed Aug 7, 2024
1 parent cbefc8e commit a824806
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class CustomerController {

private static Logger logger = Logger.getLogger( CustomerController.class.getName() );

@GetMapping(value = "/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
@GetMapping(value = "id", produces = MediaType.APPLICATION_JSON_VALUE)
public Customer getById(@PathVariable("id") Long id) {
Customer c = customerService.findById(id);
if (c == null) {
Expand Down
2 changes: 1 addition & 1 deletion rule-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@
annotated:
elements:
- name: value
value: "/\{id\}"
value: "id"
- category: mandatory
description: |
This rule looks for a given annotation used with another annotation
Expand Down

0 comments on commit a824806

Please sign in to comment.