Skip to content
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

rest api enhancements for composite resource type #110

Open
zhiyuli opened this issue May 7, 2019 · 4 comments
Open

rest api enhancements for composite resource type #110

zhiyuli opened this issue May 7, 2019 · 4 comments
Assignees

Comments

@zhiyuli
Copy link
Member

zhiyuli commented May 7, 2019

@sblack-usu @martinseul
I list feature requirements from apps' perspective. Feel free to split and/or move them to hydroshare repo if needed. Also, this might be a running list. Thanks

  1. retrieve all metadata for a given aggregation: currently FilesSubEndpoint.metadata(self, file_path, params=None) only returns core metadata without file-type specific metadata

  2. filtering based on aggregation metadata: return a list of all aggregations from all accessible composite resources that meet certain criteria, such as return all geographic feature aggregations whose Geometry Type is POLYGON and Feature Count ==1

  3. download all files for an aggregation: download a specific geographic feature aggregation from a composite resource

@zhiyuli
Copy link
Member Author

zhiyuli commented May 8, 2019

@danames @kjlippold
please review and add your comments/requests when you get a chance

@kjlippold
Copy link

Here's a few other things I'd like to see, if there isn't already some way of doing them.

  1. Include a list of aggregation types present in the resource in a get resource request, like what appears under "content types" on the resource landing page.

  2. This is related to Drew's second point, but the ability to get a list of all resources containing specified aggregation types. (Different than getting a list of aggregations).

  3. Ability to list all aggregations in a given resource.

  4. Ability to create, edit, and delete aggregations in a given resource, beyond just automatically creating them when files are uploaded.

  5. There should probably be a way to get a list of aggregation types, similar to how there's a way to get a list of resource types.

@kjlippold
Copy link

I think a lot of these features need to be added to HydroShare's rest api before they can be added to the rest client.

@sblack-usu
Copy link
Contributor

ok, I'm seeing basically two categories to these requests:
Discovery
Resource Actions

Most of the work here needs to be done on the rest api in hydroshare. I'll work on the Resoruce actions withing hydroshare/hydroshare#2575. Once I wrap that up, I'll create an issue for discover. I'd like to setup a rest api endpoint that just routes to @alvacouch's discover, where most of these requests are already implemented or should be implemented there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants