API Name | Microsoft.OData.SampleService.Models.TripPin |
API Version | |
OData Protocol Version | 4.0 |
Photo | |
Person | |
Airline | |
Airport |
PlanItem | Accessible through parent Resource i.e. Trip |
PublicTransportation | Accessible through parent of base type Resource i.e. PlanItem |
Flight | Accessible through parent of base type Resource i.e. PublicTransportation |
Event | Accessible through parent of base type Resource i.e. PlanItem |
Trip | Accessible through parent Resource i.e. Person |
Standard HTTP status codes are used for HTTP communication level error information. Further, OData Protocol level and application level error information is provided in the message-body. Application level error information is provided with a well defined structure. An example error response in JSON format is as below:
HTTP/1.1 404 Not Found
{ "error": { "code": "NotFound", "message": "Resource not found for the segment 'Wrong Resource Name'.", "innererror": { "message": "Further application level details on error.", "type": "Type of Error Text" } } }
OData : Open Data Protocol is a standard to enable the development and consumption of consistent and functionally effective Web APIs. Since OData is a standard, it also enables the ecosystem of compliant frameworks, generic tools and applications that help people from diverse skill-set, technical as well as business/domain background to get involved with API/Application development and consumption. For a REST API Standard, OData (V1 to V3) was well received by the enterprise business application software industry and OData V4 is now an ISO and OASIS standard as well.
For further details, please refer to:
Additionally, PragmatiQa's OData Directory has a growing list of publicly accessible Reference/Demo/Sample OData Services & APIs that can be explored using integrated XOData or through other generic OData tools with support for corresponding version of OData.
name | type | Description | nullable |
---|---|---|---|
Id ๐ | Edm.Int64 | false | |
Name | Edm.String |
{ "@odata.type": "Microsoft.OData.SampleService.Models.TripPin.Photo", "Id": "", "Name": "" }
Content-type: application/json
name | type | Description | nullable |
---|---|---|---|
UserName ๐ | Edm.String | false | |
FirstName | Edm.String | false | |
LastName | Edm.String | false | |
Emails | Collection(Edm.String) | ||
AddressInfo | Collection(Microsoft.OData.SampleService.Models.TripPin.Location) | ||
Gender | Microsoft.OData.SampleService.Models.TripPin.PersonGender | ||
Concurrency | Edm.Int64 | false |
name | Entity Type | Description | extensions | Type | containsTarget |
---|---|---|---|---|---|
Friends | Person | Collection(Microsoft.OData.SampleService.Models.TripPin.Person) | |||
Trips | Trip | Collection(Microsoft.OData.SampleService.Models.TripPin.Trip) | true | ||
Photo | Photo | Microsoft.OData.SampleService.Models.TripPin.Photo |
{ "@odata.type": "Microsoft.OData.SampleService.Models.TripPin.Person", "UserName": "", "FirstName": "", "LastName": "", "Emails": [ "" ], "AddressInfo": [ { "Address": "", "City": { "CountryRegion": "", "Name": "", "Region": "" } } ], "Gender": "Male", "Concurrency": "" }
Content-type: application/json
name | type | Description | nullable |
---|---|---|---|
AirlineCode ๐ | Edm.String | false | |
Name | Edm.String | false |
{ "@odata.type": "Microsoft.OData.SampleService.Models.TripPin.Airline", "AirlineCode": "", "Name": "" }
Content-type: application/json
name | type | Description | nullable |
---|---|---|---|
IcaoCode ๐ | Edm.String | false | |
Name | Edm.String | false | |
IataCode | Edm.String | false | |
Location | Microsoft.OData.SampleService.Models.TripPin.AirportLocation | false |
{ "@odata.type": "Microsoft.OData.SampleService.Models.TripPin.Airport", "IcaoCode": "", "Name": "", "IataCode": "", "Location": { "Loc": "", "Address": "", "City": { "CountryRegion": "", "Name": "", "Region": "" } } }
Content-type: application/json
name | type | Description | nullable |
---|---|---|---|
PlanItemId ๐ | Edm.Int32 | false | |
ConfirmationCode | Edm.String | ||
StartsAt | Edm.DateTimeOffset | ||
EndsAt | Edm.DateTimeOffset | ||
Duration | Edm.Duration |
{ "@odata.type": "Microsoft.OData.SampleService.Models.TripPin.PlanItem", "PlanItemId": 0, "ConfirmationCode": "", "StartsAt": "2016-07-25T11:45:16Z", "EndsAt": "2016-07-25T11:45:16Z", "Duration": "" }
Content-type: application/json
name | type | Description |
---|---|---|
SeatNumber | Edm.String |
{ "@odata.type": "Microsoft.OData.SampleService.Models.TripPin.PublicTransportation", "SeatNumber": "", "PlanItemId": 0, "ConfirmationCode": "", "StartsAt": "2016-07-25T11:45:16Z", "EndsAt": "2016-07-25T11:45:16Z", "Duration": "" }
Content-type: application/json
name | type | Description | nullable |
---|---|---|---|
FlightNumber | Edm.String | false |
name | Entity Type | Description | extensions | Type | Nullable |
---|---|---|---|---|---|
From | Airport | Microsoft.OData.SampleService.Models.TripPin.Airport | false | ||
To | Airport | Microsoft.OData.SampleService.Models.TripPin.Airport | false | ||
Airline | Airline | Microsoft.OData.SampleService.Models.TripPin.Airline | false |
{ "@odata.type": "Microsoft.OData.SampleService.Models.TripPin.Flight", "FlightNumber": "", "SeatNumber": "", "PlanItemId": 0, "ConfirmationCode": "", "StartsAt": "2016-07-25T11:45:16Z", "EndsAt": "2016-07-25T11:45:16Z", "Duration": "" }
Content-type: application/json
name | type | Description | nullable |
---|---|---|---|
Description | Edm.String | ||
OccursAt | Microsoft.OData.SampleService.Models.TripPin.EventLocation | false |
{ "@odata.type": "Microsoft.OData.SampleService.Models.TripPin.Event", "Description": "", "OccursAt": { "BuildingInfo": "", "Address": "", "City": { "CountryRegion": "", "Name": "", "Region": "" } }, "PlanItemId": 0, "ConfirmationCode": "", "StartsAt": "2016-07-25T11:45:16Z", "EndsAt": "2016-07-25T11:45:16Z", "Duration": "" }
Content-type: application/json
name | type | Description | nullable |
---|---|---|---|
TripId ๐ | Edm.Int32 | false | |
ShareId | Edm.Guid | ||
Description | Edm.String | ||
Name | Edm.String | false | |
Budget | Edm.Single | false | |
StartsAt | Edm.DateTimeOffset | false | |
EndsAt | Edm.DateTimeOffset | false | |
Tags | Collection(Edm.String) | false |
name | Entity Type | Description | extensions | Type | containsTarget |
---|---|---|---|---|---|
Photos | Photo | Collection(Microsoft.OData.SampleService.Models.TripPin.Photo) | |||
PlanItems | PlanItem | Collection(Microsoft.OData.SampleService.Models.TripPin.PlanItem) | true |
{ "@odata.type": "Microsoft.OData.SampleService.Models.TripPin.Trip", "TripId": 0, "ShareId": "", "Description": "", "Name": "", "Budget": 0, "StartsAt": "2016-07-25T11:45:16Z", "EndsAt": "2016-07-25T11:45:16Z", "Tags": [ "" ] }
Content-type: application/json
name | type | Description | nullable |
---|---|---|---|
CountryRegion | Edm.String | false | |
Name | Edm.String | false | |
Region | Edm.String | false |
name | type | Description | nullable |
---|---|---|---|
Address | Edm.String | false | |
City | Microsoft.OData.SampleService.Models.TripPin.City | false |
name | type | Description |
---|---|---|
BuildingInfo | Edm.String |
name | type | Description | nullable | SRID |
---|---|---|---|---|
Loc | Edm.GeographyPoint | false | 4326 |
Content-type: application/json
name | type | Description | nullable |
---|---|---|---|
person | Microsoft.OData.SampleService.Models.TripPin.Person | false | |
ReturnType | Microsoft.OData.SampleService.Models.TripPin.Airline |
Content-type: application/json
name | type | Description | nullable |
---|---|---|---|
trip | Microsoft.OData.SampleService.Models.TripPin.Trip | false | |
ReturnType | Collection(Microsoft.OData.SampleService.Models.TripPin.Person) |
Content-type: application/json
name | type | Description | nullable |
---|---|---|---|
person | Microsoft.OData.SampleService.Models.TripPin.Person | false | |
userName | Edm.String | false | |
ReturnType | Collection(Microsoft.OData.SampleService.Models.TripPin.Trip) |
Content-type: application/json
name | type | Description | nullable |
---|---|---|---|
lat | Edm.Double | false | |
lon | Edm.Double | false | |
ReturnType | Microsoft.OData.SampleService.Models.TripPin.Airport |
Content-type: application/json