Browse Source

update-swagger-docs

set-sast-config-1 0.2.1
Ilya Fedorov 4 years ago
parent
commit
596642b2e5
  1. 4
      app/config/packages/nelmio_api_doc.yaml
  2. 8
      app/src/Controller/Api/v1/MattermostController.php

4
app/config/packages/nelmio_api_doc.yaml

@ -2,10 +2,10 @@
nelmio_api_doc:
documentation:
servers:
- url: http://127.0.0.1:8054
description: localhost API over HTTP
- url: https://notification-provider.fedy95.com
description: server API over HTTPS
- url: http://127.0.0.1:8054
description: localhost API over HTTP
info:
title: notification-provider
description: notification-provider api doc

8
app/src/Controller/Api/v1/MattermostController.php

@ -37,8 +37,8 @@ class MattermostController extends AbstractController
* Send message to a mattermost chat from alertmanager.
*
* Docs <br>
* - https://prometheus.io/docs/alerting/latest/configuration/#webhook_config <br>
* - https://docs.mattermost.com/developer/webhooks-incoming.html
* - <a href="https://grafana.com/docs/grafana/latest/alerting/old-alerting/notifications/#webhook" target="_blank">alertmanager</a> <br>
* - <a href="https://docs.mattermost.com/developer/webhooks-incoming.html" target="_blank">mattermost</a> <br>
*
* @Route("/api/v1/send_message/alertmanager", methods={"POST"})
* @OA\Tag(name="mattermost")
@ -78,8 +78,8 @@ class MattermostController extends AbstractController
* Send message to a mattermost chat from grafana.
*
* Docs <br>
* - https://grafana.com/docs/grafana/latest/alerting/old-alerting/notifications/#webhook <br>
* - https://docs.mattermost.com/developer/webhooks-incoming.html
* - <a href="https://grafana.com/docs/grafana/latest/alerting/old-alerting/notifications/#webhook" target="_blank">grafana</a> <br>
* - <a href="https://docs.mattermost.com/developer/webhooks-incoming.html" target="_blank">mattermost</a> <br>
*
* @Route("/api/v1/send_message/grafana", methods={"POST"})
* @OA\Tag(name="mattermost")

Loading…
Cancel
Save