| 1 | <?php |
||
| 15 | class OrganizerController extends RestController |
||
| 16 | { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * List all registered organizers |
||
| 20 | * @Route("s/{limit}/{offset}", name="organizers_list") |
||
| 21 | * @Method("GET") |
||
| 22 | * @ApiDoc( |
||
| 23 | * section="Organizer", |
||
| 24 | * statusCodes={ |
||
| 25 | * 200="OK", |
||
| 26 | * } |
||
| 27 | * ) |
||
| 28 | * @param int $limit Limit results. Default is 50 |
||
| 29 | * @param int $offset Starting serial number of result collection. Default is 0 |
||
| 30 | */ |
||
| 31 | 1 | public function listAction($limit = null, $offset = null): Response |
|
| 37 | |||
| 38 | /** |
||
| 39 | * View organizer by name |
||
| 40 | * @Route("/{organizerName}", name="organizer_view") |
||
| 41 | * @Method("GET") |
||
| 42 | * @ApiDoc( |
||
| 43 | * section="Organizer", |
||
| 44 | * statusCodes={ |
||
| 45 | * 200="Organizer was found", |
||
| 46 | * 404="Organizer with given name was not found", |
||
| 47 | * } |
||
| 48 | * ) |
||
| 49 | * @param string $organizerName organizer name |
||
| 50 | */ |
||
| 51 | 2 | public function viewAction(string $organizerName): Response |
|
| 55 | } |
||
| 56 |