tuandm / laravue

Admin dashboard for enterprise Laravel applications built by VueJS and Element UI https://laravue.dev
https://laravue.dev
MIT License
2.21k stars 655 forks source link

Implementing a generic API client #315

Open abdussalam-alali opened 3 years ago

abdussalam-alali commented 3 years ago

What?

Generic API Client

Why?

In order to access the non-resource API end-points, we can create a js file inside the API folder as a custom client. using this file we can access endpoints directly by their URL and pass data.

How?

Create an instance of GenericRequest then call one of the following methods: