Skip to content

Commit

Permalink
Merge fea636a into 2513fc2
Browse files Browse the repository at this point in the history
  • Loading branch information
jpage-godaddy committed Jun 25, 2019
2 parents 2513fc2 + fea636a commit a7d5d8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/advanced-setups.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ needs. See [advanced actionCreators] for some examples.

Now that we are creating new doodads, let us look at tying into our API to
update them. Resources are keyed by params, but also by the endpoint name. If
we want an UPDATE request to modify a resource we already have from a GET,
we want an PUT request to modify a resource we already have from a GET,
can set the [resourceAlias] in our request description.

```diff
Expand All @@ -77,7 +77,7 @@ const apiDesc = {
+ },
+ updateDoodad: {
+ url: 'http://api.my-service.com/doodads/:id',
+ method: 'UPDATE',
+ method: 'PUT',
+ resourceAlias: 'getDoodad'
}
};
Expand Down

0 comments on commit a7d5d8f

Please sign in to comment.