From 1b57bcf0fc977dd0a7e8cca329887fb2fc6015f9 Mon Sep 17 00:00:00 2001 From: Jan David Mol Date: Wed, 20 Apr 2022 08:55:43 +0200 Subject: [PATCH] Updated documentation for PUT/PATCH/DELETE methods --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1a0c85a..fe711e0 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ It provides a simple Grafana 7.x panel that shows only one button - to integrate with any kind of HTTP/REST API: -* Support `GET` and `POST` HTTP verb +* Support `GET`, `POST`, `PUT`, `PATCH` and `DELETE` HTTP verb * Adds no new javascript dependencies * Uses standard browser APIs and respects CORS * Optional text payload for `POST` requests via syntax-highlighiting editor @@ -14,7 +14,7 @@ It provides a simple Grafana 7.x panel that shows only one button - to integrate * Variable support via `$variableName` in * URL * Header/Query parameter name & value - * POST body payload + * POST/PUT/PATCH body payload * Button label * Support for HTTP Basic Auth * Custom label text & Grafana template design @@ -38,7 +38,7 @@ Due to the Grafana API & security restrictions in modern browsers the following * Neither username nor password are stored encryted in Grafana. The password is there to everyone with access to the dashboard in Grafana! * The *server* at the URL _must_ provide proper resposne to the [CORS pre-flight request](https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request). That is: - * Provide a proper response to the `OPTIONS` request performed by the browser before the actual `GET`/`POST` requiest is issued + * Provide a proper response to the `OPTIONS` request performed by the browser before the actual `GET`/`POST`/`PUT`/`PATCH`/`DELETE` request is issued * Provide a [`Access-Control-Allow-Credentials: true`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials) header * Provide a proper [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin) header. _No wildcards_ are allowed if credentials are used!