Skip to content

The path of "@OA\Get(" is wrong in "bin/cake bake controller HogeHoges —prefix api". #5

Open

Description

@yuki-yasumura

It seems that baking the controller with bake does not generate the expected comments if prefixes are present.

I feel it is a bug and will report it.

path is path="//.json". But I wont to path="/api/HogeHoges/index.json"

ex)

* @OA\Get(
     *     path="//.json",
     *     summary="HogeHoges index",
     *     description="HogeHoges index",
     *     @OA\Parameter(
     *         name="page",
     *         in="query",
     *         required=false,
     *         @OA\Schema(
     *             type="number",
     *         ),

Activity

  1. changed the title [-]The `path` of `@OA\Get(` is wrong in `bin/cake bake controller HogeHoges —prefix api`.[/-] [+]The `path` of "`@OA\Get(`" is wrong in `bin/cake bake controller HogeHoges —prefix api`.[/+] on Apr 13, 2022
  2. changed the title [-]The `path` of "`@OA\Get(`" is wrong in `bin/cake bake controller HogeHoges —prefix api`.[/-] [+]The `path` of "`@OA\Get(`" is wrong in "`bin/cake bake controller HogeHoges —prefix api`".[/+] on Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions