-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from mabel-dev/branching
wip
- Loading branch information
Showing
17 changed files
with
192 additions
and
34 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
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
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
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,29 @@ | ||
""" """ | ||
|
||
from fastapi import APIRouter | ||
from fastapi import Path | ||
from fastapi import Request | ||
from fastapi.responses import ORJSONResponse | ||
|
||
from tarchia.interfaces.catalog import catalog_factory | ||
from tarchia.utils.constants import IDENTIFIER_REG_EX | ||
|
||
router = APIRouter() | ||
catalog_provider = catalog_factory() | ||
|
||
|
||
@router.get("/relations/{owner}", response_class=ORJSONResponse) | ||
async def list_relations( | ||
request: Request, | ||
owner: str = Path(description="The owner of the relation.", pattern=IDENTIFIER_REG_EX), | ||
): | ||
raise NotImplementedError("") | ||
|
||
|
||
@router.get("/relations/{owner}/{relation}", response_class=ORJSONResponse) | ||
async def list_relations( | ||
request: Request, | ||
owner: str = Path(description="The owner of the relation.", pattern=IDENTIFIER_REG_EX), | ||
relation: str = Path(description="The name of the relation.", pattern=IDENTIFIER_REG_EX), | ||
): | ||
raise NotImplementedError("") |
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 |
---|---|---|
@@ -1,25 +1,42 @@ | ||
from fastapi import APIRouter | ||
from fastapi import Path | ||
from fastapi import Request | ||
from fastapi.responses import ORJSONResponse | ||
|
||
from tarchia.utils.constants import IDENTIFIER_REG_EX | ||
|
||
router = APIRouter() | ||
|
||
|
||
@router.get("/views/{owner}", response_class=ORJSONResponse) | ||
async def list_views(request: Request, owner: str): | ||
async def list_views( | ||
request: Request, | ||
owner: str = Path(description="The owner of the view.", pattern=IDENTIFIER_REG_EX), | ||
): | ||
raise NotImplementedError("Not Implemented") | ||
|
||
|
||
@router.post("/views/{owner}", response_class=ORJSONResponse) | ||
async def create_view(request: Request, owner: str): | ||
async def create_view( | ||
request: Request, | ||
owner: str = Path(description="The owner of the view.", pattern=IDENTIFIER_REG_EX), | ||
): | ||
raise NotImplementedError("Not Implemented") | ||
|
||
|
||
@router.get("/views/{owner}/{view}", response_class=ORJSONResponse) | ||
async def get_view(request: Request, owner: str, view: str): | ||
async def get_view( | ||
request: Request, | ||
owner: str = Path(description="The owner of the view.", pattern=IDENTIFIER_REG_EX), | ||
view: str = Path(description="The view.", pattern=IDENTIFIER_REG_EX), | ||
): | ||
raise NotImplementedError("Not Implemented") | ||
|
||
|
||
@router.delete("/views/{owner}/{view}", response_class=ORJSONResponse) | ||
async def delete_view(request: Request, owner: str, view: str): | ||
async def delete_view( | ||
request: Request, | ||
owner: str = Path(description="The owner of the view.", pattern=IDENTIFIER_REG_EX), | ||
view: str = Path(description="The view.", pattern=IDENTIFIER_REG_EX), | ||
): | ||
raise NotImplementedError("Not Implemented") |
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
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
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.