You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- test_repo_data.py validates some data files in repo against schemas
- Makefile to ease sync between json-schema and openapi.
- Review project and workbench schemas (by @odeimaiz )
- Review projects and workbench data (by @odeimaiz )
Copy file name to clipboardExpand all lines: api/README.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
# Concept
4
4
5
-
REST APIs and models (defined as openAPI- or JSON-schemas) are defined in a central location (/apis) to allow for "design-first" development.
5
+
REST APIs and models (defined as openAPI- or JSON-schemas) are defined in a central location [``api/specs``](api/specs) to allow for **design-first development**.
6
6
7
7
# Development guidelines
8
8
@@ -64,8 +64,11 @@ In that case, a version subfolder shall be added in the __/shared/__ subfolder a
64
64
Mixing JSONSchema with OpenAPI schema needs some additional steps:
65
65
66
66
1. Define the JSONSchema schema.
67
-
2. Convert the JSONSchema formatted file to OpenAPI formatted file using the [converter](../scripts/jsonschema/openapi_converter).
68
-
3. In the openapi specifications file ref the converted OpenAPI schema file.
67
+
2. Convert the JSONSchema formatted file to OpenAPI formatted file using a [converter](scripts/json-schema-to-openapi-schema) tool.
68
+
3. In the openapi specifications file ref the converted OpenAPI schema file
69
+
70
+
This is automated for instance in [api/specs/webserver/v0/components/schemas/Makefile](api/specs/webserver/v0/components/schemas/Makefile)
71
+
69
72
70
73
## Using the openAPI
71
74
@@ -83,5 +86,5 @@ The current python-based packages use the aiohttp-apiset library to create route
83
86
84
87
## references
85
88
86
-
-[defining reusable components - good practices](https://dev.to/mikeralphson/defining-reusable-components-with-the-openapi-specification-4077)
89
+
-[Defining reusable components - good practices](https://dev.to/mikeralphson/defining-reusable-components-with-the-openapi-specification-4077)
87
90
-[official guidelines on OAS re-usability](https://github.com/OAI/OpenAPI-Specification/blob/master/guidelines/v2.0/REUSE.md)
0 commit comments