Skip to content

Commit ddc300f

Browse files
committed
option bug fix and readme update
1 parent b92ded0 commit ddc300f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ To use the command simply run:
2929
php artisan export:postman
3030
```
3131

32-
You can also supply the `--structured` option to nest the routes into folders based on their name, or `--bearer` to create a bearer authorization token which can be managed in a single place within variables. For `--bearer` and `--base-url` you can specify a value or leave them empty by default.
32+
- `--structured` generates routes in folders based on their namespace
33+
- `--bearer=<token>` generates a token variable in Postman for the specified token
34+
- `--base-url=<base_url>` defaults to https://api.example.com/ unless specified
3335

3436
## Contributing
3537

src/ExportPostman.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function handle(): void
3333
{
3434
$structured = $this->option('structured') ?? false;
3535
$baseUrl = $this->option('base-url') ?? 'https://api.example.com/';
36-
$bearer = $this->option('bearer') ?? '1|token';
36+
$bearer = $this->option('bearer') ?? false;
3737

3838
$this->routes = [
3939
'variable' => [

0 commit comments

Comments
 (0)