|
6 | 6 | package org.sagebionetworks.model.ad.api.next.api; |
7 | 7 |
|
8 | 8 | import org.sagebionetworks.model.ad.api.next.model.dto.BasicErrorDto; |
| 9 | +import org.sagebionetworks.model.ad.api.next.model.dto.DiseaseCorrelationSearchQueryDto; |
9 | 10 | import org.sagebionetworks.model.ad.api.next.model.dto.DiseaseCorrelationsPageDto; |
10 | | -import org.sagebionetworks.model.ad.api.next.model.dto.ItemFilterTypeQueryDto; |
11 | 11 | import io.swagger.v3.oas.annotations.ExternalDocumentation; |
12 | 12 | import io.swagger.v3.oas.annotations.Operation; |
13 | 13 | import io.swagger.v3.oas.annotations.Parameter; |
@@ -45,11 +45,7 @@ default DiseaseCorrelationApiDelegate getDelegate() { |
45 | 45 | * GET /comparison-tools/disease-correlation : Get disease correlation comparison data |
46 | 46 | * Returns a paginated list of disease correlation objects for use in comparison tools. |
47 | 47 | * |
48 | | - * @param category An ordered list of categories used to filter the data, where the first value is the category and the second is the subcategory. Pass each value by repeating the 'category' query parameter, e.g. ?category=category1&category=subcategoryA. (required) |
49 | | - * @param item A list of items to filter the data by. (optional) |
50 | | - * @param itemFilterType The type of filter to apply to the items. Possible values are 'include' or 'exclude'. (optional, default to include) |
51 | | - * @param pageNumber The page number. (optional, default to 0) |
52 | | - * @param pageSize The number of items in a single page. (optional, default to 10) |
| 48 | + * @param diseaseCorrelationSearchQuery The search query used to find and filter disease correlations. (optional) |
53 | 49 | * @return A paginated response containing disease correlation objects (status code 200) |
54 | 50 | * or Invalid request (status code 400) |
55 | 51 | * or The specified resource was not found (status code 404) |
@@ -86,13 +82,9 @@ default DiseaseCorrelationApiDelegate getDelegate() { |
86 | 82 | ) |
87 | 83 |
|
88 | 84 | default ResponseEntity<DiseaseCorrelationsPageDto> getDiseaseCorrelations( |
89 | | - @NotNull @Parameter(name = "category", description = "An ordered list of categories used to filter the data, where the first value is the category and the second is the subcategory. Pass each value by repeating the 'category' query parameter, e.g. ?category=category1&category=subcategoryA.", required = true, in = ParameterIn.QUERY) @Valid @RequestParam(value = "category", required = true) List<String> category, |
90 | | - @Parameter(name = "item", description = "A list of items to filter the data by.", in = ParameterIn.QUERY) @Valid @RequestParam(value = "item", required = false) @Nullable List<String> item, |
91 | | - @Parameter(name = "itemFilterType", description = "The type of filter to apply to the items. Possible values are 'include' or 'exclude'.", in = ParameterIn.QUERY) @Valid @RequestParam(value = "itemFilterType", required = false, defaultValue = "include") ItemFilterTypeQueryDto itemFilterType, |
92 | | - @Min(0) @Parameter(name = "pageNumber", description = "The page number.", in = ParameterIn.QUERY) @Valid @RequestParam(value = "pageNumber", required = false, defaultValue = "0") Integer pageNumber, |
93 | | - @Min(1) @Max(1000) @Parameter(name = "pageSize", description = "The number of items in a single page.", in = ParameterIn.QUERY) @Valid @RequestParam(value = "pageSize", required = false, defaultValue = "10") Integer pageSize |
| 85 | + @Parameter(name = "diseaseCorrelationSearchQuery", description = "The search query used to find and filter disease correlations.", in = ParameterIn.QUERY) @Valid @Nullable DiseaseCorrelationSearchQueryDto diseaseCorrelationSearchQuery |
94 | 86 | ) { |
95 | | - return getDelegate().getDiseaseCorrelations(category, item, itemFilterType, pageNumber, pageSize); |
| 87 | + return getDelegate().getDiseaseCorrelations(diseaseCorrelationSearchQuery); |
96 | 88 | } |
97 | 89 |
|
98 | 90 | } |
0 commit comments