Marlin是Redis上快速简单的ReSTAPI服务器。
快速开始:
pip install marlin # install marlin to the python environment.marlin-server start # start marlin server - port: 5000请求方法:
METHODURLRESPONSEDESCRIPTIONGET/api/v1/[model]?start=1&end=10[data]1-10returnsthe1-10elementsinthe[model]GET/api/v1/[model]/1dataitemreturnstheelementwithid1GET/ping/200/500checkifserviceisupandconnectedPOST/api/v1/[model]/[data]addsdatatothemodelPUT/api/v1/[model]/1/[data]editdataDELETE/api/v1/[model]/1200deletethedataitemDELETE/api/v1/[model]/-deletecompletedatainmodelDELETE/api/v1/[model]?force=1-deleteandresetmodel(startswithid=1
评论