Commit 3b04de86 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'docs-patch-38' into 'master'

Update vuex.md - swap PUT/POST methods

See merge request gitlab-org/gitlab-ce!24494
parents 40efc454 f15e2985
...@@ -120,8 +120,8 @@ create: ...@@ -120,8 +120,8 @@ create:
1. An action `receiveSomethingError`, to handle the error callback 1. An action `receiveSomethingError`, to handle the error callback
1. An action `fetchSomething` to make the request. 1. An action `fetchSomething` to make the request.
1. In case your application does more than a `GET` request you can use these as examples: 1. In case your application does more than a `GET` request you can use these as examples:
- `PUT`: `createSomething` - `POST`: `createSomething`
- `POST`: `updateSomething` - `PUT`: `updateSomething`
- `DELETE`: `deleteSomething` - `DELETE`: `deleteSomething`
The component MUST only dispatch the `fetchNamespace` action. Actions namespaced with `request` or `receive` should not be called from the component The component MUST only dispatch the `fetchNamespace` action. Actions namespaced with `request` or `receive` should not be called from the component
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment