Skip to content

Commit

Permalink
feat: Configure getByPath operation for each API platform resource
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Apr 6, 2022
1 parent c60ba01 commit 9f723de
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions config/api_resources/nsarticle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,20 @@ App\GeneratedEntity\NSArticle:
- tag_base
- translation_base
- document_display

getByPath:
normalization_context:
groups:
- web_response
- position
- walker
- walker_level
- walker_metadata
- meta
- children
- children_count
- nodes_sources
- urls
- tag_base
- translation_base
- document_display
17 changes: 17 additions & 0 deletions config/api_resources/nspage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,20 @@ App\GeneratedEntity\NSPage:
- tag_base
- translation_base
- document_display

getByPath:
normalization_context:
groups:
- web_response
- position
- walker
- walker_level
- walker_metadata
- meta
- children
- children_count
- nodes_sources
- urls
- tag_base
- translation_base
- document_display

0 comments on commit 9f723de

Please sign in to comment.