Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve defineCrudRestController to create a named controller class #3732

Closed
4 tasks done
bajtos opened this issue Sep 13, 2019 · 1 comment
Closed
4 tasks done

Improve defineCrudRestController to create a named controller class #3732

bajtos opened this issue Sep 13, 2019 · 1 comment
Assignees
Labels
feature REST Issues related to @loopback/rest package and REST transport in general

Comments

@bajtos
Copy link
Member

bajtos commented Sep 13, 2019

This is a follow-up for the spike #3617.

Improve @loopback/rest-crud - modify defineCrudRestController to create a named controller class, where the name is based on the model name we are creating the controller for.

Example implementation:

https://github.com/strongloop/loopback-next/blob/2848a1b3e4c62da88cfd3edc966e8267768cf326/packages/rest-crud/src/crud-rest.controller.ts#L260-L267

Acceptance criteria

  • Implementation
  • Automated tests
  • Update API docs
  • Update the example code in rest-crud README
@hacksparrow
Copy link
Contributor

Closed via #3842

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature REST Issues related to @loopback/rest package and REST transport in general
Projects
None yet
Development

No branches or pull requests

3 participants