new api 2.0

This commit is contained in:
daniel 2024-02-08 15:32:58 +01:00
parent 019f5d9bbb
commit d7172a5308
2 changed files with 12 additions and 22 deletions

View File

@ -2,17 +2,7 @@
"openapi": "3.0.0", "openapi": "3.0.0",
"info": { "info": {
"title": "API Pandora FMS", "title": "API Pandora FMS",
"description": "Documentacion para desarrolladores de la nueva api de pandora fms.", "description": "<p>This is the new API framework for Pandora FMS.</p>\n<p>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.</p>\n<p>Using this web interface, you can play around and see how it works each endpoint interactively.</p>\n\nMore useful links:\n\n* <a target='_blank' href='https://pandorafms.com/en/pandora-fms-license-2024_en/'>Pandora FMS Licence </a>\n* <a target='_blank' href='https://support.pandorafms.com'> Pandora FMS Official Support </a>\n* <a target='_blank' href='https://pandorafms.com/en/community/'> Pandora FMS Community </a>\n* <a target='_blank' href='https://pandorafms.com/en/security/vulnerability-disclosure-policy/'> Vulnerability Disclosure Policy </a>\n* <a target='_blank' href='https://pandorafms.com/en/faq/'> Pandora FMS FAQ </a>",
"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"
},
"version": "0.0.1" "version": "0.0.1"
}, },
"servers": [ "servers": [

View File

@ -7,17 +7,17 @@ use OpenApi\Annotations as OA;
/** /**
* @OA\Info( * @OA\Info(
* title="API Pandora FMS", * title="API Pandora FMS",
* description="Documentacion para desarrolladores de la nueva api de pandora fms.", * description="<p>This is the new API framework for Pandora FMS.</p>
* termsOfService="https://example.com/terms/", <p>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.</p>
* @OA\Contact( <p>Using this web interface, you can play around and see how it works each endpoint interactively.</p>
* name="Pandorafms",
* url="https://pandorafms.com/", More useful links:
* email="info@pandorafms.com"
* ), * <a target='_blank' href='https://pandorafms.com/en/pandora-fms-license-2024_en/'>Pandora FMS Licence </a>
* @OA\License( * <a target='_blank' href='https://support.pandorafms.com'> Pandora FMS Official Support </a>
* name="Apache 2.0", * <a target='_blank' href='https://pandorafms.com/en/community/'> Pandora FMS Community </a>
* url="https://www.apache.org/licenses/LICENSE-2.0.html" * <a target='_blank' href='https://pandorafms.com/en/security/vulnerability-disclosure-policy/'> Vulnerability Disclosure Policy </a>
* ), * <a target='_blank' href='https://pandorafms.com/en/faq/'> Pandora FMS FAQ </a>",
* version="0.0.1" * version="0.0.1"
* ), * ),
* @OA\Schemes( * @OA\Schemes(