Skip to main content

安装前必看

安装步骤

  • 配置 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;

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)

Source distribution for sky-dictionary 0.0.7
File Size Uploaded
sky_dictionary-0.0.7.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sky-dictionary 0.0.7
File Interpreter ABI Platform
sky_dictionary-0.0.7-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page