From d7172a5308b7698bcd25e8500bf46cebd78e671d Mon Sep 17 00:00:00 2001 From: daniel Date: Thu, 8 Feb 2024 15:32:58 +0100 Subject: [PATCH] new api 2.0 --- pandora_console/api/v1/public/swagger.json | 12 +--------- .../Modules/Shared/Documentation/OpenApi.php | 22 +++++++++---------- 2 files changed, 12 insertions(+), 22 deletions(-) diff --git a/pandora_console/api/v1/public/swagger.json b/pandora_console/api/v1/public/swagger.json index 50fd6c05f2..8774e6db96 100644 --- a/pandora_console/api/v1/public/swagger.json +++ b/pandora_console/api/v1/public/swagger.json @@ -2,17 +2,7 @@ "openapi": "3.0.0", "info": { "title": "API Pandora FMS", - "description": "Documentacion para desarrolladores de la nueva api de pandora fms.", - "termsOfService": "https://example.com/terms/", - "contact": { - "name": "Pandorafms", - "url": "https://pandorafms.com/", - "email": "info@pandorafms.com" - }, - "license": { - "name": "Apache 2.0", - "url": "https://www.apache.org/licenses/LICENSE-2.0.html" - }, + "description": "

This is the new API framework for Pandora FMS.

\n

The old API is deprecated but still functional, and not all old endpoints are supported in the new API, but new endpoints will be added in each release.

\n

Using this web interface, you can play around and see how it works each endpoint interactively.

\n\nMore useful links:\n\n* Pandora FMS Licence \n* Pandora FMS Official Support \n* Pandora FMS Community \n* Vulnerability Disclosure Policy \n* Pandora FMS FAQ ", "version": "0.0.1" }, "servers": [ diff --git a/pandora_console/include/lib/Modules/Shared/Documentation/OpenApi.php b/pandora_console/include/lib/Modules/Shared/Documentation/OpenApi.php index 98b63e8803..628cdc532a 100644 --- a/pandora_console/include/lib/Modules/Shared/Documentation/OpenApi.php +++ b/pandora_console/include/lib/Modules/Shared/Documentation/OpenApi.php @@ -7,17 +7,17 @@ use OpenApi\Annotations as OA; /** * @OA\Info( * title="API Pandora FMS", - * description="Documentacion para desarrolladores de la nueva api de pandora fms.", - * termsOfService="https://example.com/terms/", - * @OA\Contact( - * name="Pandorafms", - * url="https://pandorafms.com/", - * email="info@pandorafms.com" - * ), - * @OA\License( - * name="Apache 2.0", - * url="https://www.apache.org/licenses/LICENSE-2.0.html" - * ), + * description="

This is the new API framework for Pandora FMS.

+

The old API is deprecated but still functional, and not all old endpoints are supported in the new API, but new endpoints will be added in each release.

+

Using this web interface, you can play around and see how it works each endpoint interactively.

+ +More useful links: + +* Pandora FMS Licence +* Pandora FMS Official Support +* Pandora FMS Community +* Vulnerability Disclosure Policy +* Pandora FMS FAQ ", * version="0.0.1" * ), * @OA\Schemes(