PHP code example of oooiik / laravel-export-postman
1. Go to this page and download the library: Download oooiik/laravel-export-postman 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/ */
oooiik / laravel-export-postman example snippets
class Container ...
{
/**
* @AuthNo
* @Header Accept => application/json
* @DescriptionContext description for postman
* @PreRequestScriptContext console.log('pre-request index method')
* @TestScriptContext console.log('test index method')
*/
public function index(...) {...}
/**
* @AuthBearer {{TOKEN}}
* @PreRequestScriptFileBasePath ./dir/filename
* @TestScriptFileResourcePath ./dir/filename
*/
public function Show(...) {...}
}
bash
php artisan export:postman