@sleekify/sleekify
Version:
A TypeScript decorator driven approach for developing web applications.
21 lines (20 loc) • 782 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DELETE = void 0;
const Annotation_1 = require("./Annotation");
/**
* You may apply this decorator to your resource class's methods to indicate
* that a method responds to HTTP DELETE requests. It allows you to annotate
* the method with an OpenAPI operation object so you can define this
* operation's documentation.
*
* @param operationObject The optional OpenAPI operation object definition
*/
function DELETE(operationObject) {
return function (target, propertyKey, _descriptor) {
Annotation_1.Annotation.set(target, propertyKey, DELETE, operationObject);
};
}
exports.DELETE = DELETE;
;
Annotation_1.Annotation.register(DELETE, '329fbd0b-7f1e-4401-9e5b-a84f18875cba');