Skip to content

Commit e9bb519

Browse files
author
Heston Liebowitz
committed
Merge pull request bradfeehan#12 from lyft/add-article-search-params
Added new search parameters to SearchArticles command.
2 parents 213f43e + 9c264f8 commit e9bb519

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

lib/Desk/service-description/operations/Article.group/SearchArticles.yaml

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
extends: list
1+
extends: search
22
summary: Search public articles with pagination
33
uri: articles/search
44
responseClass: SearchArticlesPage
@@ -11,4 +11,13 @@ parameters:
1111
description: Topic IDs to filter results by
1212
type: array
1313
items: { extends: id }
14-
location: "query"
14+
location: query
15+
brand_ids:
16+
description: List of brand ids to filter results.
17+
type: array
18+
items: { extends: id }
19+
location: query
20+
in_support_center:
21+
description: Boolean parameter to limit search to articles that appear in support center.
22+
type: boolean
23+
location: query

lib/Desk/service-description/operations/__index.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@ list:
2323
type: integer
2424
minimum: 1
2525
location: query
26+
search:
27+
extends: list
28+
parameters:
29+
sort_field:
30+
description: Field name on which you would like to sort
31+
type: string
32+
location: query
33+
sort_direction:
34+
description: direction to sort
35+
type: string
36+
enum: ['asc', 'desc']
37+
location: query
2638
show:
2739
extends: embeddable
2840
httpMethod: GET

0 commit comments

Comments
 (0)