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

The following are top voted examples for showing how to use com.wordnik.swagger.annotations.Api. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: minnal   File: ResourceClassCreator.java   View source code 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;
}