mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 11:09:26 +03:00
Merge pull request #1177 from nelmio/method-annotation-doc-improve
Provide example for action summary and description
This commit is contained in:
commit
4bd1b3ebe6
@ -123,6 +123,10 @@ To document your routes, you can use the SwaggerPHP annotations and the
|
||||
class UserController
|
||||
{
|
||||
/*
|
||||
* List the rewards of the specified user.
|
||||
*
|
||||
* This call takes into account all confirmed awards, but not pending or refused awards.
|
||||
*
|
||||
* @Route("/api/{user}/rewards", methods={"GET"})
|
||||
* @SWG\Response(
|
||||
* response=200,
|
||||
@ -146,6 +150,8 @@ To document your routes, you can use the SwaggerPHP annotations and the
|
||||
}
|
||||
}
|
||||
|
||||
The normal PHP docblock for the controller method is used for the summary and description.
|
||||
|
||||
Use models
|
||||
----------
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user