From 9d15d20a1b3ba4d1515edc250859b2ed746bf208 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Tue, 4 Apr 2023 13:30:13 +1000 Subject: [PATCH] [ci skip] readme --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0f51fd4..05c7f37 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,7 @@ Must be logged in to execute this command. Role of current user cannot be a Read If a secret exists for this RoleId and matching deviceName and deviceCategory then an error will be generated. #### Retrieve -GET `/api/secret/retrieve` +POST `/api/secret/retrieve` Data ``` @@ -125,6 +125,16 @@ Either deviceName or deviceCategory can be specified (or both). Wildcards are su 1. The percent sign % wildcard matches any sequence of zero or more characters. 2. The underscore _ wildcard matches any single character. +GET `/api/secret/retrieve/name/` + +Search for a secret specified by deviceName using a GET request. +Must be logged in to execute this command. Only secrets registered with the current user's RoleId can be retrieved. + +GET `/api/secret/retrieve/category/` + +Search for a secret specified by deviceCategory using a GET request. +Must be logged in to execute this command. Only secrets registered with the current user's RoleId can be retrieved. + #### Update POST `/api/secret/update`