この記事は、温かみのある手作業で swagger-php の annotation を書かなければいけない人向けに、コピペで使えるannotationを提供する目的でまとめます。 単なる key value 表現のannotation 出力例 { "id": "1", "name": "サンプル太郎", "email": "example@hoge.com", "created_at": "2006-04-13T14:12:53+09:00" } /** * @OA\Get( * tags={"Common"}, * path="/api/user", * @OA\Response( * response="200", * description="success", * @OA\JsonContent(ref="#/components/schemas/user_responder")