js/controller.js
function OpenApiResponse(httpCode, description, type) {
    return function (target, propertyKey, descriptor) {
        let m = exports.globalKCState.getOrInsertController(target.constructor).getOrInsertMethod(propertyKey);
        httpCode = httpCode.toString();
        m.openApiResponses[httpCode] = { description: description, type: type };
    };
}
function OpenApiResponse(httpCode, description, type) {
    return function (target, propertyKey, descriptor) {
        let m = exports.globalKCState.getOrInsertController(target.constructor).getOrInsertMethod(propertyKey);
        httpCode = httpCode.toString();
        m.openApiResponses[httpCode] = { description: description, type: type };
    };
}
function OpenApiResponse ( httpCode , description , type ) { return function ( target , propertyKey , descriptor ) { let m = exports . globalKCState . getOrInsertController ( target . constructor ) . getOrInsertMethod ( propertyKey ) ; httpCode = httpCode . toString ( ) ; m . openApiResponses [ httpCode ] = { description : description , type : type } ; } ; }
Attach a OpenApi Response to the method
@param {number|string} httpCode - The http code used for the response
@param {string} description - Response description
@param {string} type - The Open Api defined type.
Attach a OpenApi Response to the method