Query by Type
Since sensenet supports content type inheritance there are two ways to query items by their types.
Query by a type
The following example shows how to get items with an exact type (Car
) skipping the contents with one of the inherited types.
Copy
GET https://example.com/OData.svc/Root?query=Type:Car
🛈 Special characters should be URL encoded
Query by a type and its subtypes
In most of the cases you will query by type family (by a content type and all of its inherited ones).
The response of the following example will return every content with the type Folder
or any inherited type.
Copy
GET https://example.com/OData.svc/Root?query=TypeIs:Folder
🛈 Special characters should be URL encoded