Commit 9bf250a
docs: OpenAPI/SwaggerUI (#1703)
* first endpoint working to the point that it can be executed via SwaggerUI
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
* Added docs for Sensor endpoints.
* Added SensorKwargsSchema, Fixed Direct list response, Fixed file upload issues.
* Added generate-openapi to update-docs.
* Updated the URL for docs.
* Added docs to menu.
* Removed JSON file entry.
* Fetch Flexmeasures version dynamically.
* Added external link and one asset endpoint for linking with sensor schedule api.
* Updated changelog.
* Added packages to requirements.
* Update flexmeasures/api/v3_0/assets.py
Co-authored-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: Muhammad-Moiz626 <muhammadmoiz4843@gmail.com>
* Update flexmeasures/api/v3_0/assets.py
Co-authored-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: Muhammad-Moiz626 <muhammadmoiz4843@gmail.com>
* Fixed Note UI, External linking to actual flexmeasures docs, OpenAPI docs fixes.
* Created FlexContext and FlexModel schemas and added to a new schema for AssetTriggerOpenAPISchema.
* Documented users endpoints.
* Utility function to convert non compatible fields to OpenAPI compatible string field.
* Added UserId schema and fixed password-reset swagger bug.
* Created Schemas for kwargs to be used with docs and actual routes, Generic pagination schemas and some changes in the users endpoints.
* Complete documentation for assets endpoints.
* Fixed assets page 422 error.
* Fixed user endpoint bugs.
* remove description for replacement string field, should resolve error as it is not supported
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
* fix various things in sensor resource endpoints YAML (not 100%) complete yet.
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
* better minimal scheduling example, with a fixed price
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
* clarity on how the query parameters to the get-data endpoint need to be escaped, and can alsp be part of the JSON body
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
* move generate-opeapi Make target to correct section
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
* no need in teasts to assume each audit log entry happens only once
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
* fix asset index API, some refactoring
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
* read_only is not valid in schema fields
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
* docs: update get asset api docs
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* docs: update api docs for triggering schedules
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* docs: initiate first accounts docs as well as schema for pagination schema
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* a few text improvements on asseet resource
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
* docs: migrate all accounts API docs to Swagger UI
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* Update flexmeasures/api/v3_0/assets.py
Co-authored-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
* Update flexmeasures/api/v3_0/assets.py
Co-authored-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
* Update flexmeasures/api/v3_0/assets.py
Co-authored-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
* Update flexmeasures/api/v3_0/assets.py
Co-authored-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
* chore: update some asset APi doc
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* refactor: schema for asset API(set default view) example
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* Update flexmeasures/api/v3_0/accounts.py
Co-authored-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
* chore: schema syncing on accoutn API docs
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* Fix: broken schema registration
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: outline list of options for user asset page default view
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* Fix: fix faiing schema rendering for create asset api
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: update description for API for downloading asset chart
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* Fix: Fixed broken schema option for account API patch swagger schema
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: move documentation requirements
Signed-off-by: F.N. Claessen <felix@seita.nl>
* Make the Sphinx/RTD part of the v3 API pretty again, using OpenAPI specs. TODO: re-create qref links
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
* (re-)add qrefs to asset endpoints, so Sphinx shows a nice table again
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
* chore: migrate requestAuthToken api to swagger UI/openapi
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* Add quickrefs to all endpoints we worked on so far, so the table in Sphinx/RTD is grouped nicely
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
* chore: migrate health and version list api docs
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* Sphinx/RTD uses the same json specs as Swagger (just keep one of them in the repo is better), plus some small changes and comments
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
* update dependencies across Python versions
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
* move apispec requirements in the function for docs generation
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
* docs: udpate docs qith quickrefs
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* mention OpenAPI/Swagger on API docs
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
* Fix: fixed failing test due to circular import
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* doc: udpated docs for API to upload graph data
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: discarding unused code
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* some regroupings, fixing of descriptions
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
* chore: udpate docs
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: remove default value for page query on API pagination quaries
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* Refactor: adapt schedule tests to match new cli iput format
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* use higher Postgres version for GitHub Actions, trying to reproduce errors
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
* ignore the new specs-generation util file in doctesting
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
* move the OpenAPI generation script to a non-packaged script directory
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
* Update flexmeasures/api/common/schemas/generic_schemas.py
Signed-off-by: Nicolas Höning <iam@nicolashoening.de>
---------
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: Muhammad-Moiz626 <muhammadmoiz4843@gmail.com>
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: Nicolas Höning <iam@nicolashoening.de>
Co-authored-by: Muhammad-Moiz626 <muhammadmoiz4843@gmail.com>
Co-authored-by: joshuaunity <oghenerobojosh01@gmail.com>
Co-authored-by: JDev <45713692+joshuaunity@users.noreply.github.com>
Co-authored-by: F.N. Claessen <felix@seita.nl>1 parent b7bc98e commit 9bf250a
File tree
40 files changed
+7093
-1715
lines changed- .github/workflows
- .vscode
- documentation
- api
- flexmeasures
- api
- common
- schemas
- utils
- scripts
- v3_0
- tests
- cli/tests
- data/schemas
- ui
- static
- templates
- utils
- requirements
- 3.10
- 3.11
- 3.12
- 3.9
40 files changed
+7093
-1715
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
34 | 40 | | |
35 | 41 | | |
36 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
14 | 32 | | |
15 | 33 | | |
16 | 34 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| 30 | + | |
28 | 31 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 32 | + | |
39 | 33 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
45 | 63 | | |
46 | 64 | | |
47 | 65 | | |
| |||
80 | 98 | | |
81 | 99 | | |
82 | 100 | | |
83 | | - | |
84 | | - | |
| 101 | + | |
85 | 102 | | |
86 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
87 | 132 | | |
| 133 | + | |
88 | 134 | | |
89 | | - | |
90 | | - | |
91 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
92 | 140 | | |
93 | 141 | | |
94 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments