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

Capabilities for creating a relation to an existing entity during insert #384

Open
ralfhandl opened this issue Mar 20, 2024 · 0 comments
Open

Comments

@ralfhandl
Copy link
Contributor

The following request creates an Employee entity and associates it to an existing Employee entity via the Manager navigation property.

POST Employees

{
  "[email protected]": "Employees(0)",
  "Name": "Peter"
}

Is there a Capabilities annotation on the navigation property that would forbid this operation?

  • UpdateRestrictions/NonUpdatableNavigationProperties controls changing a relation during update.
  • InsertRestrictions/NonUpdatableNavigationProperties controls creating a relation together with the related entity during insert.
  • What controls creating a relation to an existing entity during insert?

Imported from ODATA-1612

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

No branches or pull requests

1 participant