Skip to content

Commit

Permalink
Add API for the feed and submission IDs
Browse files Browse the repository at this point in the history
Adds three public CORS-enabled endpoints:
* /api.json - OpenAPI specification
* /api/feed/{lang} - feed for a given language
* /api/case/{submissionId} - info on a specific case

Interactive docs browsable at /api

Bug: T354324
  • Loading branch information
MusikAnimal committed Feb 14, 2024
1 parent 4a1cafc commit 1aa47a1
Show file tree
Hide file tree
Showing 14 changed files with 1,055 additions and 49 deletions.
10 changes: 5 additions & 5 deletions .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ REPLICAS_PORT_S7=4717
REPLICAS_PORT_S8=4718

# Credentials for CopyPatrol database
TOOLSDB_HOST=127.0.0.1
TOOLSDB_PORT=4720
TOOLSDB_USERNAME=
TOOLSDB_PASSWORD=
COPYPATROL_DB_NAME=s52615__copypatrol_migrate_test_02_p
TROVE_HOST=127.0.0.1
TROVE_PORT=4721
TROVE_USERNAME=
TROVE_PASSWORD=
COPYPATROL_DB_NAME=

APP_ENABLED_LANGS=ar,en,es,fr,simple
APP_NOTICE_TEXT=
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
/.env.local.php
/.env.*.local
/config/secrets/prod/prod.decrypt.private.php
/public/bundles/
/var/
/vendor/
###< symfony/framework-bundle ###
Expand Down
9 changes: 6 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,23 @@
],
"require": {
"php": ">=7.4",
"ext-apcu": "*",
"ext-ctype": "*",
"ext-iconv": "*",
"ext-json": "*",
"ext-intl": "*",
"ext-apcu": "*",
"ext-json": "*",
"doctrine/annotations": "^2.0",
"doctrine/doctrine-bundle": "^2.2",
"nelmio/api-doc-bundle": "^4.20",
"nelmio/cors-bundle": "^2.4",
"phpxmlrpc/phpxmlrpc": "^4.10",
"symfony/asset": "5.4.*",
"symfony/dotenv": "^5.4",
"symfony/expression-language": "^5.4",
"symfony/flex": "^1.3.1",
"symfony/framework-bundle": "^5.4",
"symfony/monolog-bundle": "^3.7",
"symfony/twig-bundle": "^5.4",
"symfony/twig-bundle": "5.4.*",
"symfony/webpack-encore-bundle": "^1.16",
"symfony/yaml": "^5.4",
"wikimedia/toolforge-bundle": "dev-trove"
Expand Down
Loading

0 comments on commit 1aa47a1

Please sign in to comment.