Skip to content

feat(mock): stub the Service Registry API #589

Open

Description

@uniqueg

Why

The Service Registry previews and the Cloud Registry form need a registry
that allows anonymous reads and writes. Today the single-service preview
shows an error (placeholder ID) and submitting the Cloud Registry form fails
(needs a login).

What to do

Under /ga4gh/registry/v1, with fixtures of a few services of different
types (TES, WES, TRS, DRS) and stable IDs:

  • GET /service-info, GET /services, GET /services/types,
    GET /services/{id} (404 in the API's error shape for unknown IDs)
  • POST /services (JSON ExternalServiceRegister as sent by
    RestCloudRegistryProvider.createService): validate required fields,
    store in memory, return the new ID as the provider expects; 400 with an
    RFC 9457 problem body on invalid input, as the cloud-registry API does
  • Integration tests per endpoint, including the provider's exact request
    and response shapes; update the Contributing docs (endpoint list).

Done when

  • All listed endpoints answer with fixture data; created services show up in GET /services until restart
  • Tests pass in CI
  • Docs list the endpoints and fixture IDs

Metadata

Metadata

Assignees

Labels

priority: lowstatus: blockedtype: featureworkload: hours

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions