Skip to content

feat(mock): stub the TRS and TRS-Filer APIs #590

Open

Description

@uniqueg

Why

The TRS previews depend on a third-party instance (WorkflowHub) and the
TRS-Filer form has no instance at all, so it only shows a notice.

What to do

Under /ga4gh/trs/v2, with fixtures of a few tools (at least one CWL and
one Nextflow workflow, with versions, a descriptor that references a
second file, and a files listing):

  • GET /toolClasses
  • GET /tools with limit, offset, name and the filter parameters the
    Tools component sends (pagination headers as in TRS v2)
  • GET /tools/{id}, GET /tools/{id}/versions,
    GET /tools/{id}/versions/{v}, GET .../{type}/files,
    GET .../{type}/descriptor, GET .../{type}/descriptor/{path}
    (URL-encoded relative paths)
  • TRS-Filer: POST /tools (JSON, returns the new ID), stored in memory
  • Integration tests per endpoint; update the docs' endpoint list.

Done when

  • Tools list, tool detail (files and descriptors) and tool creation work against the mock
  • Tests pass in CI
  • Docs list the endpoints and fixture IDs

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions