Answer the question
In order to leave comments, you need to log in
How to make an API in the Laravel + Vue bundle?
I'm making an app that uses Vue. The page should receive the necessary data depending on the routing. The question arose: how to do it right? Those. if the page needs to be updated, for example, 5 components, then each of them will knock on the server API. And if there are 1000 or more clients at the same time? Then more than 5000 requests will be created to form one page. How are such APIs generally implemented? I have an idea like this: in Vuex there is a module, for example, pages, which will make 1 request to the API and scatter the incoming data to other modules. Do they do this with Vue routing?
Answer the question
In order to leave comments, you need to log in
I have an idea like this: in Vuex there is a module, for example, pages, which will make 1 request to the API and scatter the incoming data to other modules. Do they do this with Vue routing?
GET /api/pleaseGiveMeAllDataForPageOne
GET /api/pleaseGiveMeAllDataForPageTwo
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question