Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

How to generate controller code with distinct method names in case of prefix in paths #84

Open
@SOHELAHMED7

Description

@SOHELAHMED7

I have use-case like below

  • GET /calendar/domains - get all domains. Domain here is model and DB table. calendar is just the prefix
  • GET /calendar/domains/{id} - get a domain by ID.

Here the base controller generates:

    abstract public function actionDomains();

    abstract public function actionDomains($id);

Two method with same name leads to errors.

How can code generation for above end-points can be achieved?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions