Skip to content

Commit

Permalink
added filter to read
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry Dam committed Feb 15, 2017
1 parent 79c4e42 commit 7c3c427
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Type | Variable | Description
Logs the user out when the CRUD-api has [php-api-auth](https://github.com/mevdschee/php-api-auth) implemented.


###read(sPath, mParameters?)
### read(sPath, mParameters?)
Trigger a GET request to the odata service that was specified in the model constructor. The data will not be stored in the model. The requested data is returned with the response.

**Parameters:**
Expand All @@ -191,6 +191,7 @@ Type | Variable | Description
*{function}* | **mParameters.success?** | A callback function which is called when the data has been successfully retrieved. The handler can have the following parameters: oData and response.created.
*{function}* | **mParameters.error?** | a callback function which is called when the request failed. The handler can have the parameter oError which contains additional error information.
*{boolean}* | **mParameters.async?** | Whether the request should be done asynchronously. Default: false Please be advised that this feature is officially unsupported as using asynchronous requests can lead to data inconsistencies if the application does not make sure that the request was completed before continuing to work with the data.
*{array}* | **mParameters.filters?** | An array of sap.ui.model.Filter to be included in the request URL


###setProperty(sPath, oValue)
Expand Down

0 comments on commit 7c3c427

Please sign in to comment.