Skip to content

Commit

Permalink
[7-25] 公演情報APIエンドポイントのAPIドキュメント設定
Browse files Browse the repository at this point in the history
  • Loading branch information
hidenorigoto committed Dec 28, 2015
1 parent de7cfca commit 8462c5a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/lists/ch07/07-25.txt
@@ -0,0 +1,11 @@
...
use Nelmio\ApiDocBundle\Annotation\ApiDoc;

class ConcertController extends FOSRestController
{
/**
* @ApiDoc(
* description="公演情報の一覧を取得します"
* )
*/
public function getConcertsAction()
6 changes: 6 additions & 0 deletions src/AppBundle/Controller/Api/ConcertController.php
Expand Up @@ -2,9 +2,15 @@
namespace AppBundle\Controller\Api;

use FOS\RestBundle\Controller\FOSRestController;
use Nelmio\ApiDocBundle\Annotation\ApiDoc;

class ConcertController extends FOSRestController
{
/**
* @ApiDoc(
* description="公演情報の一覧を取得します"
* )
*/
public function getConcertsAction()
{
$em = $this->get('doctrine')->getManager();
Expand Down

0 comments on commit 8462c5a

Please sign in to comment.