Skip to content

Commit

Permalink
add 422 response to axis suggestions; change url
Browse files Browse the repository at this point in the history
  • Loading branch information
sleeping-h committed Sep 19, 2024
1 parent 73912ae commit d295c74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public LLMAnalyticsDto getLLMAnalytics(AnalyticsRequestDto llmAnalyticsRequest)

public ResponseEntity<byte[]> mcdaSuggestion(UUID appId, String query) {
return llmAnalyticsRestTemplate
.exchange(String.format("/mcda_suggestion?appId=%s&query=%s", appId, query), GET,
.exchange(String.format("/mcda-suggestion?appId=%s&query=%s", appId, query), GET,
httpEntityWithUserBearerAuthIfPresent(null),
new ParameterizedTypeReference<>() {});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public ResponseEntity<?> handleSearchClick(
@ApiResponse(responseCode = "200", description = "OK"),
@ApiResponse(responseCode = "400", description = "Bad Request: invalid input data"),
@ApiResponse(responseCode = "401", description = "Unauthorized: User not authenticated"),
@ApiResponse(responseCode = "422", description = "LLM failed to provide meaningful analysis"),
})
@GetMapping("/mcda_suggestion")
@PreAuthorize("isAuthenticated()")
Expand Down

0 comments on commit d295c74

Please sign in to comment.