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

AIPscan is missing API endpoints for listing the file formats and PUIDs in a Storage Service #95

Open
tw4l opened this issue Nov 26, 2020 · 0 comments
Labels
api enhancement New feature or request

Comments

@tw4l
Copy link
Contributor

tw4l commented Nov 26, 2020

PR #76 introduces new API endpoints that accept a file format name or PUID as input, and return a list of all of the AIPs with that given file format or version, along with the count and total size of the matching files for each AIP.

It's not currently possible via the API alone to discover which file formats or PUIDs can be found within a Storage Service. Ideally we would want API users to be able to do something like the following (as described by @ross-spencer in coder review for #76):

  • Query format name groups
  • Query for the report-like statistics based on that filter

Supporting such an API-first workflow would require adding new endpoints that take a storage_service_id as input and list the available file formats or PUIDs found in that Storage Service. The StorageService model has some properties introduced in #76 such as StorageService.unique_original_file_formats which should make implementing such an endpoint relatively painless.

@tw4l tw4l changed the title AIPscan is missing an API endpoint for listing the file formats and PUIDs in a Storage Service AIPscan is missing API endpoints for listing the file formats and PUIDs in a Storage Service Nov 26, 2020
@tw4l tw4l added the api label Nov 27, 2020
@mcantelon mcantelon added the enhancement New feature or request label Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants