Examples of SwaggerParameter


Examples of org.amdatu.web.rest.doc.swagger.model.SwaggerParameter

        Class<?> dataType, Annotation[] annotations) {
        String doc = getDescription(findAnnotation(Description.class, annotations));
        String _default = getValue(findAnnotation(DefaultValue.class, annotations));

        if (dataType.isEnum()) {
            return new SwaggerParameter(paramType, paramName, doc, convertToSwaggerType(models, dataType), _default,
                getEnumValues(dataType));
        }

        return new SwaggerParameter(paramType, paramName, doc, convertToSwaggerType(models, dataType), _default);
    }
View Full Code Here

Examples of org.amdatu.web.rest.doc.swagger.model.SwaggerParameter

        String _default = getValue(findAnnotation(DefaultValue.class, annotations));

        SwaggerDataType typeInfo = convertToSwaggerType(models, type);

        if (type.isEnum()) {
            return new SwaggerParameter(paramType, paramName, doc, typeInfo, _default, getEnumValues(type));
        }

        return new SwaggerParameter(paramType, paramName, doc, typeInfo, _default);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.