Serves Concord repositories as static resources.
Add the plugin JAR to the concord-server classpath and use the following endpoint:
GET /api/plugin/repositorybrowser/v1/{orgName}/{projectName}/{repositoryName}/{filePath:*}
For example:
curl -X 'Authorization: <your_concord_token>' http://localhost:8001/api/plugin/repositorybrowser/v1/Acme/prod/my-assets/assets/logo.png
will fetch assets/logo.png from the configured repository named "my-assets", located in the project "prod" and the organization "Acme".
filePath
patterns must be added to the project configuration:
{
"_plugin": {
"repository-browser": {
"allowList": {
"my-assets": [
".*\\.png"
]
}
}
}
}
Results are cached for 5 minutes.