[pbs-devel] [PATCH v6 proxmox-backup 12/29] api/api-types: refactor api endpoint version, add api types
Christian Ebner
c.ebner at proxmox.com
Thu Nov 21 17:15:05 CET 2024
On 11/21/24 17:01, Thomas Lamprecht wrote:
> Am 21.11.24 um 10:58 schrieb Christian Ebner:
>> On 11/21/24 10:23, Thomas Lamprecht wrote:
>> Well, that is something I did not consider at all! So with that
>> viewpoint, adding this to PBS specifically is surely not the best way.
>> As discussed with Fabain off list, version based matching will be the
>> best way forward here, and dropping the incompatibility check once EOL
>> is reached.
>
> If we add such a thing that you proposed we should definitively get the
> story somewhat straight w.r.t. how we want to handle this for all projects,
> and define when to define a feature and when not, with some extra care on
> the interfaces, as those are relatively set in stone.
Regarding this, have we considered exposing the API schema to the
client, something like [0]?
Fetching the remote API schema and therefore knowing which parameters
are available would have not only covered the additional check, but also
allowed to see what response value to expect.
Although, I guess this boils down to the same set of maintenance burden
in the end, hard to maintain code because of to many condition checks.
[0] https://swagger.io/specification/
More information about the pbs-devel
mailing list