agama-project / agama

A service-based Linux installer
https://agama-project.github.io/
GNU General Public License v2.0
143 stars 43 forks source link

Incomplete OpenAPI data #1700

Open lslezak opened 3 weeks ago

lslezak commented 3 weeks ago

Use case

I created an online Agama demo at https://agama-online-demo.surge.sh/. I collected the testing data by recording the HTTP responses while clicking around in the browser. But that's inconvenient and fragile (you need to go through all Agama settings, if you miss something then the data is incomplete).

I'd like to automate that, the idea is to get the list of endpoints from the OpenAPI data and query all paths by a script.

But when comparing the current OpenAPI data and the data I got from the browser I found some inconsistencies which block this approach.

Note: In this use case I'm interested only in the GET requests, the same problem or more problems might be with the POST/PUT/... requests.

Missing paths

These paths are missing in the OpenAPI:

Missing /api prefix

Some OpenAPI paths miss the /api prefix:

imobachgs commented 3 weeks ago

Unfortunately, the OpenAPI has never been working at all. We recently did a ton of fixes (see #1564), but it is still a work in progress.

mvidner commented 1 week ago

The source for the demo is https://github.com/agama-project/agama/pull/1662

imobachgs commented 1 week ago

Most of the problems are already fixed by #1564. The issues endpoints are still missing.