Function: ODataPut()
ODataPut(
entitySetName,options?):MethodDecorator
Defined in: packages/core/src/decorators/odata-put.decorator.ts:24
Composite method decorator for OData PUT (full entity replacement) endpoints.
Composes:
- Put(path) — NestJS route decorator, defaults to ':key'
- SetMetadata(ODATA_ROUTE_KEY, { entitySetName, operation: 'replace', isSingleEntity: true })
- UseInterceptors(ODataResponseInterceptor) — wraps result in single-entity OData envelope
- UseFilters(ODataExceptionFilter) — formats errors as OData v4 error bodies
Per D-01: PUT semantics — full entity replacement. All unspecified fields reset to column defaults (null for nullable, default value for columns with defaults). Per D-02: parenthetical key via ':key' param. Zero TypeORM imports — per PKG-01 architecture constraint.
Parameters
entitySetName
string
options?
Returns
MethodDecorator