Skip to content

Commit

Permalink
Merge pull request #1269 from marmelab/Correct-the-definition-of-addF…
Browse files Browse the repository at this point in the history
…ullRequestInterceptor

Correct the definition of add full request interceptor
  • Loading branch information
Kmaschta authored Dec 9, 2016
2 parents 52671f1 + ba28138 commit 49fdc56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/Getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ The `_page`, `_perPage`, `_sortDir`, and `_sortField` query parameters are added

http://jsonplaceholder.typicode.com/users?_start=1&_end=30&_order=DESC&_sort=id

But it's very easy to map the two flavors. Ng-admin relies on a powerful REST client called [Restangular](https://github.com/mgonto/restangular). To configure Restangular, you must write an *interceptor*, which is a simple function receiving the response from the web server and transforming it before it is passed to ng-admin.
But it's very easy to map the two flavors. Ng-admin relies on a powerful REST client called [Restangular](https://github.com/mgonto/restangular). To configure Restangular, you must write an *interceptor*, which is a simple function intercepting the request in order to transform it before it is passed to ng-admin.

Here is the configuration script required to map the JSONPlaceholder REST flavor with ng-admin REST flavor:

Expand Down
2 changes: 1 addition & 1 deletion doc/reference/View.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Set the default direction for list sorting. Defaults to 'DESC'
* `infinitePagination(boolean)`
Enable or disable lazy loading.

* `filters()[field1, field2, ...])`
* `filters([field1, field2, ...])`
Add filters to the list. Each field maps a property in the API endpoint result.

customers.listView().filters([
Expand Down

0 comments on commit 49fdc56

Please sign in to comment.