Package com.github.jasminb.jsonapi
Interface RelationshipResolver
-
public interface RelationshipResolverRelationship resolver contract.
Implementors of this class should provide means for invoking API using relationship URL without any context awareness. Usually relationship should be resolved by simply invoking HTTP GET using provided URL.- Author:
- jbegic
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]resolve(String relationshipURL)Resolve relationship data.
-
-
-
Method Detail
-
resolve
byte[] resolve(String relationshipURL)
Resolve relationship data.- Parameters:
relationshipURL- URL. eg.users/1orhttps://api.myhost.com/uers/1- Returns:
- raw response returned by the server (should be JSONAPI spec document.
-
-