Skip to content

Hook to enrich the CapabilityStatement #1347

Description

@losolio

Is your feature request related to a problem? Please describe.
Ignis needs to add to the generated CapabilityStatement — e.g. fill in
rest.resource.supportedProfile, custom operations, security. Today the only way is to replace ICapabilityStatementService entirely. Decorating Spark's default (keep its builder, add one field) forces you to RemoveAll its registration and reconstruct new CapabilityStatementService(...), coupling to
its constructor. Writing one from scratch is worse — it drifts from what the server actually supports.

Describe the solution you'd like
A hook or something allowing to contribute to the capability statement.

Additional context
GetSparkCapabilityStatement() is sync, so Contribute would be too — consumers with async work (e.g. resolving profiles) block once behind the cache. Making the build path async is a larger, separate change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions