Commit Graph

3 Commits

Author SHA1 Message Date
Stephen Finucane 9c8d51fa0c api: Restrict additional query string arguments
All APIs except the root version APIs now use strict query string
parsing. A test is added to ensure same.

A couple of tests need to be updated since they were using the wrong
path: while the path is ignored when calling the controllers directly,
the query strings are not.

Change-Id: I6dcb5b8f1f865df8f6b17cd7f0d730c3bdff241e
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2026-02-26 21:39:26 +00:00
Stephen Finucane 9797183494 api: Add response body schemas for extensions API
Change-Id: I52a3c9b9eff86044033fb199421a7d6ce6d7d1d3
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-11-22 23:01:29 +00:00
Stephen Finucane 41b436bff7 api: Add remaining missing query parameter schema
We already handled request bodies. Now we tackle query parameters. Note
that we're only handling GET requests currently since these are the APIs
where query parameters are most likely to be present. A future change
will add a test to verify that all methods handling GET requests have
schemas present.

This patch might look huge but every one of these schemas is effectively
a no-op since they're empty and have 'additionalProperties = True'. This
means there are lots of TODOs left in here which would be nice to tackle
in a future API microversion.

Change-Id: I80fc84df7c2be908856e6d4033b4922d7b0e9af1
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-06-24 11:40:48 +01:00