io.katharsis.resource.annotations.JsonApiResource Maven / Gradle / Ivy
package io.katharsis.resource.annotations;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Defines a resource. Each class annotated with {@link JsonApiResource} must have defined {@link JsonApiResource#type()}.
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface JsonApiResource {
/**
* Defines name of the resource called type. According to JSON API, the type can be either singular or
* plural.
*
* @return type of the resource
* @see JSON API - Resource Types
*/
String type();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy