forked from andreaselia/laravel-api-to-postman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api-postman.php
90 lines (71 loc) · 1.58 KB
/
api-postman.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
return [
/*
* Base URL.
*
* The base URL for all of your endpoints.
*/
'base_url' => env('APP_URL', 'http://localhost'),
/*
* Collection filename.
*
* The name for the collection file to be saved.
*/
'filename' => '{timestamp}_{app}_collection.json',
/*
* Structured.
*
* If you want folders to be generated based on namespace.
*/
'structured' => false,
/*
* Auth Middleware.
*
* The middleware which wraps your authenticated API routes.
*
* E.g. auth:api, auth:sanctum
*/
'auth_middleware' => 'auth:api',
/*
* Headers.
*
* The headers applied to all routes within the collection.
*/
'headers' => [
[
'key' => 'Accept',
'value' => 'application/json',
],
[
'key' => 'Content-Type',
'value' => 'application/json',
],
],
/*
* Enable Form Data.
*
* Determines whether or not form data should be handled.
*/
'enable_formdata' => false,
/*
* Form Data.
*
* The key/values to requests for form data dummy information.
*/
'formdata' => [
// 'email' => '[email protected]',
// 'password' => 'changeme',
],
/*
* Include Middleware.
*
* The middleware items you want to include for export.
*/
'include_middleware' => ['api'],
/*
* Disk Driver.
*
* Specify the configured disk for storing the postman collection file.
*/
'disk' => 'local',
];