{"openapi":"3.0.0","info":{"title":"SecureVault API","version":"1.0","description":"Encrypted vault storage and session management.","contact":{"email":"contact@shivam-karn.com.np"}},"servers":[{"url":"https://securevault.shivamkarn.workers.dev","description":"Production"},{"url":"http://localhost:8787","description":"Local"}],"components":{"schemas":{},"parameters":{}},"paths":{"/api/vault":{"get":{"tags":["Vault"],"summary":"Get all vault entries","responses":{"200":{"description":"List of vault entries"},"401":{"description":"Unauthorized"}}},"post":{"tags":["Vault"],"summary":"Create a vault Entry","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":2,"maxLength":200},"username":{"type":"string","minLength":2,"maxLength":30},"password":{"type":"string","minLength":7,"maxLength":60},"url":{"type":"string"},"notes":{"type":"string"}},"required":["label","username","password"]}}}},"responses":{"200":{"description":"Vault entry created"},"400":{"description":"Validation Error"},"401":{"description":"Unauthorized"}}}},"/api/vault/{id}":{"get":{"tags":["Vault"],"summary":"Get single Vault with decrypted password","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Vault entry with decrypted password"},"401":{"description":"Unauthoried"},"404":{"description":"Not Found"}}},"patch":{"tags":["Vault"],"summary":"Update a vault Entry","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":2,"maxLength":200},"username":{"type":"string","minLength":2,"maxLength":30},"password":{"type":"string","minLength":7,"maxLength":60},"url":{"type":"string"},"notes":{"type":"string"}}}}}},"responses":{"200":{"description":"Vault entry updated"},"400":{"description":"Validation Error"},"401":{"description":"Unauthorized"},"404":{"description":"Not Found"}}},"delete":{"tags":["Vault"],"summary":"Delete a Vault Entry","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Vault entry deleted"},"401":{"description":"Unauthoried"},"404":{"description":"Not Found"}}}},"/api/sessions":{"get":{"tags":["Session"],"summary":"Get all sessions","responses":{"200":{"description":"List of Sessions"},"401":{"description":"Unauthorized"}}}},"/api/sessions/{id}":{"delete":{"tags":["Session"],"summary":"Revoke a session","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Sessoin Revoked"},"401":{"description":"Unauthorized"},"404":{"description":"Not Found"}}}}}}