字段配置模块
Project description
安装前必看
安装步骤
-
配置 INSTALLED_APPS 添加'django_simple_api;
-
配置配置setting 中间件 'django.middleware.security.SecurityMiddleware',
接口:
configure 全部配置
- 接口URL:
http://127.0.0.1:8000/dictionary/configure/
- 请求方式:
GET
- Content-Type:
multipart/form-data
成功响应示例
{"err": 0,"msg": "ok", //返回文字描述"data": {"45888": {"45456": "{name:123456}"}} //返回数据}
_configure 按照group查找
- 接口状态:
已完成
- 接口URL:
http://127.0.0.1:8000/dictionary/configure/45888/
- 请求方式:
GET
- Content-Type:
multipart/form-data
成功响应示例
{"err": 0,"msg": "ok", //返回文字描述"data": {"45456": "{name:123456}"} //返回数据}
_configure 按照/group/key查找
- 接口状态:
已完成
- 接口URL:
http://127.0.0.1:8000/dictionary/configure/45888/45456/
- 请求方式:
GET
- Content-Type:
multipart/form-data
成功响应示例
{"err": 0,"msg": "ok", //返回文字描述"data": {"45456": "{name:123456}"} //返回数据}
字段描述
参数名 | 示例值 | 参数类型 | 参数描述 |
---|---|---|---|
err | 0 | Number | - |
msg | ok | String | 返回文字描述 |
-data | - | Object | 返回数据 |
data.45456 | {name:123456} | String | - |
SQL
CREATE TABLE `dictionary_configure` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`group` varchar(128) NOT NULL,
`key` varchar(128) NOT NULL,
`value` longtext NOT NULL,
`description` varchar(255) NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `dictionary_configure_group_key_d0e0a692_uniq` (`group`,`key`) USING BTREE,
KEY `dictionary_configure_group_09d9ee65` (`group`) USING BTREE,
KEY `dictionary_configure_key_52d53a3c` (`key`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sky_dictionary-0.0.7.tar.gz
(4.9 kB
view details)
Built Distribution
File details
Details for the file sky_dictionary-0.0.7.tar.gz
.
File metadata
- Download URL: sky_dictionary-0.0.7.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a46a32e1b9e3d8a3449ac0235aa4577545c03ab718e9f821a9ee6d13e5dc3c27 |
|
MD5 | 670be920b5d6d3fff0be06cbf2984d0e |
|
BLAKE2b-256 | a23058e93eb6348c57c43de864b9ea8da9056e2c4af8e1ea0ae378049279787c |
File details
Details for the file sky_dictionary-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: sky_dictionary-0.0.7-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d93f7f8ccd3a66c7ea1c2f00b1efc9a9eca5cc9b6da4faeec90df38459be50b6 |
|
MD5 | fa8ec02a1bd593b2f9d171cd9786361d |
|
BLAKE2b-256 | 1fbbc9e76779923815e5f486fdb0b771dbcba73606ca980021ceff21fb1ea9b0 |