{"name":"Redis API","description":"A simple API to interact with Redis.","version":"1.0.0","endpoints":[{"path":"/set","method":"POST","description":"Set a key-value pair in Redis with an optional TTL.","request_body":{"type":"application/json","example":{"key":"user:123","value":"Nasim","ttlSeconds":3600}},"response":{"200":{"example":{"success":true,"data":{"key":"user:123","result":"OK"}}}}},{"path":"/get/:key","method":"GET","description":"Get the value for a given key.","response":{"200":{"example":{"success":true,"data":{"key":"user:123","value":"Nasim"}}},"404":{"example":{"success":false,"error":"Key not found","meta":{"key":"user:123"}}}}},{"path":"/del/:key","method":"DELETE","description":"Delete a key from Redis.","response":{"200":{"example":{"success":true,"data":{"key":"user:123","result":1}}},"404":{"example":{"success":false,"error":"Key not found","meta":{"key":"user:123"}}}}},{"path":"/keys","method":"GET","description":"List keys by pattern. Defaults to '*'.","query_params":{"example":{"pattern":"user:*"}},"response":{"200":{"example":{"success":true,"data":{"keys":["user:123","user:456"]}}}}},{"path":"/expire/:key","method":"POST","description":"Set expiration in seconds on a key.","request_body":{"type":"application/json","example":{"seconds":1800}},"response":{"200":{"example":{"success":true,"data":{"key":"user:123","result":true}}},"404":{"example":{"success":false,"error":"Key not found","meta":{"key":"user:123"}}}}}]}