-
Notifications
You must be signed in to change notification settings - Fork 60
Revisit API documentation template to reduce redundancy #164
Comments
Hi Shilpa, any concrete proposal to move discussion forward? |
@jordonezlucena : |
Approach seems to be ok. We need to provide a sample api spec which is more complete as part of this issue/pr to set an example. |
My proposal would be not to have separate documentation at all, but to embed all documentation within the OAS (Swagger) definition itself. The Swagger Editor (an open source project) can then be used as the "documentation viewer". Sub projects can add as much or as little additional documentation within the OAS definition file as preferred without the overhead of needing to update separate documentation when the OAS definition is updated. The Swagger editor appears to render both markdown and HTML are supported to some extent, though doesn't appear very well documented what exactly is supported, so might need some trial an error. Images and other external documents can be inline linked with a bit of patience. |
Even better! I suggested a mellow approach to start with expecting it might not go down that well :) |
Redocly/redoc is also a very popular and powerful viewer for OpenAPI specs: https://redocly.com/redoc/, demo: https://redocly.github.io/redoc/ |
- Applied lowerCamelCase for property names, UpperCamelCase for schema names - Updated API_documentation as well. This is a redundant effort that hopefully we don't have to maintain in the future, as being discussed in camaraproject/WorkingGroups#164 - In a separate PR we should enhance descriptions, once Glossary definitions are consolidated.
As discussed in the commonalities meeting, at least 2 subprojects can nominate themselves to provide the improved version of their spec files as showcases. |
If we have no nominations until the commonalities call on Thursday 23rd Mar, we might have to restrict the scope of this issue to updating the API documentation template. The template will include a new comment under sections Errors and Endpoints that this information should be a part of the AP spec file. |
Telefonica agrees on updating API documentation template as noted above. |
Here's the example: https://github.com/camaraproject/HomeDevicesQoD/blob/main/code/API_definitions/home_devices_qod.yaml. As you may notice, it is self-contained, as demanded in this issue. We propose this YAML can be used as example, mirrored accordingly for the rest of APIs. |
One question: is it possible to embed in the OAS |
@bigludo7 |
Regarding the linking of images, it has been tested within fake PR (to be closed) within Carrier Billing WG. Model applied: ![image_ref_name]($full_link?raw=true) Thanks @eric-murray for providing the clue. |
@shilpa-padgaonkar , @jordonezlucena What do you think about this topic? Honestly speaking, think we are in the conditions to apply this guidance in every WG |
Yes, ok for me. The API owner of each Sub-project shall open a PR to apply this. |
/LGTM, Agree with Jose about subprojects creating relevant issue and PR. |
With the proposal being accepted and relevant PRs in subproject being created, can we close this issue in commonalities? |
Agree with Shilpa's proposal. |
Based on the discussion in commonalities call on 01.06, this issue can now be closed. |
Currently, a lot of information for the API spec file is duplicated in the API documentation. This results in huge efforts even when making very small, insignificant changes to the API as we need to duplicate the information back to the API documentation.
With this issue, the suggestion is to have no/very minimum redundant information as a part of the API documentation that is already a part of the spec file.
The text was updated successfully, but these errors were encountered: