Skip to content

Refactor ResourcesApi and EntityBaseApi for improved structure - #57

Merged
Lucashsmello merged 4 commits into
mainfrom
feat/object-oriented-api
Oct 20, 2025
Merged

Refactor ResourcesApi and EntityBaseApi for improved structure#57
Lucashsmello merged 4 commits into
mainfrom
feat/object-oriented-api

Conversation

@Lucashsmello

Copy link
Copy Markdown
Collaborator
  • Updated ResourcesApi to allow optional injection of AnnotationsApi and ProjectsApi.
  • Removed redundant _determine_mimetype method from ResourcesApi, utilizing BaseApi instead.
  • Enhanced EntityBaseApi to initialize entity objects with injected API context.
  • Introduced CacheManager for efficient caching of resource and annotation data.
  • Added lazy loading and caching for resources and projects in DatasetInfo.
  • Improved error handling and logging throughout the API and entity classes.
  • Updated AnnotationType to use StrEnum for better string handling.
  • Introduced ImagingData type alias for consistent imaging data handling.
  • Added methods for fetching resources and projects in the Project and DatasetInfo classes.
  • Updated project and resource classes to include web access URLs and browser opening functionality.
  • Enhanced caching mechanisms to validate against server versions for data freshness.

…ching

- Updated ResourcesApi to allow optional injection of AnnotationsApi and ProjectsApi.
- Removed redundant _determine_mimetype method from ResourcesApi, utilizing BaseApi instead.
- Enhanced EntityBaseApi to initialize entity objects with injected API context.
- Introduced CacheManager for efficient caching of resource and annotation data.
- Added lazy loading and caching for resources and projects in DatasetInfo.
- Improved error handling and logging throughout the API and entity classes.
- Updated AnnotationType to use StrEnum for better string handling.
- Introduced ImagingData type alias for consistent imaging data handling.
- Added methods for fetching resources and projects in the Project and DatasetInfo classes.
- Updated project and resource classes to include web access URLs and browser opening functionality.
- Enhanced caching mechanisms to validate against server versions for data freshness.
@Lucashsmello
Lucashsmello merged commit c68f320 into main Oct 20, 2025
2 of 3 checks passed
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 this pull request may close these issues.

1 participant