Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting nested child item #299

Open
Remo opened this issue Jul 28, 2022 · 1 comment
Open

Deleting nested child item #299

Remo opened this issue Jul 28, 2022 · 1 comment

Comments

@Remo
Copy link
Contributor

Remo commented Jul 28, 2022

I'm still trying to get our frontend to play nicely with lodata. Some very basic operations are working, but nested objects are still causing some headaches.

I've been comparing lodata with this: https://www.odata.org/odata-services/

There's one use-cases that seems to be working there and I'd therefore assume, it's a valid OData request.

  • We can get the trips of a person with this: /People('russellwhyte')/Trips (GET)
  • We can get a single trip of a single person with this /People('russellwhyte')/Trips(0) (GET)
  • We can then delete a single trip from a single person with the same URI: /People('russellwhyte')/Trips(0) (DELETE)

However, with lodata I only get Method not allowed back. I'm using a simple eloquent model with a hasMany child entity.

@Remo
Copy link
Contributor Author

Remo commented Jun 24, 2024

@27pchrisl I might have someone how could implement this. Do you mind giving me some pointers about how you would implement this? Just to increase the likelihood of the pull request to get merged. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant