Create a base specification for a new API
Context
We are now rolling out a new version of the Container Registry in GitLab.com that includes a metadata database (&5523 (closed)). Among others, this database will allow for efficient storage usage calculations.
This issue is part of a work plan to expose the deduplicated size of image repositories in the GitLab UI and API (&7575 (closed)).
Goal
Define the base specification for a new HTTP API on the Container Registry, which should live alongside the existing /v2/
that is reserved for the implementation of the OCI Distribution Spec (former Docker Registry HTTP API V2). This new API will interact exclusively with the metadata database and use the /gitlab/v1
prefix.
For now, the specification will only include the base requirements to allow querying the deduplicated size of image repositories.