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

Adapter: Get imports and imported data of datasource via API #135

Closed
georg-schwarz opened this issue Jul 30, 2020 · 0 comments · Fixed by #322
Closed

Adapter: Get imports and imported data of datasource via API #135

georg-schwarz opened this issue Jul 30, 2020 · 0 comments · Fixed by #322
Assignees

Comments

@georg-schwarz
Copy link
Member

Import does not contain data, but only id, timestamp, link to data (url)

API suggestion:

  • /datasources/{id}/imports -> map of all imports (id, timestamp, link to data url)
  • /datasources/{id}/imports/{id} -> import (id, timestamp, link to data url)
  • /datasources/{id}/imports/latest -> latest data import
  • /datasources/{id}/imports/{id}/data -> the real data

Implementation:

  • managing imports and import data should be handled in sub-package of datasources (not adapters). Probably requires a fair bit of refactoring.
  • /dataImport should return imported data directly, no caching of these kind of data imports
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

Successfully merging a pull request may close this issue.

2 participants