You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the documantation here [1] the http request header should contain version reference "Accept:application/json,version=2" for API v2, which is Satellite6 default. AFAIK this is missing in nailgun, potentially making some endpoints unreachable.
Also, having each entity specifying it's own URL was maybe not the best decision we ever made.
It's worth pointing out that APIv2 has been default for years and APIv1 is not even available in current versions of Satellite.
@vsedmik if you want to tackle this, I would suggest adding version to url of endpoints listed above (that will require confirmation that versioned URLs are indeed valid). If we are to add header with version, we should first think harder on how we are going to handle API versions generally.
@mirekdlugosz Ok, thank you for clarificaton. If version specification in url works the same as in header I'm ok with that.
I looked into the /apidoc and there are some endpoints with and without v2 too, perhaps this may be the reason why it's done this way in Nailgun.
According to the documantation here [1] the http request header should contain version reference "Accept:application/json,version=2" for API v2, which is Satellite6 default. AFAIK this is missing in nailgun, potentially making some endpoints unreachable.
[1] https://access.redhat.com/documentation/en-us/red_hat_satellite/6.6/html/api_guide/chap-red_hat_satellite-api_guide-api_reference#sect-API_Guide-Understanding_the_API_Syntax
The text was updated successfully, but these errors were encountered: