Added offline exports REST API to get export objects
What does this MR do and why?
This code adds two new API endpoints, /offline_exports and /offline_exports/{id}, to allow users to fetch one or more of their offline export objects
Both endpoints are behind the offline_transfer_exports feature flag
References
- Issue: Create new offline transfer export API endpoint... (#538940)
- Offline transfer architecture design doc: https://handbook.gitlab.com/handbook/engineering/architecture/design-documents/offline_direct_transfer_migrations/
- Epic: &8985
How to set up and validate locally
- Enable
offline_transfer_exportsfor your current user - In the Rails console, create
Import::Offline::Exportobjects for your current user. Currently, there's no way to create one via the UI or API. - Call each endpoint to fetch created offline exports:
/offline_exportsand/offline_exports/{id}./offline_exportsmay be passed astatusparam to filter by export status andsortto sort bycreated_at
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #538940
Edited by Sam Word