Giter VIP home page Giter VIP logo

Comments (5)

darrelmiller avatar darrelmiller commented on May 23, 2024

Now that this is supported in Microsoft Graph AGS, we should add this capability. I expect teams to start using it soon.

from openapi.net.odata.

baywet avatar baywet commented on May 23, 2024

Note: in the provided example ~/Customers/{id}/Location should also be valid, but the conversion lib should already handle it today, we should double check though while we're at it.

from openapi.net.odata.

baywet avatar baywet commented on May 23, 2024

update, after some testing, it appears that the current conversion process also doesn't produce anything for ~/Customers/{id}/Location when it should. For example TripService doesn't have any path item for Airports/{id}/Location.

Additionally, this behavior should be driven by the existing EnableNavigationPropertyPath conversion setting.

from openapi.net.odata.

baywet avatar baywet commented on May 23, 2024

After internal discussions with @mikepizzo here are some additional precisions for the operations:

~/Customers/{id}/Location:

  • GET
  • PATCH
  • DELETE (if the property is nullable)

~/Customers/{ID}/Location/AddressInfo

  • GET
  • PATCH
  • DELETE (if the property is nullable)

(NavigationPropertyRestrictions apply)

~/Customers/{ID}/Location/AddressInfos (assuming we have a collection instead)

  • GET (list)
  • POST (inserting)

(NavigationPropertyRestrictions apply)

~/Customers/{ID}/Location/AddressInfos/{id} (assuming we have a collection instead)

  • GET
  • PATCH
  • DELETE

(NavigationPropertyRestrictions apply)

Awaiting additional information on the behavior of ContainsTarget ($ref etc...)

from openapi.net.odata.

baywet avatar baywet commented on May 23, 2024

ContainsTarget semantically behaves the same way as a navigation property on an entity type, additionally

~/Customers/{id}/Locations: (assuming they are a collection of complex types)

  • GET (lists the collection)
  • POST (replace the whole collection)

from openapi.net.odata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.