Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OpenAPI to support creating API documentation with OpenAPI #446

Closed
suho opened this issue Jul 25, 2023 · 0 comments · Fixed by #466 or #464
Closed

Add OpenAPI to support creating API documentation with OpenAPI #446

suho opened this issue Jul 25, 2023 · 0 comments · Fixed by #466 or #464
Assignees

Comments

@suho
Copy link
Member

suho commented Jul 25, 2023

Why

The team now has OpenAPI Training Path to learn and practice. OpenAPI on Compass for developers to follow conventions and best practices. NO OpenAPI boilerplates currently exist in the rails templates to support web developers in creating API documentation with OpenAPI.

Acceptance Criteria

  • Add OpenAPI addon as a required addon in the template.
  • Add OpenAPI tooling (Spectral, Elements, Lint).
  • Create an endpoint (e.g., GET {{base_url}}/api/docs/openapi) to access the API documentation through the browser.
  • Add Mock Server with Prism (related to this API Mock Server with OpenAPI).
  • Add CI/CD workflow to run linting and deploy mock server to fly.io.

Resources

Who Benefits?

Everyone

@suho suho self-assigned this Jul 25, 2023
@suho suho assigned sanG-github and unassigned suho Aug 10, 2023
sanG-github added a commit that referenced this issue Aug 29, 2023
sanG-github added a commit that referenced this issue Aug 30, 2023
sanG-github added a commit that referenced this issue Aug 30, 2023
sanG-github added a commit that referenced this issue Sep 6, 2023
sanG-github added a commit that referenced this issue Sep 6, 2023
sanG-github added a commit that referenced this issue Sep 6, 2023
sanG-github added a commit that referenced this issue Sep 6, 2023
sanG-github added a commit that referenced this issue Sep 6, 2023
sanG-github added a commit that referenced this issue Sep 6, 2023
sanG-github added a commit that referenced this issue Sep 6, 2023
sanG-github added a commit that referenced this issue Sep 6, 2023
sanG-github added a commit that referenced this issue Sep 7, 2023
sanG-github added a commit that referenced this issue Sep 7, 2023
sanG-github added a commit that referenced this issue Sep 14, 2023
sanG-github added a commit that referenced this issue Sep 18, 2023
sanG-github added a commit that referenced this issue Sep 18, 2023
sanG-github added a commit that referenced this issue Sep 18, 2023
github-merge-queue bot pushed a commit that referenced this issue Sep 27, 2023
… OpenAPI (#464)

* [#446] Add OpenAPI to template

* [#446] Update folder

* [#446] Fix linting

* [#446] Ignore file violating eslint rules

* [#446] Add tests

* [#446] Update failed tests

* [#446] Update failed tests

* [#446] Toggle failed tests

* [#446] Add package.json for api

* [#446] Update keep file name

* [#446] Update keep file name in tests

* [#446] Move files inside addon folder

* [#446] Make OpenAPI optional for WEB

* [#446] Update the condition to copy file

* [#446] Fix linting

* [#446] Update the failed generating

* [#446] Update logic for readable

* [#446] Update Makefile

* [#446] Add tests for addon

* [#446] Update failed tests

* [#446] Update Makefile

* [#446] Add lint docs rely on OpenAPI

* [#446] Update tests localtion

* [#446] Use latest patch version for the external packages?

* [#446] Update the Makefile options
sanG-github added a commit that referenced this issue Sep 28, 2023
sanG-github added a commit that referenced this issue Sep 28, 2023
sanG-github added a commit that referenced this issue Sep 28, 2023
sanG-github added a commit that referenced this issue Sep 28, 2023
sanG-github added a commit that referenced this issue Sep 28, 2023
sanG-github added a commit that referenced this issue Sep 28, 2023
sanG-github added a commit that referenced this issue Sep 28, 2023
sanG-github added a commit that referenced this issue Sep 28, 2023
sanG-github added a commit that referenced this issue Sep 28, 2023
github-merge-queue bot pushed a commit that referenced this issue Sep 29, 2023
… OpenAPI (#465)

* [#446] Add endpoint and template html

* [#446] Update route

* [#446] Rename stoplight to openapi

* [#446] Remove redundant route

* [#446] Update tests location
sanG-github added a commit that referenced this issue Sep 29, 2023
sanG-github added a commit that referenced this issue Sep 29, 2023
sanG-github added a commit that referenced this issue Sep 29, 2023
sanG-github added a commit that referenced this issue Sep 29, 2023
sanG-github added a commit that referenced this issue Sep 29, 2023
sanG-github added a commit that referenced this issue Sep 29, 2023
github-merge-queue bot pushed a commit that referenced this issue Sep 29, 2023
…OpenAPI (#466)

* [#446] Add files support creating mock server

* [#446] Add tests

* [#446] Move Fly.io deployment file to addon folder

* [#446] Only apply Dockerfile when installing OpenAPI

* [#446] Ask when adding Mock server

* [#446] Update Makefile

* [#446] Fix wrong rebased

* [#446] Optimize flow

* [#446] Add missing comment

* [#446] Move tests to proper place
@malparty malparty mentioned this issue Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment