magic-api数据库存储方案
2024-10-20 16:43:03
建表语句
drop table if exists magic_api_file;
CREATE TABLE `magic_api_file` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`file_path` varchar(512) NOT NULL,
`file_content` mediumtext,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `magic_api_file_file_path_IDX` (`file_path`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4
导入接口数据到这个表后,点击右上角刷新按钮即可!!!
INSERT INTO magic_api_file (file_path,file_content) VALUES
('/magic-api/api/','this is directory')
,('/magic-api/api/a/','this is directory')
,('/magic-api/api/a/group.json','{
"properties" : { },
"id" : "f344e4858ed54c37a825d32742c60a96",
"name" : "a",
"type" : "api",
"parentId" : "0",
"path" : null,
"createTime" : 1673841678851,
"updateTime" : null,
"createBy" : null,
"updateBy" : null,
"paths" : [ ],
"options" : [ ]
}')
,('/magic-api/api/a/hello.ms','{
"properties" : { },
"id" : "00cab53619f244168e44fa59137eb3fc",
"script" : null,
"groupId" : "f344e4858ed54c37a825d32742c60a96",
"name" : "hello",
"createTime" : 1673841689882,
"updateTime" : null,
"lock" : null,
"createBy" : null,
"updateBy" : null,
"path" : "hello",
"method" : "GET",
"parameters" : [ ],
"options" : [ ],
"requestBody" : null,
"headers" : [ ],
"paths" : [ ],
"responseBody" : null,
"description" : null,
"requestBodyDefinition" : null,
"responseBodyDefinition" : null
}
================================
return ''Hello magic-api''')
,('/magic-api/datasource/','this is directory')
,('/magic-api/function/','this is directory')
;
最新文章
- JS里面Data日期格式转换
- 客户端GUI程序开发漫谈
- ubuntu命令行打开html文件的方法
- Redis持久化-数据丢失及解决(转载)
- android widget 点击进入应用
- HDU4745 - Two Rabbits(区间DP)
- 类集对enum的支持。
- iOS开发——OC篇&;常用关键字的使用与区别
- surfaceView画图
- SqlServer拆分列
- 【原创】大叔案例分享(3)用户行为分析--见证scala的强大
- url传参过程中文字需编码、解码使用
- Silverlight多重表头实现
- Zabbix监控Low level discovery实时监控网站URL状态
- ios(包括6、7)应用程序引用系统通讯录的方法 [亲测可行]
- 显示iOS所有系统字体
- Dapper实用教程
- 批量执行命令:fabric
- How tomcat works学习笔记
- Java 学习 day08
热门文章
- 秀++视频算法仓库-厂家对接规约V5
- vue 过滤器时间格式化
- 2022-11-04 Acwing每日一题
- Kubeadm搭建kubernetes集群
- Crond服务+Shell实现秒级任务
- (GCC) C++代码中使用#pragma GCC optimize / #pragma G++ optimize
- day22 存储过程 &; 游标 &; 事务
- PHP8.1.10手动安装教程及报错解决梳理
- Linux—软件管理
- http转成https工具类