{"swagger":"2.0","info":{"title":"PKHub API","version":"0.0.1","description":"Retrieve group secrets, logins, envs ...."},"produces":["application/json"],"consumes":["application/json"],"basePath":"/","paths":{"/api/v1/safes/secret":{"get":{"tags":["api"],"parameters":[{"in":"header","name":"authorization","description":"AppKey:AppSecret or Basic: base64(user:pass)","required":true,"type":"string"},{"in":"query","name":"safe","description":"","required":true,"type":"string"},{"in":"query","name":"lbls","description":"","required":true,"type":"array","items":{"type":"string"},"collectionFormat":"multi"}],"responses":{"200":{"schema":{"type":"array","items":{"$ref":"#/definitions/Secret"}},"description":""}},"summary":"Return each secret specified by a lbl entry, max 100"}},"/api/v1/safes/logins":{"get":{"tags":["api"],"parameters":[{"in":"header","name":"authorization","description":"AppKey:AppSecret or Basic: base64(user:pass)","required":true,"type":"string"},{"in":"query","name":"safe","description":"","required":true,"type":"string"},{"in":"query","name":"logins","description":"","required":true,"type":"array","items":{"type":"string"},"collectionFormat":"multi"},{"in":"query","name":"lbls","description":"","required":true,"type":"array","items":{"type":"string"},"collectionFormat":"multi"}],"responses":{"200":{"schema":{"type":"array","items":{"$ref":"#/definitions/Login"}},"description":""}},"summary":"Return each login that matches a login entry, max 100, logins will search for the login entry, use lbls to search by lbl"}},"/api/v1/safes/snippets":{"get":{"tags":["api"],"parameters":[{"in":"header","name":"authorization","description":"AppKey:AppSecret or Basic: base64(user:pass)","required":true,"type":"string"},{"in":"query","name":"safe","description":"","required":true,"type":"string"},{"in":"query","name":"lbls","description":"","required":true,"type":"array","items":{"type":"string"},"collectionFormat":"multi"}],"responses":{"200":{"schema":{"type":"array","items":{"$ref":"#/definitions/Snippet"}},"description":""}},"summary":"Return each snippet that matches a lbl (title) entry, max 100"}},"/api/v1/safes/certs":{"get":{"tags":["api"],"parameters":[{"in":"header","name":"authorization","description":"AppKey:AppSecret or Basic: base64(user:pass)","required":true,"type":"string"},{"in":"query","name":"safe","description":"","required":true,"type":"string"},{"in":"query","name":"lbls","description":"","required":true,"type":"array","items":{"type":"string"},"collectionFormat":"multi"}],"responses":{"200":{"schema":{"type":"array","items":{"$ref":"#/definitions/Certificate"}},"description":""}},"summary":"Return each certificate pair that matches a lbl (title) entry, max 100"}},"/api/v1/safes/envs":{"get":{"tags":["api"],"parameters":[{"in":"header","name":"authorization","description":"AppKey:AppSecret or Basic: base64(user:pass)","required":true,"type":"string"},{"in":"query","name":"safe","description":"","required":true,"type":"string"},{"in":"query","name":"lbls","description":"","required":true,"type":"array","items":{"type":"string"},"collectionFormat":"multi"}],"responses":{"200":{"schema":{"type":"array","items":{"$ref":"#/definitions/Env"}},"description":""}},"summary":"Return each environment that matches a lbl entry, max 100"}},"/api/v1/safes/dbs":{"get":{"tags":["api"],"parameters":[{"in":"header","name":"authorization","description":"AppKey:AppSecret or Basic: base64(user:pass)","required":true,"type":"string"},{"in":"query","name":"safe","description":"","required":true,"type":"string"},{"in":"query","name":"lbls","description":"","required":true,"type":"array","items":{"type":"string"},"collectionFormat":"multi"}],"responses":{"200":{"schema":{"type":"array","items":{"$ref":"#/definitions/DB"}},"description":""}},"summary":"Return each db that matches a lbl entry, max 100"}}},"tags":[{"name":"api","description":"Retrieve group secrets, logins, envs ..."}],"definitions":{"Certificate":{"type":"object","properties":{"lbl":{"type":"string"},"pub-key":{"type":"string"},"priv-key":{"type":"string"}},"additionalProperties":false,"required":["lbl"]},"DB":{"type":"object","properties":{"lbl":{"type":"string"},"type":{"type":"string"},"hosted-on":{"type":"string"},"host":{"type":"string"},"port":{"type":"string"},"database":{"type":"string"},"dbuser":{"type":"string"},"password":{"type":"string"}},"additionalProperties":false,"required":["lbl"]},"Env":{"type":"object","properties":{"lbl":{"type":"string"},"val":{"type":"string"}},"additionalProperties":false,"required":["lbl"]},"Login":{"type":"object","properties":{"lbl":{"type":"string"},"login":{"type":"string"},"user-name":{"type":"string"},"user-name2":{"type":"string"},"secret":{"type":"string"}},"additionalProperties":false},"Secret":{"type":"object","properties":{"lbl":{"type":"string"},"val":{"type":"string"}},"additionalProperties":false,"required":["lbl"]},"Snippet":{"type":"object","properties":{"title":{"type":"string"},"val":{"type":"string"}},"additionalProperties":false,"required":["title"]}}}