mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
add cache examples
This commit is contained in:
36
cache/examples.json
vendored
Normal file
36
cache/examples.json
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
{
|
||||
"get": [{
|
||||
"title": "Get a value",
|
||||
"description": "Get returns a value from the cache",
|
||||
"request": {
|
||||
"key": "foo"
|
||||
},
|
||||
"response": {
|
||||
"key": "foo",
|
||||
"value": "bar",
|
||||
"ttl": 0
|
||||
}
|
||||
}],
|
||||
"set": [{
|
||||
"title": "Set a value",
|
||||
"description": "Set allows you to set a value",
|
||||
"request": {
|
||||
"key": "foo",
|
||||
"value": "bar"
|
||||
},
|
||||
"response": {
|
||||
"status": "ok"
|
||||
}
|
||||
}],
|
||||
"set": [{
|
||||
"title": "Delete a value",
|
||||
"description": "Delete a value from the cache",
|
||||
"request": {
|
||||
"key": "foo"
|
||||
},
|
||||
"response": {
|
||||
"status": "ok"
|
||||
}
|
||||
}]
|
||||
}
|
||||
Reference in New Issue
Block a user