wvteijlingen / Spine

A Swift library for working with JSON:API APIs. It supports mapping to custom model classes, fetching, advanced querying, linking and persisting.
MIT License
266 stars 109 forks source link

Router `URLForRelationship` does not return fully qualified url. #95

Closed markst closed 7 years ago

markst commented 8 years ago

Where as URLForResourceType() returns baseURL appending url, the URLForRelationship() only returns the endpoint/extension, which ends up failing the network request.

wvteijlingen commented 8 years ago

You are right, if the resource URL is relative it returns a relative URL. Will update this to make it absolute to baseURL if needed.