Skip to content

Update controller class in package rest-crud when id is a required property #3728

@jannyHou

Description

@jannyHou

connect to #2036
This is a follow-up story of PR #3667.
As a quick fix, that PR fixes the controller generator by adding a new prompt isIdOmitted, and creating the corresponding controller class differently.

There are two more improvements which need more time to address, so I open a new issue here.

Suggestion

Update the controller class in @loopback/rest-crud to reflect the id property's configuration.

Acceptance criteria

  • Update the controller class in @loopback/rest-crud package, so that it generates the correct schema for id property. See discussion and discussion

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions