-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📝 docs(DataMart): update documentation structure
- Loading branch information
Showing
5 changed files
with
88 additions
and
26 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,27 @@ | ||
""" | ||
Data Mart APIs for Global Forest Watch (GFW) backend consumption. | ||
These APIs provide coarse-grained, tailored data services specifically designed to meet the needs of WRI frontend applications. | ||
The endpoints abstract away the complexities of querying datasets related to tree cover change, allowing applications to integrate and consume | ||
data efficiently and reliably. | ||
### Key Features: | ||
- Tailored queries for retrieving net tree cover change data from the GFW database. | ||
- Efficient data retrieval for ISO country codes and administrative regions. | ||
- Abstracts the SQL query generation process to simplify integration with applications. | ||
""" | ||
from fastapi import APIRouter | ||
|
||
from app.routes.datamart.analysis import analysis_router, datamart_analysis_metadata_tags | ||
|
||
datamart_metadata_tags = [ | ||
{"name": "Data Mart", "description": __doc__}, | ||
] | ||
|
||
datamart_metadata_tags.extend(datamart_analysis_metadata_tags) | ||
|
||
data_mart_router = APIRouter( | ||
prefix="/datamart" | ||
) | ||
|
||
data_mart_router.include_router(analysis_router) |
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,16 @@ | ||
from fastapi import APIRouter | ||
|
||
from app.routes.datamart.analysis.forest_change import forest_change_router, \ | ||
datamart_analysis_forest_change_metadata_tags | ||
|
||
datamart_analysis_metadata_tags = [ | ||
{"name": "Data Mart Analysis", "description": __doc__}, | ||
] | ||
|
||
datamart_analysis_metadata_tags.extend(datamart_analysis_forest_change_metadata_tags) | ||
|
||
analysis_router = APIRouter( | ||
prefix="/analysis" | ||
) | ||
|
||
analysis_router.include_router(forest_change_router) |
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,27 @@ | ||
""" | ||
Forest Change analysis tools! | ||
**Legend:** | ||
⚠️ = _Alerts_ | ||
🔥 = _Fires_ | ||
🌳 = _Tree Cover Change_ | ||
---- | ||
""" | ||
from fastapi import APIRouter | ||
|
||
from app.routes.datamart.analysis.forest_change.tree_cover_change import tree_cover_change_router | ||
|
||
datamart_analysis_forest_change_metadata_tags = [ | ||
{"name": "Forest Change Analysis 📊", "description": __doc__}, | ||
] | ||
|
||
forest_change_router = APIRouter( | ||
prefix="/forest_change", | ||
tags=["Forest Change Analysis 📊"] | ||
) | ||
|
||
forest_change_router.include_router(tree_cover_change_router) |
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