Skip to content

Commit

Permalink
Merge pull request #2468 from maruware/fix-ra-data-simple-rest-doc
Browse files Browse the repository at this point in the history
Fix ra-data-simple-rest  CREATE doc.
  • Loading branch information
Gildas Garcia authored Oct 25, 2018
2 parents 1d0583c + 6d72b35 commit 4990c60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ra-data-simple-rest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This Data Provider fits REST APIs using simple GET parameters for filters and so
|----------------------|----------------------------------------------------------------
| `GET_LIST` | `GET http://my.api.url/posts?sort=['title','ASC']&range=[0, 24]&filter={title:'bar'}`
| `GET_ONE` | `GET http://my.api.url/posts/123`
| `CREATE` | `POST http://my.api.url/posts/123`
| `CREATE` | `POST http://my.api.url/posts`
| `UPDATE` | `PUT http://my.api.url/posts/123`
| `DELETE` | `DELETE http://my.api.url/posts/123`
| `GET_MANY` | `GET http://my.api.url/posts?filter={ids:[123,456,789]}`
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-data-simple-rest/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
* GET_ONE => GET http://my.api.url/posts/123
* GET_MANY => GET http://my.api.url/posts?filter={ids:[123,456,789]}
* UPDATE => PUT http://my.api.url/posts/123
* CREATE => POST http://my.api.url/posts/123
* CREATE => POST http://my.api.url/posts
* DELETE => DELETE http://my.api.url/posts/123
*/
export default (apiUrl, httpClient = fetchUtils.fetchJson) => {
Expand Down

0 comments on commit 4990c60

Please sign in to comment.