private CharSequence getHandler(final Method method) { StringConcatenation _builder = new StringConcatenation(); String _id = method.getId(); _builder.append(_id); _builder.append("Handler(req, res, next) {"); _builder.newLineIfNotEmpty(); _builder.newLine(); _builder.append("\t"); _builder.append("const enrichments = "); String _trim = this.getEnrichments(method).trim(); _builder.append(_trim, "\t"); _builder.append("; "); _builder.newLineIfNotEmpty(); _builder.newLine(); _builder.append("\t"); _builder.append("super.callMethodImpl(this.resourceFQN, \'"); String _id_1 = method.getId(); _builder.append(_id_1, "\t"); _builder.append("\', enrichments, req, res, next);"); _builder.newLineIfNotEmpty(); _builder.newLine(); _builder.append("}"); _builder.newLine(); return _builder; }
private CharSequence generateResponseParameter(final MessageParameter param, final Method method) { StringConcatenation _builder = new StringConcatenation(); _builder.append("<param id=\""); String _id = method.getId(); String _plus = (_id + "_response_"); String _name = param.getName(); String _plus_1 = (_plus + _name); _builder.append(_plus_1); _builder.append("\" name=\""); String _name_1 = param.getName(); _builder.append(_name_1); _builder.append("\" style=\"header\" "); CharSequence _generateParameterType = this.generateParameterType(param); _builder.append(_generateParameterType); _builder.append("/>"); _builder.newLineIfNotEmpty(); return _builder; }
public void createSwaggerOperation(final Path path, final Method method) { final Operation operation = new Operation(); this.setVendorExtensions(method, operation); operation.setOperationId(method.getId()); operation.setDescription(this._zenModelHelper.getDocumentation(method)); final Function1<com.reprezen.rapidml.Extension, Boolean> _function = (com.reprezen.rapidml.Extension it) -> {
private CharSequence generateRequestParameter(final MessageParameter param, final Method method) { StringConcatenation _builder = new StringConcatenation(); _builder.append("<param id=\""); String _id = method.getId(); String _plus = (_id + "_request_"); String _name = param.getName(); String _plus_1 = (_plus + _name); _builder.append(_plus_1); _builder.append("\" name=\""); String _name_1 = param.getName(); _builder.append(_name_1); _builder.append("\" style=\""); String _parameterLocation = this.parameterLocation(param.getHttpLocation()); _builder.append(_parameterLocation); _builder.append("\" "); CharSequence _generateParameterType = this.generateParameterType(param); _builder.append(_generateParameterType); _builder.append("/>"); _builder.newLineIfNotEmpty(); return _builder; }
_builder.newLineIfNotEmpty(); _builder.append("<code>"); String _id = method.getId(); _builder.append(_id); _builder.append("</code>");
_builder.append(_expressify, "\t\t"); _builder.append("`, this."); String _id = method.getId(); _builder.append(_id, "\t\t"); _builder.append("Handler.bind(this));");
_builder.append(" "); _builder.append("\"name\": \""); String _id = method.getId(); _builder.append(_id, " "); _builder.append("\",");