openQA icon indicating copy to clipboard operation
openQA copied to clipboard

Proof of Concept - Demonstrate OpenAPI::Modern plugin

Open perlpunk opened this issue 8 months ago • 2 comments

Issue: https://progress.opensuse.org/issues/186675

Notes: When porting only single routes, they have to be specified explicitly. Once all routes are ported, there only needs to be one route per controller:

$api_public_r->any('/jobs*')->to('job#catchall');

Contra:

  • Does not yet support application/x-www-form-urlencoded, so PUT/POST won't work. We would have to move to application/json requests
  • Some dependencies not yet in Tumbleweed, even more not in 15.6

perlpunk avatar Aug 03 '25 14:08 perlpunk

We would have to move to application/json requests

This would be an API break. Maybe we should have the new routes under v2 then and leave the current API as-is.

Martchus avatar Aug 13 '25 08:08 Martchus

This would be an API break. Maybe we should have the new routes under v2 then and leave the current API as-is.

Keep in mind that there is still the other, more mature plugin we want to try.

perlpunk avatar Aug 13 '25 09:08 perlpunk