cloudcreativity / laravel-json-api

JSON API (jsonapi.org) package for Laravel applications.
http://laravel-json-api.readthedocs.io/en/latest/
Apache License 2.0
780 stars 109 forks source link

Support for Updating Relationships #508

Closed Kieryn19 closed 3 years ago

Kieryn19 commented 4 years ago

Hi,

I am looking to implement updating relationships (https://jsonapi.org/format/#crud-updating-to-many-relationships).

Is there a way to support this out of the box? I tried using the relationship routes however these only have GET and HEAD methods.

ben221199 commented 4 years ago

I look at my own setup and I see more methods than only GET and HEAD for my relationships. Can you do php artisan route:list and share your api.php?

lindyhopchris commented 4 years ago

Hi! Yeah, this is fully implemented and is covered by the automated test suite. Sharing your routing information would help resolve.

lindyhopchris commented 3 years ago

Closing due to lack of activity. Think the question was answered!