-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Integration tests for the default endpoints.yaml file - Remove poorly supported port flag, which caused docker deployments to fail. To be re-added later! - Added status check endpoint - Small documentation updates
- Loading branch information
1 parent
30110d5
commit 5b73482
Showing
15 changed files
with
621 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
""" Endpoints used by apyr itself. | ||
Prefixed by `/apyr` so as to not block user defined endpoints from being mocked. | ||
""" | ||
from fastapi import APIRouter | ||
|
||
from starlette.responses import Response | ||
from starlette.status import HTTP_200_OK | ||
|
||
apyr_router = APIRouter(prefix="/apyr") | ||
|
||
|
||
@apyr_router.get("/status") | ||
async def status(): | ||
"""Status check for the apyr service. Used mainly as a health check.""" | ||
return Response(status_code=HTTP_200_OK) |
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.