You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm consuming a streaming api and events are coming over in text/event-stream format but the message in the event stream data key is in json api format. Is it possible to use this gem to initialize a resource from the json api formatted json?
If I have an Item < JsonApiClient::Resource class is it possible to initialize it from the json above?
The text was updated successfully, but these errors were encountered:
blakecash
changed the title
Initialize resource without request from json api formatted json (from Streaming api)
Initialize resource from Streaming api events
Mar 7, 2016
blakecash
changed the title
Initialize resource from Streaming api events
Initialize Resource without a request (from json api formatted streaming events)
Mar 7, 2016
I'm consuming a streaming api and events are coming over in
text/event-stream
format but the message in the event stream data key is in json api format. Is it possible to use this gem to initialize a resource from the json api formatted json?Example event:
After the event message is parsed I'm left with the json api formatted json below.
If I have an
Item < JsonApiClient::Resource
class is it possible to initialize it from the json above?The text was updated successfully, but these errors were encountered: