Interface RelationshipResolver


  • public interface RelationshipResolver
    Relationship 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 Detail

      • resolve

        byte[] resolve​(String relationshipURL)
        Resolve relationship data.
        Parameters:
        relationshipURL - URL. eg. users/1 or https://api.myhost.com/uers/1
        Returns:
        raw response returned by the server (should be JSONAPI spec document.