@@ -45,9 +45,9 @@ private HttpHeaders createHeaders() {
45
45
return headers ;
46
46
}
47
47
48
- @ GetMapping ("/{apiKey }/**" )
48
+ @ GetMapping ("/{api-key }/**" )
49
49
public CompletableFuture <ResponseEntity <JsonNode >> handleGetRequest (
50
- @ PathVariable String apiKey ,
50
+ @ PathVariable ( name = "api-key" ) String apiKey ,
51
51
HttpServletRequest request ,
52
52
HttpServletResponse response ) {
53
53
HttpHeaders headers = createHeaders ();
@@ -64,9 +64,9 @@ public CompletableFuture<ResponseEntity<JsonNode>> handleGetRequest(
64
64
});
65
65
}
66
66
67
- @ PostMapping ("/{apiKey }/**" )
67
+ @ PostMapping ("/{api-key }/**" )
68
68
public CompletableFuture <ResponseEntity <JsonNode >> handlePostRequest (
69
- @ PathVariable String apiKey ,
69
+ @ PathVariable ( name = "api-key" ) String apiKey ,
70
70
@ RequestBody JsonNode requestBody ,
71
71
HttpServletRequest request ,
72
72
HttpServletResponse response ) {
@@ -84,9 +84,9 @@ public CompletableFuture<ResponseEntity<JsonNode>> handlePostRequest(
84
84
});
85
85
}
86
86
87
- @ PutMapping ("/{apiKey }/**" )
87
+ @ PutMapping ("/{api-key }/**" )
88
88
public CompletableFuture <ResponseEntity <JsonNode >> handlePutRequest (
89
- @ PathVariable String apiKey ,
89
+ @ PathVariable ( name = "api-key" ) String apiKey ,
90
90
@ RequestBody JsonNode requestBody ,
91
91
HttpServletRequest request ,
92
92
HttpServletResponse response ) {
@@ -104,9 +104,9 @@ public CompletableFuture<ResponseEntity<JsonNode>> handlePutRequest(
104
104
});
105
105
}
106
106
107
- @ PatchMapping ("/{apiKey }/**" )
107
+ @ PatchMapping ("/{api-key }/**" )
108
108
public CompletableFuture <ResponseEntity <JsonNode >> handlePatchRequest (
109
- @ PathVariable String apiKey ,
109
+ @ PathVariable ( name = "api-key" ) String apiKey ,
110
110
@ RequestBody JsonNode requestBody ,
111
111
HttpServletRequest request ,
112
112
HttpServletResponse response ) {
@@ -124,9 +124,9 @@ public CompletableFuture<ResponseEntity<JsonNode>> handlePatchRequest(
124
124
});
125
125
}
126
126
127
- @ DeleteMapping ("/{apiKey }/**" )
127
+ @ DeleteMapping ("/{api-key }/**" )
128
128
public CompletableFuture <ResponseEntity <JsonNode >> handleDeleteRequest (
129
- @ PathVariable String apiKey ,
129
+ @ PathVariable ( name = "api-key" ) String apiKey ,
130
130
HttpServletRequest request ,
131
131
HttpServletResponse response ) {
132
132
log .info ("Handling DELETE request for API: {}" , apiKey );
0 commit comments