We need to create a snapshots endpoint for our main API do that data consumers can query the API(s) to get meta data information and be able to download them.
Acceptance criteria
Data consumer is able to download snapshot(s) or get snapshot(s) metadata through our API(s).
To-Do
- create GET | POST /v2/snapshots endpoint that will return list of available snapshots
- create GET | POST /v2/snapshots/{identifier} that will return a single snapshot metadata
- create HEAD /v2/snapshots/{identifier}/download that will return header metadata for snapshot
- create GET /v2/snapshots/{identifier}/download that will initiate the download
Notes
Please use proxy package inside the main API to create this endpoint.
Also refer to documentation/api-specs-v2 to get swagger documentation about the endpoint.