Getting data - OData (2024)

  • Article

OData services support requests for data via HTTP GET requests.

Requesting Entity Collections

The request below returns the the collection of Person People.

GET serviceRoot/People

Response Payload

{ "@odata.context": "serviceRoot/$metadata#People", "@odata.nextLink": "serviceRoot/People?%24skiptoken=8", "value": [ { "@odata.id": "serviceRoot/People('russellwhyte')", "@odata.etag": "W/\"08D1694BD49A0F11\"", "@odata.editLink": "serviceRoot/People('russellwhyte')", "UserName": "russellwhyte", "FirstName": "Russell", "LastName": "Whyte", "Emails": [ "[email protected]", "[email protected]" ], "AddressInfo": [ { "Address": "187 Suffolk Ln.", "City": { "CountryRegion": "United States", "Name": "Boise", "Region": "ID" } } ], "Gender": "Male", "Concurrency": 635404796846280400 }, ...... , { "@odata.id": "serviceRoot/People('keithpinckney')", "@odata.etag": "W/\"08D1694BD49A0F11\"", "@odata.editLink": "serviceRoot/People('keithpinckney')", "UserName": "keithpinckney", "FirstName": "Keith", "LastName": "Pinckney", "Emails": [ "[email protected]", "[email protected]" ], "AddressInfo": [], "Gender": "Male", "Concurrency": 635404796846280400 } ]}

Requesting an Individual Entity by ID

The request below returns an individual entity of type Person by the given UserName "russellwhyte"GET serviceRoot/People('russellwhyte')

Response Payload

{ "@odata.context": "serviceRoot/$metadata#People/$entity", "@odata.id": "serviceRoot/People('russellwhyte')", "@odata.etag": "W/\"08D1694BF26D2BC9\"", "@odata.editLink": "serviceRoot/People('russellwhyte')", "UserName": "russellwhyte", "FirstName": "Russell", "LastName": "Whyte", "Emails": [ "[email protected]", "[email protected]" ], "AddressInfo": [ { "Address": "187 Suffolk Ln.", "City": { "CountryRegion": "United States", "Name": "Boise", "Region": "ID" } } ], "Gender": "Male", "Concurrency": 635404797346655200}

Requesting an Individual Property

To address an entity property clients append a path segment containing property name to the URL of the entity. If the property has a complex type, properties of that value can be addressed by further property name composition.First let's take a look at how to get a simple property. The request below returns the Name property of an Airport.

GET serviceRoot/Airports('KSFO')/Name

Response Payload

{ "@odata.context": "serviceRoot/$metadata#Airports('KSFO')/Name", "value": "San Francisco International Airport"}

Then let's see how to get a property value of a complex type. The request below returns the Address of the complex type Location in an Airport.GET serviceRoot/Airports('KSFO')/Location/Address

Response Payload

{"@odata.context": "serviceRoot/$metadata#Airports('KSFO')/Location/Address","value": "South McDonnell Road, San Francisco, CA 94128"}

Requesting an Individual Property Raw Value

To address the raw value of a primitive property, clients append a path segment containing the string $value to the property URL. The request below returns the raw value of property Name of an Airport.

GET serviceRoot/Airports('KSFO')/Name/$value

Response Payload

San Francisco International Airport
Getting data - OData (2024)
Top Articles
15 Easy Sensory Activities You Can Do At Home With Infants & Babies
Sensory Activities for Babies
Kevin Cox Picks
Hannaford Weekly Flyer Manchester Nh
Obituary (Binghamton Press & Sun-Bulletin): Tully Area Historical Society
Think Of As Similar Crossword
Gw2 Legendary Amulet
Doby's Funeral Home Obituaries
Evita Role Wsj Crossword Clue
World Cup Soccer Wiki
Burn Ban Map Oklahoma
D10 Wrestling Facebook
Lesson 8 Skills Practice Solve Two-Step Inequalities Answer Key
Bx11
Beebe Portal Athena
U Arizona Phonebook
Craigslist Maui Garage Sale
Loft Stores Near Me
Jet Ski Rental Conneaut Lake Pa
2024 INFINITI Q50 Specs, Trims, Dimensions & Prices
Att.com/Myatt.
Empire Visionworks The Crossings Clifton Park Photos
Sand Dollar Restaurant Anna Maria Island
Bay Area Craigslist Cars For Sale By Owner
27 Modern Dining Room Ideas You'll Want to Try ASAP
Radical Red Ability Pill
Afni Collections
Narragansett Bay Cruising - A Complete Guide: Explore Newport, Providence & More
Summoners War Update Notes
Obsidian Guard's Skullsplitter
Loopnet Properties For Sale
La Qua Brothers Funeral Home
Half Inning In Which The Home Team Bats Crossword
Etowah County Sheriff Dept
Radical Red Doc
Babylon 2022 Showtimes Near Cinemark Downey And Xd
Poe Flameblast
Lovein Funeral Obits
Japanese Big Natural Boobs
Best Restaurants Minocqua
3 bis 4 Saison-Schlafsack - hier online kaufen bei Outwell
Lucyave Boutique Reviews
Coffee County Tag Office Douglas Ga
Arcanis Secret Santa
877-552-2666
Nope 123Movies Full
Contico Tuff Box Replacement Locks
552 Bus Schedule To Atlantic City
Identogo Manahawkin
1Tamilmv.kids
Msatlantathickdream
Latest Posts
Article information

Author: Margart Wisoky

Last Updated:

Views: 5888

Rating: 4.8 / 5 (78 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Margart Wisoky

Birthday: 1993-05-13

Address: 2113 Abernathy Knoll, New Tamerafurt, CT 66893-2169

Phone: +25815234346805

Job: Central Developer

Hobby: Machining, Pottery, Rafting, Cosplaying, Jogging, Taekwondo, Scouting

Introduction: My name is Margart Wisoky, I am a gorgeous, shiny, successful, beautiful, adventurous, excited, pleasant person who loves writing and wants to share my knowledge and understanding with you.