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

Model generator should be called API generator and docs improvement #238

@Fr33maan

Description

@Fr33maan

Hi,

I experienced something very strange with model names like coach and person.
Their pluralized forms are coaches and people (try it there) so I tried to create ressources by posting to ``v1/coachesorv1/people` which give me the following response :

{
  "code": "OK",
  "message": "Operation is successfully executed",
  "data": {}
}

Off course, nothing is created, this is not the standard response for ressource creation.

I tried to set pluralize : false and if I ping non pluralized route I get the same response and nothing gets created.

How can I use thoses model names ?

Note that blueprint routes works perfectly in native sails so I guess it comes from the PluralizeHook or other code from this module ?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions