# schwab@linux-m68k.org / 2016-09-18 19:11:14 +0200:
On Sep 18 2016, Adam Spiers
wrote: It also says:
The OBS api also provides a list of available distributions: https://api.opensuse.org/distributions
but this URL yields a 404, despite it being documented as a valid API call:
https://build.opensuse.org/apidocs/#8
So the inevitable follow-on questions are:
- What is a "base distribution"?
- Which of these two claims about the number of supported distributions is accurate? If neither, then what's the truth?
- Why is this API call returning a 404?
Try `osc api https://api.opensuse.org/distributions' or visit https://api.opensuse.org/distributions.xml.
API calls are not to be confused with WebUI Urls. The API calls are distinguished by the use of the `Content-Type: application/xml' header.
it's all just HTTP though, and this behavior is non-conforming. A request without any Accept header field implies that the user agent will accept any media type in response. If the header field is present in a request and none of the available representations for the response have a media type that is listed as acceptable, the origin server can either honor the header field by sending a 406 (Not Acceptable) response or disregard the header field by treating the response as if it is not subject to content negotiation. https://tools.ietf.org/html/rfc7231#section-5.3.2 -- roman -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org