July 2018
Intermediate to advanced
420 pages
8h 46m
English
By way of good practice, we will create a new controller in our application just to serve as the basis for the API documentation and hold some basic API information with a Swagger annotation.
php artisan make:controller ApiController
* Class ApiController** @package App\Http\Controllers** @SWG\Swagger(* basePath="",* host="localhost:8081",* schemes={"http"},* @SWG\Info(* version="1.0",* title="Custom Bikes",* @SWG\Contact(name="Developer Contact", url="https://www.example.com"),* )* )*/Read now
Unlock full access