-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/data endpoint should support concordances and mappings as well #193
Comments
I've encountered one issue with this: Currently, the GET /data endpoint does return concept schemes in addition to concepts, but the code is written in a way that assumes that the endpoint returns concept data. This is important in particular for authentication. In theory, I could rewrite the auth part so that among concepts, concept schemes, concordances, and mappings, only those that the current user is allowed to read are returned. I think that makes the most sense. What do you think, @nichtich? Also, should annotations also be returned by GET /data? Also, the other methods on the /data endpoint (POST, PUT, PATCH, DELETE) only refer to concepts. I wonder if at some point we should adjust the API to add a /concept endpoint for these methods instead. This is very much related to this comment in #171. For consistency, concept data should be handled under /concepts, and /narrower, /ancestors, /search, and /suggest should be moved to /concepts as well. That's definitely a separate issue and another breaking change, and I would not include this in version 2.0.0 (or if we do, the old endpoints should keep working for now). |
I 'd prefer to restrict
Then |
@nichtich I fully agree! Here's my suggestion: For version 2.0, we modify the concept endpoints exactly like you described, completely removing the write-access to We will also add aliases for Anything I forgot? |
The old endpoints (narrower, ancestors, search, and suggest) are still available as deprecated aliases, but will be removed in version 3.0.
The new |
Implementation is now complete. It should work as expected (i.e. the |
Endpoint GET /data should also be usable to get specific mappings or concordances by their URIs (unless additional query parameters
notation
andvoc
are given).Required by gbv/jskos-web#5
The text was updated successfully, but these errors were encountered: