jadjoubran / laravel5-angular-material-starter

Get started with Laravel 5.3 and AngularJS (material)
https://laravel-angular.readme.io/
MIT License
1.66k stars 401 forks source link

Is this just old cruft? #481

Closed james-coder closed 7 years ago

james-coder commented 7 years ago

Is this just old cruft? 'Accept': 'application/x.laravel.v1+json' https://github.com/jadjoubran/laravel5-angular-material-starter/blob/master/angular/services/API.service.js#L7

I see references to it in old documentation, but it seems to be removed in newer documentation and has no other reference in branch master code. Does this do anything right now or is it just left-over cruft?

Thanks in advance.

jadjoubran commented 7 years ago

Hi @jamesalton Thanks for posting here! This is called Content negotiation between the front-end and the API It allows you to specify a specific version of the API without altering the URLs You can also configure it to return data in other formats than json Dingo API Documentation