-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add API routes and controllers for additional search views (#2853)
* Add routes for the collections Signed-off-by: Olga Bulat <[email protected]> * Add and update tests Signed-off-by: Olga Bulat <[email protected]> * Remove double plurals in field_names * Add docs to media_serializers Notes on fuzzy matching for query params and maximum page_size documentation * Improve collection documentation Co-authored-by: Staci Mullins <[email protected]> * Add integration tests Signed-off-by: Olga Bulat <[email protected]> * Update docs Signed-off-by: Olga Bulat <[email protected]> * Update api/api/controllers/search_controller.py Co-authored-by: sarayourfriend <[email protected]> * Update api/api/controllers/search_controller.py Co-authored-by: sarayourfriend <[email protected]> * Update test Signed-off-by: Olga Bulat <[email protected]> * Combine TYPE_CHECKING clauses Signed-off-by: Olga Bulat <[email protected]> * Extract build_query to clean up query_media Signed-off-by: Olga Bulat <[email protected]> * Use the keyword creator field Signed-off-by: Olga Bulat <[email protected]> * Fix related test Signed-off-by: Olga Bulat <[email protected]> * Fix creator collection test Signed-off-by: Olga Bulat <[email protected]> * Update api/api/docs/base_docs.py Co-authored-by: sarayourfriend <[email protected]> Signed-off-by: Olga Bulat <[email protected]> --------- Signed-off-by: Olga Bulat <[email protected]> Co-authored-by: Staci Mullins <[email protected]> Co-authored-by: sarayourfriend <[email protected]>
- Loading branch information
1 parent
cdee828
commit 3986e71
Showing
20 changed files
with
775 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from typing import Literal | ||
|
||
|
||
SEARCH_STRATEGIES = ["search", "collection"] | ||
SearchStrategy = Literal["search", "collection"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.