"paths": { "/Products": …, "/Products('{ID}')": …, "/Categories": …, "/Categories({ID})": …, "/Suppliers": …, "/Suppliers('{ID}')": …, "/MainSupplier": …, "/Countries": …, "/Countries('{Code}')": …, "/ProductsByRating(Rating={Rating})": … } Paths for Entity Sets Each entity set is represented as a name/value pair whose name is the service-relative resource path of the entity set prepended with a forward slash, and whose value is a , see [OpenAPI]. : "/Products": … Each entity set that is indexable by key is additionally represented as a name/value pair whose name is the path template for key access, with path parameters for the key values, and whose value is a describing the allowed operations on individual entities of this set. : – "/Products('{ID}')": … : – "/OrderItems(OrderID={OrderID},ItemID={ItemID})": … If the service defines bound actions or functions applicable to the entity set or its entities, these are represented as additional name/value pairs with corresponding path templates for the action/function invocation. : "/LeaveRequests({ID})/OData.Demo.Approval": … Query a Collection of Entities The for the entity set contains the keyword get with an as that describes the capabilities for querying the entity set. The tags array of the as well as all other described in this section – – includes the entity set name. : GET – "/Products": { "get": { "summary": "Get entities from Products", "tags": [ "Products" ],
"paths": { "/Products": …, "/Products('{ID}')": …, "/Categories": …, "/Categories({ID})": …, "/Suppliers": …, "/Suppliers('{ID}')": …, "/MainSupplier": …, "/Countries": …, "/Countries('{Code}')": …, "/ProductsByRating(Rating={Rating})": … } Paths for Entity Sets Each entity set is represented as a name/value pair whose name is the service-relative resource path of the entity set prepended with a forward slash, and whose value is a , see [OpenAPI]. : "/Products": … Each entity set that is indexable by key is additionally represented as a name/value pair whose name is the path template for key access, with path parameters for the key values, and whose value is a describing the allowed operations on individual entities of this set. : – "/Products('{ID}')": … : – "/OrderItems(OrderID={OrderID},ItemID={ItemID})": … If the service defines bound actions or functions applicable to the entity set or its entities, these are represented as additional name/value pairs with corresponding path templates for the action/function invocation. : "/LeaveRequests({ID})/OData.Demo.Approval": … Query a Collection of Entities The for the entity set contains the keyword get with an as that describes the capabilities for querying the entity set. The tags array of the – as well as all other described in this section – includes the entity set name. : GET – "/Products": { "get": { "summary": "Get entities from Products", "tags": [ "Products" ],
odata-openapi-v1.0-cnprd01.docx