mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
122418 gjames: RA-827 Supporting custom status codes git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126473 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
25 lines
649 B
Java
25 lines
649 B
Java
package org.alfresco.rest.framework;
|
|
|
|
import static java.lang.annotation.ElementType.METHOD;
|
|
|
|
import org.alfresco.rest.framework.core.ResourceOperation;
|
|
import org.springframework.extensions.webscripts.Status;
|
|
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
|
|
/**
|
|
* Used to describe a resource method operation in the Rest API
|
|
*
|
|
* @author Gethin James
|
|
*/
|
|
@Target({ METHOD })
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
public @interface WebApiDescription {
|
|
String title();
|
|
String description() default "";
|
|
int successStatus() default ResourceOperation.UNSET_STATUS;
|
|
}
|
|
|