The best way is to use a front end framework such as AngularJS. So that you can play with your inputs and and merge them to json then send the json to your RESTful API that will parse the JSON.
/*** Angular Code ***/
$http.post('/someUrl', {msg:'some products'}).
success(function(data, status, headers, config) {
// this callback will be called asynchronously
// when the response is available
}).
error(function(data, status, headers, config) {
// called asynchronously if an error occurs
// or server returns response with an error status.
});
see documentation here https://docs.angularjs.org/api/ng/service/$http
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community