You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: audio-api/src/main/scala/no/ndla/audioapi/model/api/SearchParamsDTO.scala
+23-12
Original file line number
Diff line number
Diff line change
@@ -9,20 +9,31 @@
9
9
packageno.ndla.audioapi.model.api
10
10
11
11
importno.ndla.audioapi.model.Sort
12
+
importno.ndla.common.model.api.LanguageCode
12
13
importsttp.tapir.Schema.annotations.description
13
14
14
-
// format: off
15
15
@description("The search parameters")
16
16
caseclassSearchParamsDTO(
17
-
@description("Return only audio with titles, alt-texts or tags matching the specified query.") query: Option[String],
18
-
@description("Return only audio with provided license.") license: Option[String],
19
-
@description("The ISO 639-1 language code describing language used in query-params") language: Option[String],
20
-
@description("The page number of the search hits to display.") page: Option[Int],
21
-
@description("The number of search hits to display for each page.") pageSize: Option[Int],
22
-
@description("The sorting used on results. Default is by -relevance.") sort: Option[Sort],
23
-
@description("A search context retrieved from the response header of a previous search.") scrollId: Option[String],
24
-
@description("Type of audio to filter by.") audioType: Option[String],
25
-
@description("Filter result by whether they are a part of a series or not.\n'true' will return only audios that are a part of a series.\n'false' will return only audios that are NOT a part of a series.\nNot specifying will return both audios that are a part of a series and not.") filterBySeries: Option[Boolean],
26
-
@description("Return all matched audios whether they exist on selected language or not.") fallback: Option[Boolean]
17
+
@description("Return only audio with titles, alt-texts or tags matching the specified query.")
18
+
query: Option[String],
19
+
@description("Return only audio with provided license.")
20
+
license: Option[String],
21
+
@description("The ISO 639-1 language code describing language used in query-params")
22
+
language: Option[LanguageCode],
23
+
@description("The page number of the search hits to display.")
24
+
page: Option[Int],
25
+
@description("The number of search hits to display for each page.")
26
+
pageSize: Option[Int],
27
+
@description("The sorting used on results. Default is by -relevance.")
28
+
sort: Option[Sort],
29
+
@description("A search context retrieved from the response header of a previous search.")
30
+
scrollId: Option[String],
31
+
@description("Type of audio to filter by.")
32
+
audioType: Option[String],
33
+
@description(
34
+
"Filter result by whether they are a part of a series or not.\n'true' will return only audios that are a part of a series.\n'false' will return only audios that are NOT a part of a series.\nNot specifying will return both audios that are a part of a series and not."
35
+
)
36
+
filterBySeries: Option[Boolean],
37
+
@description("Return all matched audios whether they exist on selected language or not.")
0 commit comments