-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
## Summary Fixes #2793 ### Time to review: 30 mins ## Changes proposed Add a new Blueprint / API for the extract metadata API. Add tests for all business rules and data retrieval ## Context for reviewers Population of the table will be addressed in a follow-on ticket. ## Additional information Open questions: Should this be called V1 to follow the opportunity API convention? `extract_type` is a filter in the POST param vs an explicit path param in the URL. Is that OK? See unit tests for additional context.
- Loading branch information
1 parent
71e217d
commit 5d4754f
Showing
15 changed files
with
761 additions
and
89 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,6 @@ | ||
from src.api.extracts_v1.extract_blueprint import extract_blueprint | ||
|
||
# import extract_routes module to register the API routes on the blueprint | ||
import src.api.extracts_v1.extract_routes # noqa: F401 E402 isort:skip | ||
|
||
__all__ = ["extract_blueprint"] |
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,9 @@ | ||
from apiflask import APIBlueprint | ||
|
||
extract_blueprint = APIBlueprint( | ||
"extract_v1", | ||
__name__, | ||
tag="Extract v1", | ||
cli_group="extract_v1", | ||
url_prefix="/v1", | ||
) |
Oops, something went wrong.