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

How to set up and validate locally

  • Enable offline_transfer_exports for your current user
  • In the Rails console, create Import::Offline::Export objects 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_exports and /offline_exports/{id}. /offline_exports may be passed a status param to filter by export status and sort to sort by created_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

Merge request reports

Loading