( key: string, callback: IApiCallback | IApiReference | ((controller: any) => IApiCallback | IApiReference) )
| 94 | } |
| 95 | |
| 96 | export function ApiCallback( |
| 97 | key: string, callback: IApiCallback | IApiReference | ((controller: any) => IApiCallback | IApiReference) |
| 98 | ): OpenApiDecorator { |
| 99 | return AddMetadataProperty('api:operation:callbacks', key, callback); |
| 100 | } |
| 101 | |
| 102 | export function ApiDeprecated(deprecated: boolean | ((controller: any) => boolean) = true): OpenApiDecorator { |
| 103 | return Reflect.metadata('api:operation:deprecated', deprecated); |
no test coverage detected