Skip to content

Commit

Permalink
feat: added nsarticle archive operation
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Jun 24, 2022
1 parent 9408239 commit a73f0bb
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 10 deletions.
21 changes: 11 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"doctrine/annotations": "^1.0",
"doctrine/doctrine-bundle": "^2.3",
"doctrine/doctrine-migrations-bundle": "^3.1",
"doctrine/migrations": "^3.1.1",
"doctrine/orm": "^2.12.2",
"gedmo/doctrine-extensions": "^2.4 || ^3.0.0",
"inlinestyle/inlinestyle": "~1.2.7",
Expand Down Expand Up @@ -84,16 +85,16 @@
"symfony/maker-bundle": "^1.0",
"symfony/phpunit-bridge": "5.4.*",
"symfony/web-profiler-bundle": "5.4.*",
"roadiz/doc-generator": "~2.0.0 || dev-develop",
"roadiz/rozier": "~2.0.0 || dev-develop",
"roadiz/dts-generator": "~2.0.0 || dev-main",
"roadiz/openid": "~2.0.0 || dev-develop",
"roadiz/documents": "~2.0.0 || dev-develop",
"roadiz/entity-generator": "~2.0.0 || dev-main",
"roadiz/markdown": "~2.0.0 || dev-develop",
"roadiz/models": "~2.0.0 || dev-develop",
"roadiz/random": "~2.0.0 || dev-main",
"roadiz/jwt": "~2.0.0 || dev-main",
"roadiz/doc-generator": "dev-develop",
"roadiz/rozier": "dev-develop",
"roadiz/dts-generator": "dev-main",
"roadiz/openid": "dev-develop",
"roadiz/documents": "dev-develop",
"roadiz/entity-generator": "dev-main",
"roadiz/markdown": "dev-develop",
"roadiz/models": "dev-develop",
"roadiz/random": "dev-main",
"roadiz/jwt": "dev-main",
"roadiz/nodetype-contracts": "~1.1.0 || dev-main",
"rezozero/crypto": "^0.2.0",
"phpoffice/phpspreadsheet": "^1.15",
Expand Down
20 changes: 20 additions & 0 deletions config/api_resources/nsarticle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,26 @@ App\GeneratedEntity\NSArticle:
- tag_base
- translation_base
- document_display

archives:
method: 'GET'
path: '/articles/archives'
read: false
controller: RZ\Roadiz\CoreBundle\Api\Controller\NodesSourcesArchivesController
pagination_enabled: false
defaults:
resource_date_field: publishedAt
normalization_context:
pagination_enabled: false
groups:
- get
- archives
openapi_context:
summary: Get available Article archives
parameters: ~
description: |
Get available Article archives
itemOperations:
get:
method: GET
Expand Down

0 comments on commit a73f0bb

Please sign in to comment.