PHP code example of jgodstime / laravel-postman-generator

1. Go to this page and download the library: Download jgodstime/laravel-postman-generator 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/ */

    

jgodstime / laravel-postman-generator example snippets


use Jgodstime\LaravelPostmanGenerator\PostmanExample;

it('has a case-folder example', function () {
    $response = $this->getJson('/api/v1/case-folders/1')->assertOk();
    PostmanExample::record('GET api/v1/case-folders/{caseFolderId}', $response);
});
bash
php artisan postman:generate --with-test-responses
bash
php artisan postman:generate --with-test-responses
php artisan postman:generate --push
php artisan postman:generate --create --workspace=<workspace-id>