Create a DELETE contract under this group.
Optionalname: stringDeclare shared route-owned application errors for contracts in this group.
Catalog errors use Beignet's standard error envelope and remain separate from framework-owned errors.
Create a GET contract under this group.
Optionalname: stringCreate a HEAD contract under this group.
Optionalname: stringAdd a shared request header schema to contracts created from this group.
Merge shared metadata into contracts created from this group.
Set the namespace for contracts created from this group.
The namespace prefixes contract names, not paths. Use prefix(...) for
path composition.
Create an OPTIONS contract under this group.
Optionalname: stringCreate a PATCH contract under this group.
Optionalname: stringCreate a POST contract under this group.
Optionalname: stringAdd a path prefix to contracts created from this group.
Prefixes compose immutably, so prefix("/api").prefix("/v1") produces
paths under /api/v1.
Create a PUT contract under this group.
Optionalname: stringAdd shared route-owned response schemas to contracts created from this group.
Framework-owned responses, such as validation or auth hook failures, do not need to be declared here.
Feature-scoped factory for related HTTP contracts.
Contract groups let a feature share a namespace, path prefix, headers, responses, errors, and metadata across multiple endpoint contracts. The group is immutable: every configuration method returns a new group.