Open tobyzerner opened 8 years ago
Makes sense. Any big changes compared to the current API?
And is this connected to Mithril at all?
The relevant changes from the current API are:
pushPayload
-> sync
pushObject
-> push
getById
and getByValue
-> find
remove
-> unload
find
-> load
discussion.id()
is now discussion.id
)discussion.save(attributes)
-> store.save(discussion, attributes)
discussion.delete()
-> store.delete(discussion)
store.createRecord('discussions').save(attributes)
-> store.create('discussions', attributes)
I think that's all.
Nope this isn't related to Mithril, it's framework agnostic :)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We do this to keep the amount of open issues to a manageable minimum. In any case, thanks for taking an interest in this software and contributing by opening the issue in the first place!
Part of flarum/framework#262.
Would be called tobscure/json-api-client or something.
Proposal for a refined API:
Thoughts?