You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/documenting.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,19 @@ Note: a random value will be used as the value of each parameter in the example
97
97
*/
98
98
```
99
99
100
+
Note: To exclude a particular parameter from the generated examples (for all languages), you can annotate it with `No-example`. For instance:
101
+
```php
102
+
/**
103
+
* @queryParam location_id required The id of the location. Example: 1
104
+
* @queryParam user_id required The id of the user. No-example
105
+
* @queryParam page required The page number. Example: 4
106
+
*/
107
+
```
108
+
Outputs:
109
+
```bash
110
+
curl -X GET -G "https://example.com/api?location_id=1&page=4"
111
+
```
112
+
100
113
Note: You can also add the `@queryParam` and `@bodyParam` annotations to a `\Illuminate\Foundation\Http\FormRequest` subclass instead, if you are using one in your controller method
0 commit comments