From dabff403766a31ca25059558e296f6e311c17e8a Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Sun, 31 Jan 2021 18:50:00 +0100 Subject: [PATCH] Add doc/developer.md --- doc/developer.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 doc/developer.md diff --git a/doc/developer.md b/doc/developer.md new file mode 100644 index 0000000..0db18d0 --- /dev/null +++ b/doc/developer.md @@ -0,0 +1,18 @@ +## Developer Keys + +If you have a developer key, you can provide it in your queries +to get access to experimental cheat.sh features. +The developer key must be specified as the `X-Cheatsh-Key` header of the query. + +To check, if you key is valid, query `/:authorized`: + +``` +$ curl -H "X-Cheatsh-Key: 2ecf6cba-a8b2-04a7-7a51-XXXX" http://127.0.0.1:8002/:authorized +AUTHORIZED (developer) + +$ curl -H "X-Cheatsh-Key: 2ecf6cba-a8b2-04a7-7a51-YYYY" http://127.0.0.1:8002/:authorized +NOT AUTHORIZED +``` + +If you use editor plugins to access *cheat.sh*, see the plugin documentation +for information about key usage.