Python Marlin 介绍
Marlin 是 Redis 上快速简单的 ReST API 服务器。
快速开始:
pip install marlin # install marlin to the python environment. marlin-server start # start marlin server - port: 5000
请求方法:
METHOD | URL | RESPONSE | DESCRIPTION |
---|---|---|---|
GET | /api/v1/[model]?start=1&end=10 | [data] 1-10 | returns the 1-10 elements in the [model] |
GET | /api/v1/[model]/1 | data item | returns the element with id 1 |
GET | /ping/ | 200/500 | check if service is up and connected |
POST | /api/v1/[model]/ | [data] | adds data to the model |
PUT | /api/v1/[model]/1/ | [data] | edit data |
DELETE | /api/v1/[model]/1 | 200 | delete the data item |
DELETE | /api/v1/[model]/ | - | delete complete data in model |
DELETE | /api/v1/[model]?force=1 | - | delete and reset model (starts with id=1 |
Python Marlin 官网
https://github.com/atmb4u/marlin
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。