OData.org demo (V2) sample service
Small products/categories/suppliers demo with a complex Address type and a function import.
- OData version: 2.0
- Service root:
https://services.odata.org/V2/OData/OData.svc/ $metadata:https://services.odata.org/V2/OData/OData.svc/$metadata- Entity sets: 3, entity types: 3, complex types: 1, enum types: 0
Open the ER diagram · Browse the tree
Entity sets
| Entity set | Entity type | Key | Properties | Navigations |
|---|---|---|---|---|
| Products | Product | ID | 7 | Category, Supplier |
| Categories | Category | ID | 2 | Products |
| Suppliers | Supplier | ID | 4 | Products |
Example queries
- First five Products —
Products?$top=5 - Products by ID, descending —
Products?$orderby=ID desc&$top=5 - First five Categories —
Categories?$top=5 - Categories by ID, descending —
Categories?$orderby=ID desc&$top=5 - First five Suppliers —
Suppliers?$top=5 - Suppliers by ID, descending —
Suppliers?$orderby=ID desc&$top=5
More examples: OData query options cheat sheet.