Skip to content

Commit 9faebbf

Browse files
authored
Merge pull request #50 from RonasIT/31_add_description_of_the_request_fields_to_readme
#31:- add description of the request fields to readme
2 parents 9e49322 + d418323 commit 9faebbf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

readme.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ to display the generated documentation for a config.
7070
* <strong>all_cities_available</strong> of user
7171
*
7272
* @_204 Successful MF!
73+
*
74+
* @some_field Description of this field from the rules method
7375
*/
7476
class UpdateUserDataRequest extends FormRequest
7577
{
@@ -91,6 +93,7 @@ to display the generated documentation for a config.
9193
public function rules()
9294
{
9395
return [
96+
'some_field' => 'string',
9497
'all_cities_available' => 'boolean',
9598
'free_comparison' => 'boolean'
9699
];
@@ -102,6 +105,7 @@ to display the generated documentation for a config.
102105
- **@summary** - short description of request
103106
- **@description** - Implementation Notes
104107
- **@_204** - Custom description of code of response. You can specify any code as you want.
108+
- **@some_field** - Description of this field from the rules method
105109

106110
If you do not create a class Request, the summary, Implementation Notes and parameters will be empty.
107111
Plugin will collect codes and examples of responses only.

0 commit comments

Comments
 (0)