Repository navigation
Conversation
b-admike
left a comment
There was a problem hiding this comment.
Awesome 💯. I've left some comments, but LGTM overall.
| redirect requests to this function when the path and verb match. | ||
| - `@requestBody()` associates the OpenAPI schema for a Todo with the body of the | ||
| request so that LoopBack can validate the format of an incoming request | ||
| (**Note**: As of this writing, schematic validation is not yet functional). |
There was a problem hiding this comment.
Can we remove the Note stating schematic validation isn't available yet since it is now?
| ### Putting it all together | ||
|
|
||
| We've got all of our artifacts now, and all that's left is to bind them to our | ||
| We've got all of our artifacts now, and they are all automatically bind to our |
| list of available datasources. | ||
|
|
||
| ```sh | ||
| | => lb4 repository |
There was a problem hiding this comment.
nitpick: can we clean this up a bit to match the format of the other CLI snippets?
| @@ -24,67 +24,29 @@ For more information about Repositories, see | |||
|
|
|||
| ### Create your repository | |||
There was a problem hiding this comment.
We should explain what a repository is and why it is required. LB3 users not familiar with this concept will be left wondering about the "added complexity".
There was a problem hiding this comment.
isn't it explained already here https://loopback.io/doc/en/lb4/Repositories.html ?
There was a problem hiding this comment.
@hacksparrow, there is a section above the Create your repository that explains what a repository is. What I've removed is the details that what the index.ts used for.
|
@slnode test please |
2f430b9 to
dd243e9
Compare
| we'll need to build the [Controller](todo-tutorial-controller.md) to handle our | ||
| incoming requests. | ||
| The newly created `todo.repository.ts` class has the necessary connections that | ||
| are needed to perform CRUD operations for our to-do model. It leverages the |
03ab6c1 to
cc7c3c3
Compare
Description
There are a few areas in the todo tutorial that I've modified in this PR to keep it up-to-date:
lb4 repositoryinsteadFixes #1827