Skip to content

Conversation

@nabdelgadir
Copy link
Contributor

@nabdelgadir nabdelgadir commented Mar 7, 2020

Closes #3738.

This is an example showing how to use CrudRestApiBuilder along with the Todo example in order to create the default repository and controller. The repository and controller classes can now be removed and replaced with a ModelCrudRestApiConfig configuration and adding CrudRestComponent to the application.

Important files to review:

Checklist

👉 Read and sign the CLA (Contributor License Agreement) 👈

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in examples/* were updated

👉 Check out how to submit a PR 👈

@nabdelgadir nabdelgadir self-assigned this Mar 7, 2020
@nabdelgadir nabdelgadir force-pushed the restcrud-example branch 3 times, most recently from e476aa8 to 00234bb Compare March 8, 2020 02:19
@nabdelgadir nabdelgadir changed the title feat(example-crud-rest): add example showing CrudRestApiBuilder feat(example-rest-crud): add example showing CrudRestApiBuilder Mar 10, 2020
@nabdelgadir nabdelgadir force-pushed the restcrud-example branch 2 times, most recently from c3a7d4d to a12bcdb Compare March 10, 2020 00:28
@nabdelgadir nabdelgadir marked this pull request as ready for review March 10, 2020 00:28
Copy link
Contributor

@agnes512 agnes512 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@nabdelgadir nabdelgadir added Examples REST Issues related to @loopback/rest package and REST transport in general labels Mar 10, 2020
Copy link
Contributor

@emonddr emonddr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Nora,

Great stuff. Just a couple questions

@nabdelgadir nabdelgadir requested a review from emonddr March 11, 2020 01:37
This is an example showing how to use `CrudRestApiBuilder` along with the Todo example in order to create the default repository and controller. The repository and controller classes can now be removed and replaced with a `ModelCrudRestApiConfig` configuration and adding `CrudRestComponent` to the application.
@nabdelgadir nabdelgadir merged commit ea37afb into master Mar 12, 2020
@nabdelgadir nabdelgadir deleted the restcrud-example branch March 12, 2020 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Examples REST Issues related to @loopback/rest package and REST transport in general

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Example app showing CrudRestApiBuilder

6 participants