-
Notifications
You must be signed in to change notification settings - Fork 3
Description
According to W3's "HTML and URLs" URLs should be case sensitive:
There may be URLs, or parts of URLs, where case doesn't matter, but identifying these may not be easy. Users should always consider that URLs are case-sensitive
However, the API documentation is inconsistent in how the classes are represented within URLs.
For example, on the api-calls page, the Get dataset call is documented as:
GET /datasets/{pid}
However, the example curl invocation (immediately below) is
curl -X GET --header 'Accept: application/json' 'http://localhost:3000/api/Datasets/{pid}?filter={filter}'
Note the difference between datasets and Datasets.
This problem seems to be systemic, with all documentation mixing capitalised- and lower-case versions of the class name.
If Datasets and datasets are meant to be synonyms for the same resource (i.e., the word is case insensitive) then this must be clearly documented, as this would go against the common semantics of URLs.
The API documents appear to have no statement on case sensitivity, so one would assume the URLs are case-sensitive (per W3's document).
Therefore the API document is inconsistent.