API Reference > @next-core/brick-types > Contract
Contract interface
Signature:
export interface Contract
Properties
| Property | Type | Description |
|---|---|---|
| endpoint | { method: "POST" | "post" | "PUT" | "put" | "GET" | "get" | "DELETE" | "delete" | "LIST" | "list" | "PATCH" | "patch" | "HEAD" | "head"; uri: string; ext_fields?: ExtField[]; } | |
| name | string | |
| namespaceId | string | |
| request | ContractRequest | |
| response | ContractResponse | |
| serviceName | string | |
| version | string |