Skip to content

Why unbound function is called without namespace #385

Description

@mainakaich

As per OData basic tutorial in Basic Tutorial · OData - the Best Way to REST, an unbound function example was given as
GET serviceRoot/GetNearestAirport(lat = 33, lon = -118)

Here the function name was given without namespace. On the other hand, when calling a bound function, the namespace was provided like below.
GET serviceRoot/People('russellwhyte')/Microsoft.OData.SampleService.Models.TripPin.GetFavoriteAirline()

I wanted to understand what the rule is here. I was thinking that namespace is mandatory for function all the time. But this is not the case here. Kindly provide the suggestion.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions