Skip to content

Commit

Permalink
Added publication download endpoint with working pdf or zip download
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoLouwerse committed Aug 13, 2024
1 parent 6a66e00 commit 9f72b52
Show file tree
Hide file tree
Showing 6 changed files with 251 additions and 108 deletions.
1 change: 1 addition & 0 deletions appinfo/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
['name' => 'metadata#page', 'url' => '/metadata', 'verb' => 'GET'],
['name' => 'publications#page', 'url' => '/publications', 'verb' => 'GET'],
['name' => 'publications#attachments', 'url' => '/api/publications/{id}/attachments', 'verb' => 'GET', 'requirements' => ['id' => '.+']],
['name' => 'publications#download', 'url' => '/api/publications/{id}/download', 'verb' => 'GET', 'requirements' => ['id' => '.+']],
['name' => 'catalogi#page', 'url' => '/catalogi', 'verb' => 'GET'],
['name' => 'search#index', 'url' => '/search', 'verb' => 'GET'],
['name' => 'search#index', 'url' => '/api/search', 'verb' => 'GET'],
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@
},
"require": {
"php": "^8.1",
"ext-zip": "*",
"adbario/php-dot-notation": "^3.3.0",
"bamarni/composer-bin-plugin": "^1.8",
"elasticsearch/elasticsearch": "^v8.14.0",
"adbario/php-dot-notation": "^3.3.0",
"guzzlehttp/guzzle": "^7.0",
"mpdf/mpdf": "^8.2",
"symfony/twig-bundle": "^6.4",
Expand Down
5 changes: 3 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9f72b52

Please sign in to comment.