beaker icon indicating copy to clipboard operation
beaker copied to clipboard

[RFE] Create OpenAPI Spec

Open StykMartin opened this issue 1 year ago • 5 comments

Is your feature request related to a problem? Please describe. The Beaker Server and Beaker Labcontroller API are not properly documented.

Describe the solution you'd like Create OpenAPI Spec for Beaker Server and Beaker Labcontroller. This will be the source of truth for implementation.

Endpoints currently exposed via XMLRPC and/or TurboGears will be removed as part of the transition to Python 3. There is no need to document them at all. They will be reintroduced as REST (we will need them to paint the UI, communicate with client, etc..)

Describe alternatives you've considered Avoid writing documentation, but I felt like people might not like it.

StykMartin avatar Dec 21 '23 10:12 StykMartin

Based on the discussion we had, I think you might want to take a look at this @p3ck

StykMartin avatar Dec 21 '23 10:12 StykMartin

Some generated documentation can be accessed on http://lab-controller-fqdn:8000/server. It would be ideal to get openapi spec generated from xmlrpc/turbogears directly, but few minutes searching on web did not reveal any out-of-the-box tool for it.

mdujava avatar Dec 21 '23 12:12 mdujava

The goal is to get rid of XMLRPC and Turbogears, so tooling is not necessary in this case.

StykMartin avatar Dec 21 '23 12:12 StykMartin

But good point @mdujava, I updated the description to make that clear.

StykMartin avatar Dec 21 '23 12:12 StykMartin

Yeah, I would say when creating new REST api that would preserve functionality, would be easier and less problems would be introduced when existing API would be somehow defined (eg. list of all methods/endpoints).

mdujava avatar Dec 21 '23 12:12 mdujava