This repository has been archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor measurements API to use OpenAPI 2.0 (Swagger) to generate the
public API endpoints This achieves the following goals: * It's possible to programmatically generate the docs from the swagger spec (see: https://github.com/Rebilly/ReDoc) * It's easier to enforce better request argument normalisation and avoid stupid type casting bugs at the source * It reduces the overall amount of boilerplate needed to do common API tasks Currently I use Open API 2.0 instead of 3.0 because the connexion (the library that implements the swagger spec doesn't support 3.0 yet. See: spec-first/connexion#420)
- Loading branch information
Showing
7 changed files
with
508 additions
and
90 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
from .docs import api_docs_blueprint | ||
from .private import api_private_blueprint | ||
from .measurements import api_blueprint | ||
|
||
from .measurements import get_version | ||
from .measurements import list_files | ||
from .measurements import list_measurements, get_measurement |
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.