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 · 0 comments
Open

Deleting nested child item #299

Remo opened this issue Jul 28, 2022 · 0 comments

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.

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