I have a vue.js website and I am trying to replace all API calls with data from the vuex store.

My API (AWS API gateway) always returns the same data and therefore it would be more efficient to put it all in vuex.

However I have no idea how to do that. I have all the routes for my API and I can generate every json responses. But I fail to see an easy and fast way to incorporate that into vuex.

Would anyone have done that in the past? Many thanks.

0 Answers