OData / OData/odataorg.github.io

Why unbound function is called without namespace

Open
#385 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
73
Forks
106
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Basic Tutorial's operation section and compare the unbound GetNearestAirport example with the bound GetFavoriteAirline example. Check the OData guidance referenced by that section, then document the namespace rule and clarify whether either example needs correction.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.