Package org.amdatu.web.rest.doc.swagger.model

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


        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

Related Classes of org.amdatu.web.rest.doc.swagger.model.SwaggerParameter

Copyright © 2018 www.massapicom. 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.