PHP code example of open-admin-ext / api-tester
1. Go to this page and download the library: Download open-admin-ext/api-tester library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
open-admin-ext / api-tester example snippets
'extensions' => [
'api-tester' => [
// route prefix for APIs
'prefix' => 'api',
// auth guard for api
'guard' => 'api',
// If you are not using the default user model as the authentication model, set it up
'user_retriever' => function ($id) {
return \App\User::find($id);
},
]
]