-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Update examples/todo-list to leverage recently added features moving us closer to full inclusion of related models.
See the spike #2592 for more details.
Acceptance criteria
-
Define
{Model}Relationsinterfaces and{Model}WithRelationstypes -
Update
{Model}Repositoryimplementations to use these new interfaces -
Update repositories to include related models: overwrite
findandfindByIdmethods, add a hard-coded retrieval of related models. This part depends on Modify Repositoryfind*methods to include navigational properties #2632Include a comment explaining that the example implementation is temporary and add a link to the GitHub issue tracking the work needed to implement production-grade inclusion resolver.
-
Add test coverage at repository level (integration tests)
-
Update response schemas for controller methods
findandfindByIdto leveragegetModelSchemaRefandincludeRelations. This part depends on ImplementgetJsonSchemaRefandgetModelSchemaRefhelpers #2631 and EnhancegetJsonSchemato describe navigational properties #2630 -
Add acceptance-level tests to verify inclusion of related models via REST API
-
Update Todo List Tutorial