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

WIP: Bug 1863077 - Add OpenAPI spec for REST APIOpen api #2143

Open
wants to merge 29 commits into
base: master
Choose a base branch
from

Conversation

michaelvanstraten
Copy link

@michaelvanstraten michaelvanstraten commented Nov 28, 2023

Bug 1863077 - Add OpenAPI spec for REST API

For the discussion about adding an OpenAPI spec to BMO, check out the bug above.

Although there already exists this GitHub repository, which was somewhat helpful in getting started, a lot of the information in that repo is outdated. I basically had to start over again.

What is implemented so far?

  • Attachments
  • Bugs
  • Bug User Last Visited
  • Bugzilla Information
  • Classification
  • Comments
  • Components
  • Bug fields
  • Flag Activity
  • General
  • Github
  • Groups
  • Products
  • Users

How can I see what is currently implemented?

View automatically generated documentation:

For ease of use, I recommend checking out Redoc:
Installation: Redoc Usage

Once installed, run:

 npx @redocly/cli preview-docs openapi.yaml

Generate a client:

Here, I would recommend OpenAPI Generator.

Install and run:

openapi-generator generate -i openapi.yaml -g python -o /tmp/bugzilla-client-python

This should generate a Python client under /tmp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant