Namespace
actions jsonapi-vuex.jsonapiModule.actionsVuex actions, used via this.$store.dispatch
, e.g.: this.$store.dispatch('jv/get', <args>)
args
can be either a string or an object representing the item(s) required, or it can be an array of string/object and an optional axios config object.
Delete an item from the API
Parameters: Name Type Descriptioncontext
object
Vuex context object
args
string | object | array
See module:jsonapi-vuex.jsonapiModule.actions
for a summary of args
string
A URL path to an item - e.g. endpoint/1
object
A restructured object - e.g. { _jv: { type: "endpoint", id: "1" } }
array
A 2-element array, consisting of a string/object and an optional axios config object
Returns:
Restructured representation of the deleted item
Type: object
# async static get(context, args) → {object}Get items from the API
Parameters: Name Type Descriptioncontext
object
Vuex context object
args
string | object | array
See module:jsonapi-vuex.jsonapiModule.actions
for a summary of args
string
A URL path to an item - e.g. endpoint/1
object
A restructured object - e.g. { _jv: { type: "endpoint", id: "1" } }
array
A 2-element array, consisting of a string/object and an optional axios config object
Returns:
Restructured representation of the requested item(s)
Type: object
Get related items from the API
Parameters: Name Type Descriptioncontext
object
Vuex context object
args
string | object | array
See module:jsonapi-vuex.jsonapiModule.actions
for a summary of args
string
A URL path to an item - e.g. endpoint/1
object
A restructured object - e.g. { _jv: { type: "endpoint", id: "1" } }
array
A 2-element array, consisting of a string/object and an optional axios config object
Returns:
Restructured representation of the requested item(s)
Type: object
# async static patch(context, args) → {object}Patch an item in the API
Parameters: Name Type Descriptioncontext
object
Vuex context object
args
object | array
See module:jsonapi-vuex.jsonapiModule.actions
for a summary of args
object
A restructured object - e.g. { _jv: { type: "endpoint", id: "1" } }
array
A 2-element array, consisting of a string/object and an optional axios config object
Returns:
Restructured representation of the patched item
Type: object
# async static post(context, args) → {object}Post an item to the API
Parameters: Name Type Descriptioncontext
object
Vuex context object
args
object | array
See module:jsonapi-vuex.jsonapiModule.actions
for a summary of args
object
A restructured object - e.g. { _jv: { type: "endpoint", id: "1" } }
array
A 2-element array, consisting of a string/object and an optional axios config object
Returns:
Restructured representation of the posted item
Type: object
# async static search(context, args) → {object}Get items from the API without updating the Vuex store
Parameters: Name Type Descriptioncontext
object
Vuex context object
args
string | object | array
See module:jsonapi-vuex.jsonapiModule.actions
for a summary of args
string
A URL path to an item - e.g. endpoint/1
object
A restructured object - e.g. { _jv: { type: "endpoint", id: "1" } }
array
A 2-element array, consisting of a string/object and an optional axios config object
Returns:
Restructured representation of the posted item
Type: object
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4