Skip to content
Commits on Source (1)
......@@ -16,6 +16,12 @@ class Configuration implements ConfigurationInterface
->children()
->scalarNode('build_info')->end()
->scalarNode('build_info_url')->end()
->scalarNode('docs_title')
->defaultValue('Relay API Gateway')
->end()
->scalarNode('docs_description') // This supports markdown
->defaultValue('*part of the [Digital Blueprint](https://gitlab.tugraz.at/dbp) project*')
->end()
->end();
return $treeBuilder;
......
......@@ -36,8 +36,12 @@ class DbpCoreExtension extends ConfigurableExtension implements PrependExtension
}
}
$configs = $container->getExtensionConfig($this->getAlias());
$config = $this->processConfiguration(new Configuration(), $configs);
$container->loadFromExtension('api_platform', [
'title' => 'DBP API Gateway',
'title' => $config['docs_title'],
'description' => $config['docs_description'],
'defaults' => [
'cache_headers' => [
'etag' => true,
......@@ -129,8 +133,6 @@ class DbpCoreExtension extends ConfigurableExtension implements PrependExtension
'exception_controller' => null,
]);
$config = $container->getExtensionConfig($this->getAlias())[0];
// In case another bundle wants to inject twig globals
$twigGlobals = [];
if ($container->hasParameter('dbp_api.twig_globals')) {
......
......@@ -18,6 +18,11 @@ header {
color: #555;
}
#swagger-ui.api-platform .info .description {
padding-left: 60px;
margin-top: -15px;
}
.swagger-ui .auth-wrapper .authorize {
display: none;
}
......