Hello. Could be late, but you can use prefix routes to manage the versioning of the API in the URL, use headers is an option, but is better use URL versioning.
The OAuth 2 server is to validate requests for resources on you API.
You can found a complete course about RESTful API in Laravel, with classes about caching, OAuth2 and versioning.
You can access here: Create a RESTful API with Laravel and PHP
Hope it helps :)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community