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

Extension: CrudRestController #2736

Closed
4 tasks done
bajtos opened this issue Apr 12, 2019 · 3 comments
Closed
4 tasks done

Extension: CrudRestController #2736

bajtos opened this issue Apr 12, 2019 · 3 comments
Assignees
Labels
Extensions feature parity feature REST Issues related to @loopback/rest package and REST transport in general

Comments

@bajtos
Copy link
Member

bajtos commented Apr 12, 2019

Part of From model definition to REST API with no custom repository/controller classes #2036

A new extension (npm package living in loopback-next monorepo) providing CrudController class. See #740 for inspiration.

Acceptance criteria

  • A new extension (let's call it @loopback/rest-crud) providing a base Controller class (let's call it CrudRestController) implementing typical CRUD operations using CrudRepository injected via constructor argument.

  • The methods provided by the controller should be exactly the same as we are scaffolding via lb4 controller

  • Minimal documentation - a "Basic Use" section in extension package's README is enough.

  • Test coverage, including end-to-end tests (making HTTP requests to an app).

Out of scope

@bajtos
Copy link
Member Author

bajtos commented Aug 20, 2019

@bajtos
Copy link
Member Author

bajtos commented Aug 20, 2019

Pull request in progress: #3582 Early feedback welcome!

@bajtos
Copy link
Member Author

bajtos commented Aug 27, 2019

Closing as done.

@bajtos bajtos closed this as completed Aug 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Extensions feature parity feature REST Issues related to @loopback/rest package and REST transport in general
Projects
None yet
Development

No branches or pull requests

4 participants