Java Code Examples for com.wordnik.swagger.annotations.Api

The following examples show how to use com.wordnik.swagger.annotations.Api. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
Source Project: minnal   Source File:    License: Apache License 2.0 5 votes vote down vote up
 * Returns the api annotation
 * @param constPool
 * @return
protected Annotation getApiAnnotation(ConstPool constPool) {
	Annotation apiAnnotation = new Annotation(Api.class.getCanonicalName(), constPool);
	apiAnnotation.addMemberValue("value", new StringMemberValue(path, constPool));
	apiAnnotation.addMemberValue("description", new StringMemberValue("Operations about " + namingStrategy.getResourceName(entityClass), constPool));
	return apiAnnotation;