安装前必看
安装步骤
-
配置 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;
Metadata
Release files for sky-dictionary 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sky_dictionary-0.0.7.tar.gz | 4.9 kB | Without provenance | Details for sky_dictionary-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sky_dictionary-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for sky_dictionary-0.0.7-py3-none-any.whl |
Total release size: 11.4 kB
Release files / sky_dictionary-0.0.7.tar.gz
| Download URL | sky_dictionary-0.0.7.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a46a32e1b9e3d8a3449ac0235aa4577545c03ab718e9f821a9ee6d13e5dc3c27
|
|
BLAKE2b-256 checksum How to use checksums |
a23058e93eb6348c57c43de864b9ea8da9056e2c4af8e1ea0ae378049279787c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.5
|
Release files / sky_dictionary-0.0.7-py3-none-any.whl
| Download URL | sky_dictionary-0.0.7-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d93f7f8ccd3a66c7ea1c2f00b1efc9a9eca5cc9b6da4faeec90df38459be50b6
|
|
BLAKE2b-256 checksum How to use checksums |
1fbbc9e76779923815e5f486fdb0b771dbcba73606ca980021ceff21fb1ea9b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.5
|
Security for sky-dictionary 0.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.