From 1757ffd8ee692c035346d8ab981cca6c373a8052 Mon Sep 17 00:00:00 2001 From: Kevin Papst Date: Mon, 2 Nov 2020 10:58:38 +0100 Subject: [PATCH] improved api docs styling (#2085) --- config/packages/nelmio_api_doc.yaml | 8 +------- .../bundles/NelmioApiDocBundle/SwaggerUi/index.html.twig | 4 ++++ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/config/packages/nelmio_api_doc.yaml b/config/packages/nelmio_api_doc.yaml index 197385c6..3fd94c47 100644 --- a/config/packages/nelmio_api_doc.yaml +++ b/config/packages/nelmio_api_doc.yaml @@ -41,16 +41,10 @@ nelmio_api_doc: path_patterns: - ^/api(?!/doc) documentation: - #host: '{{hostname}}' - host: '%router.request_context.host%' - basePath: '%router.request_context.base_url%' - schemes: ['%router.request_context.scheme%'] info: title: Kimai 2 - API Docs description: | - JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. - Be aware: it is not yet considered stable and BC breaks might happen, especially when using code generation. - The order of JSON attributes is not guaranteed. + JSON API for the Kimai 2 time-tracking software: [API documentation](https://www.kimai.org/documentation/rest-api.html), [Swagger definition file](doc.json) version: '0.6' securityDefinitions: apiUser: diff --git a/templates/bundles/NelmioApiDocBundle/SwaggerUi/index.html.twig b/templates/bundles/NelmioApiDocBundle/SwaggerUi/index.html.twig index 6b3f03bf..13cc61c6 100644 --- a/templates/bundles/NelmioApiDocBundle/SwaggerUi/index.html.twig +++ b/templates/bundles/NelmioApiDocBundle/SwaggerUi/index.html.twig @@ -5,5 +5,9 @@ {% endblock %} \ No newline at end of file