@@ -37,6 +37,7 @@ const val AMINO_ACID_MUTATIONS_SCHEMA = "AminoAcidMutations"
37
37
const val ORDER_BY_FIELDS_SCHEMA = " OrderByFields"
38
38
const val LIMIT_SCHEMA = " Limit"
39
39
const val OFFSET_SCHEMA = " Offset"
40
+ const val FORMAT_SCHEMA = " DataFormat"
40
41
41
42
const val DETAILS_ENDPOINT_DESCRIPTION = " Returns the specified metadata fields of sequences matching the filter."
42
43
const val AGGREGATED_ENDPONT_DESCRIPTION = " Returns the number of sequences matching the specified sequence filters"
@@ -95,6 +96,12 @@ class LapisController(
95
96
)
96
97
@RequestParam
97
98
offset : Int? = null,
99
+ @Parameter(
100
+ schema = Schema (ref = " #/components/schemas/$FORMAT_SCHEMA " ),
101
+ description = " The format of the response." ,
102
+ )
103
+ @RequestParam
104
+ dataFormat : String? = null,
98
105
): LapisResponse <List <AggregationData >> {
99
106
val request = SequenceFiltersRequestWithFields (
100
107
sequenceFilters?.filter { ! SPECIAL_REQUEST_PROPERTIES .contains(it.key) } ? : emptyMap(),
@@ -366,6 +373,12 @@ class LapisController(
366
373
)
367
374
@RequestParam
368
375
offset : Int? = null,
376
+ @Parameter(
377
+ schema = Schema (ref = " #/components/schemas/$FORMAT_SCHEMA " ),
378
+ description = " The format of the response." ,
379
+ )
380
+ @RequestParam
381
+ dataFormat : String? = null,
369
382
): LapisResponse <List <DetailsData >> {
370
383
val request = SequenceFiltersRequestWithFields (
371
384
sequenceFilters?.filter { ! SPECIAL_REQUEST_PROPERTIES .contains(it.key) } ? : emptyMap(),
0 commit comments