reststate / reststate-vuex

Zero-configuration web service client for Vuex
https://vuex.reststate.codingitwrong.com
Other
72 stars 19 forks source link

Is there a way to remove a relationship? #187

Open ConsoleTVs opened 4 years ago

ConsoleTVs commented 4 years ago

How do you remove a to many relationship?

https://jsonapi.org/format/#crud-updating-to-many-relationships

The spect expects a delete request to that URL, but I don't seem to find anything on this package.

CodingItWrong commented 4 years ago

Working with relationship links hasn't yet been implemented in this library.

If you or someone else reading this would like to contribute this feature, I think an API that would work well would be the following actions:

All three would take the same arguments:

geoidesic commented 4 years ago

I've started work on this. You can view it here: https://github.com/geoidesic/reststate-vuex/tree/support-for-relationships https://github.com/geoidesic/reststate-client/tree/support-for-relationships

geoidesic commented 3 years ago

https://github.com/reststate/reststate-vuex/pull/282

CodingItWrong commented 3 years ago

FYI, this library will be unmaintained going forward.

If you need new features or fixes, I recommend forking the repo and making changes, or finding an alternate library that meets your needs.