mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-03-13 02:56:08 +03:00
Provide example for action summary and description
This commit is contained in:
parent
393a6c061e
commit
c30fb4c984
@ -123,6 +123,10 @@ To document your routes, you can use the SwaggerPHP annotations and the
|
|||||||
class UserController
|
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"})
|
* @Route("/api/{user}/rewards", methods={"GET"})
|
||||||
* @SWG\Response(
|
* @SWG\Response(
|
||||||
* response=200,
|
* 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
|
Use models
|
||||||
----------
|
----------
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user