From 3ad95956864a8b8727dc3661e208e04b688baf8e Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 8 Apr 2015 09:51:32 -0400 Subject: Allow to filter by keytype on key GET --- API.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'API.md') diff --git a/API.md b/API.md index a2f7cba..b7395ab 100644 --- a/API.md +++ b/API.md @@ -53,11 +53,15 @@ Getting keys A GET operation with the name of the key: GET /secrets/name/of/key +A query parameter named 'type' can be provided, in that case the key is +returned only if it matches the requested type. + Returns: - 200 and a JSON formatted key in case of success. - 401 if authentication is necessary - 403 if access to the key is forbidden - 404 if no key was found +- 406 not acceptable, key exists but does not match type requested Storing keys -- cgit