General Object Retrieval API¶
Advanced search use-cases supported by Backendless include:
- Search with a query (a "where clause" search) -retrieves data objects which satisfy a condition.
- Paged data retrieval - retrieves a "page" of data of the given size from the specified offset.
- Sorted data object retrieval - retrieves a collection of data objects sorted by specified properties.
- Retrieval of related objects - fetching data objects through special "relation" properties. See retrieval of related data objects.
- Calculating aggregate values for a collection of objects - retrieves sum, average, min, max or count for all or a subset of objects in a table. See Aggregate Functions for more details.
xxxx.backendless.app is a subdomain assigned to your application. For more information see the Client-side Setup section of this documentation.
https://xxxx.backendless.app/api/data/<table-name>?props=prop1,prop2& loadRelations=relprop1,relprop2& where=whereClause& pageSize=XX& sortBy=prop1,prop2& offset=ZZ
||name of the table where to search for the object.|
||references object properties which should be returned with every object. In this example, objects in the result will contain only the "prop1" and "prop2" properties.|
||references object properties which are relations and should be initialized and returned with the parent object. By default relations are not returned with the parent object and require a separate API call to load. Using the
||contains an SQL query (the where clause part) which is used to search for the objects. The value must be URL encoded.|
||sets the page size which is the number of objects to be returned in the response.|
||lists properties by which the returned collection should be sorted by.|
||zero-based index of the object in the persistent store from which to run the search. This parameter should be used when implementing paged access to data. Suppose the first request returned 20 objects (if
||Optional header. Contains a value returned by Backendless in a preceding user Login API call. If
For examples on using the advanced object retrieval API, see the following sub-sections: