Examples of SwaggerOperation


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

        String doc = getDescription(findAnnotation(Description.class, annotations));
        List<String> produces = getValues(findAnnotation(Produces.class, annotations));
        List<String> consumes = getValues(findAnnotation(Consumes.class, annotations));
        String notes = getValue(findAnnotation(Notes.class, annotations));

        return new SwaggerOperation(httpMethod, opName, returnType, params, rms, produces, consumes, doc, notes);
    }
View Full Code Here

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

        List<String> produces = getValues(findAnnotation(Produces.class, annotations));
        List<String> consumes = getValues(findAnnotation(Consumes.class, annotations));
        String notes = getValue(findAnnotation(Notes.class, annotations));
        Boolean deprecated = findAnnotation(Deprecated.class, annotations) != null;

        return new SwaggerOperation(httpMethod, opName, returnTypeInfo, params, rms, produces, consumes, doc, notes, deprecated);
    }
View Full Code Here

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

        List<SwaggerOperation> doc = documentOperations(models, method);
        assertNotNull(doc);

        assertEquals(1, doc.size());
        SwaggerOperation op = doc.get(0);
       
        assertEquals("GET", op.method);
        assertEquals("getStuff", op.nickname);
        assertEquals(TypeExamples.class.getName(), op.type);
       
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.