-
Notifications
You must be signed in to change notification settings - Fork 109
Sorry for posting this as issue. #110
Comments
If Spine returns the resources, you've probably done it correctly. You only need to subclass HTTPClient if you have specific networking requirements. Usually this is not the case. Yes, you can get the related resources with a Query by using this initialiser: |
You are the man, thanks dude. cheers. |
Hi Wvteijlingen, Thanks in advance. |
No, Spine doesn’t save anything locally. With “persisting" I mean POSTing or PUTting the resource to the server. The
|
Thanks dude. Please advice me since I'm new to swift. Thanks in advance |
You can store the entire ResourceCollection if you want. You can also store just the URL and use that to initialise a new Query. Storing just the URL takes up less storage space. |
I have a attribute named 'description' in the JSON. As we know, 'description' is pre-defined name to get object's description. So i should use Field name formatters, right? my code will look like this public struct AllCapsKeyFormatter: KeyFormatter { is this correct? |
You do not need to use a KeyFormatter for this. You can simply define a different serialized named as follows: override class var fields: [Field] {
return fieldsFromDictionary([
"description_property": Attribute().serializeAs("description")
])
} The Swift property will now be called |
seems great. Thanks buddy. |
Hi, I'm new to swift.
In this project, i just created a subclass for HTTPClient, hit a remote from there and added that client to spine's networkclient. Spine onsuccess closure gives me resources ---> is it correct/process?
And there is no data{[]} in the relationship of the model from my REMOTE API(one to many concept - parent have data and child doesn't have. it has only self links - related and resource link in my case) - Is it possible to get child model's data using those remote links in spine.
Thanks in advance
The text was updated successfully, but these errors were encountered: