au.com.mountainpass.hyperstate.server.serialization.mixins.LinkSerialisationMixin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hyperstate-server Show documentation
Show all versions of hyperstate-server Show documentation
A Hypermedia as the Engine of Application State (HATEOAS) library
The newest version!
package au.com.mountainpass.hyperstate.server.serialization.mixins;
import org.springframework.http.MediaType;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import au.com.mountainpass.hyperstate.server.serialization.MediaTypeSerializer;
public abstract class LinkSerialisationMixin {
@JsonSerialize(using = MediaTypeSerializer.class)
@JsonProperty("type")
public abstract MediaType getRepresentationFormat();
}