Skip to content

Commit

Permalink
Change the endpoint Path
Browse files Browse the repository at this point in the history
  • Loading branch information
ramueSVA committed Nov 14, 2024
1 parent 8d384b2 commit d322ff1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

@RestController
@AllArgsConstructor
@RequestMapping(value = "/query", produces = "application/json")
@RequestMapping(value = "/manager", produces = "application/json")
@SecurityRequirement(name = "security_auth")
@ConditionalOnProperty(value = "feature.search-with-aql", havingValue = "true")
public class ManagerController {
Expand All @@ -42,7 +42,7 @@ public class ManagerController {
private final ExportHeaderUtil exportHeaderUtil;

@ContextLog(type = "Manager", description = "Execute AQL queries")
@PostMapping("execute")
@PostMapping("execute/query")
@Operation(description = "Executes an AQL query")
@PreAuthorize(Role.MANAGER)
public ResponseEntity<QueryResponseData> executeManagerQuery(
Expand All @@ -52,7 +52,7 @@ public ResponseEntity<QueryResponseData> executeManagerQuery(
);
}

@PostMapping("/manager/execute")
@PostMapping("/execute/project")
@Operation(
description = "Executes the manager project aql in the cohort returning medical data matching the templates")
@PreAuthorize(Role.MANAGER)
Expand All @@ -66,7 +66,7 @@ public ResponseEntity<String> executeManagerProject(
principal.getSubject()));
}

@PostMapping(value = "/manager/export")
@PostMapping(value = "/export")
@Operation(description = "Executes the cohort default configuration returns the result as a csv file attachment")
@PreAuthorize(Role.MANAGER)
public ResponseEntity<StreamingResponseBody> exportManagerResults(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class ManagerControllerFeatureDisabledIT extends IntegrationTest {
@Autowired
public MockMvc mockMvc;

private static final String PATH = "/query/execute";
private static final String PATH = "/manager/execute/query";
@Autowired
private ObjectMapper mapper;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class ManagerControllerIT extends IntegrationTest {
@Autowired
public MockMvc mockMvc;

private static final String PATH = "/query/execute";
private static final String PATH = "/manager/execute/query";

@Autowired
private ObjectMapper mapper;
Expand Down

0 comments on commit d322ff1

Please sign in to comment.