|
@@ -0,0 +1,3304 @@
|
|
|
+[
|
|
|
+ {
|
|
|
+ "version": "1.0",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2017-01-23T13:45:04",
|
|
|
+ "name": "ListAllApis",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "ca/list",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "GET",
|
|
|
+ "title": "获取所有接口",
|
|
|
+ "summary": "列出所有的接口信息",
|
|
|
+ "note": "",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {
|
|
|
+ "enabled": false,
|
|
|
+ "type": "redis",
|
|
|
+ "expiration": 300
|
|
|
+ },
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "csi",
|
|
|
+ "name": "QueryApis"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [
|
|
|
+ {
|
|
|
+ "name": "projectId",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "所属项目",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "keyword",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "名称搜索关键字",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "module",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "模块名称",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "pageSize",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "每页显示几条",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "pageIndex",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "当前第几页",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "name": "orderBy",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "排序"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "body": null
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "array",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口信息数据集",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "id",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "接口编号",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "name",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "接口名称",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "description",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口描述",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "createdBy",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "创建人",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "updatedTime",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "最后修改时间",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": [
|
|
|
+ {
|
|
|
+ "input": {
|
|
|
+ "keyword": "*",
|
|
|
+ "pageSize": "*",
|
|
|
+ "pageIndex": "*"
|
|
|
+ },
|
|
|
+ "output": {
|
|
|
+ "statusCode": 200,
|
|
|
+ "errorMessage": "",
|
|
|
+ "data": {
|
|
|
+ "items": [
|
|
|
+ {
|
|
|
+ "id": 1,
|
|
|
+ "projectId": 1,
|
|
|
+ "name": "PuTuoShan",
|
|
|
+ "module": "普陀山统一信息发布平台",
|
|
|
+ "title": "刘合桃",
|
|
|
+ "summary": "普陀山统一信息发布平台",
|
|
|
+ "version": "刘合桃",
|
|
|
+ "url": "PuTuoShan",
|
|
|
+ "method": "普陀山统一信息发布平台",
|
|
|
+ "owner": "刘合桃",
|
|
|
+ "note": "PuTuoShan",
|
|
|
+ "implemented": "普陀山统一信息发布平台",
|
|
|
+ "implementation": "刘合桃",
|
|
|
+ "parameter": "PuTuoShan",
|
|
|
+ "result": "普陀山统一信息发布平台",
|
|
|
+ "mock": "刘合桃",
|
|
|
+ "updatedTime": 1452775192
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "pagination": {
|
|
|
+ "size": 10,
|
|
|
+ "count": 23,
|
|
|
+ "index": 2
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1.0",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2016-08-13T22:19:28",
|
|
|
+ "name": "GetApi",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "ca/get",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "GET",
|
|
|
+ "title": "获取指定接口",
|
|
|
+ "summary": "获取指定接口信息",
|
|
|
+ "note": "",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {},
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "csi",
|
|
|
+ "name": "GetApi"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [
|
|
|
+ {
|
|
|
+ "name": "id",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口标示",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "body": null
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "object",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口信息数据",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "id",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "接口编号",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "projectId",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "项目编号",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "name",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "接口名称",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "version",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口版本",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "owner",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口负责人",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "module",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "所属模块",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "url",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口访问地址",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "method",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口请求方法",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "title",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口标题",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "summary",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口简述",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "note",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口备注",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "implemented",
|
|
|
+ "type": "bool",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "是否已实现",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "implementation",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "实现代码",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "parameter",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口调用参数",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "result",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口返回结果",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "mock",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口模拟数据",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "updatedTime",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "最后修改时间",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": [
|
|
|
+ {
|
|
|
+ "input": {
|
|
|
+ "keyword": "*",
|
|
|
+ "pageSize": "*",
|
|
|
+ "pageIndex": "*"
|
|
|
+ },
|
|
|
+ "output": {
|
|
|
+ "statusCode": 200,
|
|
|
+ "errorMessage": "",
|
|
|
+ "data": {
|
|
|
+ "id": 1,
|
|
|
+ "projectId": 1,
|
|
|
+ "name": "PuTuoShan",
|
|
|
+ "module": "普陀山统一信息发布平台",
|
|
|
+ "title": "刘合桃",
|
|
|
+ "summary": "普陀山统一信息发布平台",
|
|
|
+ "version": "刘合桃",
|
|
|
+ "url": "PuTuoShan",
|
|
|
+ "method": "普陀山统一信息发布平台",
|
|
|
+ "owner": "刘合桃",
|
|
|
+ "note": "PuTuoShan",
|
|
|
+ "implemented": "普陀山统一信息发布平台",
|
|
|
+ "implementation": "刘合桃",
|
|
|
+ "parameter": "PuTuoShan",
|
|
|
+ "result": "普陀山统一信息发布平台",
|
|
|
+ "mock": "刘合桃",
|
|
|
+ "updatedTime": 1452775192
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1.0",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2019-12-09T11:28:27",
|
|
|
+ "name": "CreateApi",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "ca/create",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "POST",
|
|
|
+ "title": "创建接口",
|
|
|
+ "summary": "创建接口信息",
|
|
|
+ "note": "",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {
|
|
|
+ "enabled": false,
|
|
|
+ "type": "redis",
|
|
|
+ "expiration": 300
|
|
|
+ },
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "csi",
|
|
|
+ "name": "CreateApi"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": null,
|
|
|
+ "body": [
|
|
|
+ {
|
|
|
+ "name": "projectId",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "项目编号",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "name",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "接口名称",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "version",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口版本",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "owner",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口负责人",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "module",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "所属模块",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "url",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口访问地址",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "method",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口请求方法",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "title",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口标题",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "summary",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口简述",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "note",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口备注",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "implemented",
|
|
|
+ "type": "bool",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "是否已实现",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "implementation",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "实现代码",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "parameter",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口调用参数",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "result",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口返回结果",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "mock",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口模拟数据",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "protocol",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "deprecated",
|
|
|
+ "type": "bool",
|
|
|
+ "nullable": false,
|
|
|
+ "description": ""
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "object",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口信息数据",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "count",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "操作影响行数",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": []
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1.0",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2019-12-09T11:29:57",
|
|
|
+ "name": "UpdateApi",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "ca/update",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "PUT",
|
|
|
+ "title": "更新指定接口",
|
|
|
+ "summary": "更新指定接口信息",
|
|
|
+ "note": "",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {
|
|
|
+ "enabled": false,
|
|
|
+ "type": "redis",
|
|
|
+ "expiration": 300
|
|
|
+ },
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "csi",
|
|
|
+ "name": "UpdateApi"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": null,
|
|
|
+ "body": [
|
|
|
+ {
|
|
|
+ "name": "id",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "接口编号",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "projectId",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "项目编号",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "name",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "接口名称",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "version",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口版本",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "owner",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口负责人",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "module",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "所属模块",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "url",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口访问地址",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "method",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口请求方法",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "title",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口标题",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "summary",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口简述",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "note",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口备注",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "implemented",
|
|
|
+ "type": "bool",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "是否已实现",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "implementation",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "实现代码",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "parameter",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口调用参数",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "result",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口返回结果",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "mock",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口模拟数据",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "protocol",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "支持的协议"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "deprecated",
|
|
|
+ "type": "bool",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "是否弃用"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "object",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口信息数据",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "count",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "操作影响行数",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": [
|
|
|
+ {
|
|
|
+ "input": {
|
|
|
+ "id": "*",
|
|
|
+ "projectId": "*",
|
|
|
+ "name": "*",
|
|
|
+ "module": "*",
|
|
|
+ "title": "*",
|
|
|
+ "summary": "*",
|
|
|
+ "version": "*",
|
|
|
+ "url": "*",
|
|
|
+ "method": "*",
|
|
|
+ "owner": "*",
|
|
|
+ "note": "*",
|
|
|
+ "implemented": "*",
|
|
|
+ "implementation": "*",
|
|
|
+ "parameter": "*",
|
|
|
+ "result": "*",
|
|
|
+ "mock": "*"
|
|
|
+ },
|
|
|
+ "output": {
|
|
|
+ "statusCode": 200,
|
|
|
+ "errorMessage": "",
|
|
|
+ "data": {
|
|
|
+ "count": 1
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1.0",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2016-08-13T22:19:28",
|
|
|
+ "name": "DeleteApi",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "ca/delete",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "DELETE",
|
|
|
+ "title": "删除指定接口",
|
|
|
+ "summary": "删除指定接口信息",
|
|
|
+ "note": "",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {},
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "csi",
|
|
|
+ "name": "DeleteApi"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": null,
|
|
|
+ "body": [
|
|
|
+ {
|
|
|
+ "name": "ids",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "要删除的接口编号列表(以`,`分隔)",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "object",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口信息数据",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "count",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "操作影响行数",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": [
|
|
|
+ {
|
|
|
+ "input": {
|
|
|
+ "ids": "*"
|
|
|
+ },
|
|
|
+ "output": {
|
|
|
+ "statusCode": 200,
|
|
|
+ "errorMessage": "",
|
|
|
+ "data": {
|
|
|
+ "count": 1
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2017-01-08T20:45:51",
|
|
|
+ "name": "ListModules",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "ca/module/list",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "GET",
|
|
|
+ "title": "获取模块列表",
|
|
|
+ "summary": "获取项目中所有Api的模块列表",
|
|
|
+ "note": "获取项目中所有Api的模块列表",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {
|
|
|
+ "enabled": false,
|
|
|
+ "type": "redis",
|
|
|
+ "expiration": 300
|
|
|
+ },
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "csi",
|
|
|
+ "name": "ListModules"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [
|
|
|
+ {
|
|
|
+ "type": "int",
|
|
|
+ "name": "projectId"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "pageSize",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "页数"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "pageIndex",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "页码"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "body": []
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "object",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口信息数据集",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "items",
|
|
|
+ "type": "array",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "模块列表",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "id",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "模块编号"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "name",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "模块名称"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "description",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "描述"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "projectId",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "项目标识"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "pagination",
|
|
|
+ "type": "object",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "分页",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "totalCount",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "总记录"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "pageSize",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "每页条数"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "pageIndex",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "当前第几页"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": [
|
|
|
+ {
|
|
|
+ "input": {
|
|
|
+ "projectId": "*"
|
|
|
+ },
|
|
|
+ "output": {
|
|
|
+ "statusCode": 200,
|
|
|
+ "errorMessage": "",
|
|
|
+ "data": [
|
|
|
+ {
|
|
|
+ "name": "a"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "b"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1.0",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2016-11-04T14:31:20",
|
|
|
+ "name": "ListUsers",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "user/list",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "GET",
|
|
|
+ "title": "获取所有用户",
|
|
|
+ "summary": "列出所有的用户信息",
|
|
|
+ "note": "",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {
|
|
|
+ "enabled": false,
|
|
|
+ "type": "redis",
|
|
|
+ "expiration": 300
|
|
|
+ },
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "csi",
|
|
|
+ "name": "QueryUsers"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [
|
|
|
+ {
|
|
|
+ "name": "pageSize",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "页数"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "pageIndex",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "页码"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "name": "keyword",
|
|
|
+ "description": "关键字",
|
|
|
+ "nullable": true
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "body": null
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "array",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "用户信息数据集",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "id",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "用户标识",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "name",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "用户账号",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "nickname",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "用户名称",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "enabled",
|
|
|
+ "type": "bit",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "用户是否启用",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "privilege",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "权限等级",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "updatedTime",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "更新时间",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": []
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1.0",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2016-08-13T23:04:01",
|
|
|
+ "name": "GetUser",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "user/get",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "GET",
|
|
|
+ "title": "获取指定用户",
|
|
|
+ "summary": "列出指定用户信息",
|
|
|
+ "note": "",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {},
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "csi",
|
|
|
+ "name": "GetUser"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [
|
|
|
+ {
|
|
|
+ "name": "id",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "用户标识",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "body": null
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "object",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "用户信息数据集",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "id",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "用户标识",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "name",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "用户账号",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "nickname",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "用户名称",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "enabled",
|
|
|
+ "type": "bit",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "用户是否启用",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "privilege",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "权限等级",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "updatedTime",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "更新时间",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": []
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1.0",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2016-11-04T15:44:46",
|
|
|
+ "name": "CreateUser",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "user/create",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "POST",
|
|
|
+ "title": "创建用户",
|
|
|
+ "summary": "创建的用户信息",
|
|
|
+ "note": "",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {
|
|
|
+ "enabled": false,
|
|
|
+ "type": "redis",
|
|
|
+ "expiration": 300
|
|
|
+ },
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "repository",
|
|
|
+ "name": "UserRepository.CreateUser"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [],
|
|
|
+ "body": [
|
|
|
+ {
|
|
|
+ "name": "name",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "用户账号",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "password",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "用户密码",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "nickname",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "用户名称",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "enabled",
|
|
|
+ "type": "bit",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "用户是否启用",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "privilege",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "权限等级",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "int",
|
|
|
+ "name": "roleId",
|
|
|
+ "description": "角色ID"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "用户标识",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": [
|
|
|
+ {
|
|
|
+ "input": {
|
|
|
+ "name": "*",
|
|
|
+ "password": "*",
|
|
|
+ "nickname": "*",
|
|
|
+ "enabled": "*",
|
|
|
+ "privilege": "*",
|
|
|
+ "roleId": "*"
|
|
|
+ },
|
|
|
+ "output": {
|
|
|
+ "statusCode": 200,
|
|
|
+ "errorMessage": "",
|
|
|
+ "data": {}
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1.0",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2016-11-04T16:45:08",
|
|
|
+ "name": "UpdateUser",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "user/update",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "PUT",
|
|
|
+ "title": "修改用户",
|
|
|
+ "summary": "修改的用户信息",
|
|
|
+ "note": "",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {
|
|
|
+ "enabled": false,
|
|
|
+ "type": "redis",
|
|
|
+ "expiration": 300
|
|
|
+ },
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "repository",
|
|
|
+ "name": "UserRepository.UpdateUser"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [],
|
|
|
+ "body": [
|
|
|
+ {
|
|
|
+ "name": "id",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "用户标识",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "name",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "用户账号",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "password",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "用户密码",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "nickname",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "用户名称",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "enabled",
|
|
|
+ "type": "bit",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "用户是否启用",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "privilege",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "权限等级",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "int",
|
|
|
+ "name": "roleId",
|
|
|
+ "description": "角色ID"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "无",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": []
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1.0",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2016-08-13T23:04:11",
|
|
|
+ "name": "ListAllProjects",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "project/list",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "GET",
|
|
|
+ "title": "获取所有项目",
|
|
|
+ "summary": "列出所有的项目信息",
|
|
|
+ "note": "",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {},
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "csi",
|
|
|
+ "name": "QueryProjects"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [
|
|
|
+ {
|
|
|
+ "name": "keyword",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "名称搜索关键字",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "pageSize",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "每页显示几条",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "pageIndex",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "当前第几页",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "body": null
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "array",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "项目信息数据集",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "id",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "项目编号",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "name",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "项目名称",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "description",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "项目描述",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "createdBy",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "创建人",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "connectionString",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "数据库链接字符串",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "introduction",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "项目简介",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "intromarkdown",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "项目简介",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "updatedTime",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "最后修改时间",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": [
|
|
|
+ {
|
|
|
+ "input": {
|
|
|
+ "keyword": "*",
|
|
|
+ "pageSize": "*",
|
|
|
+ "pageIndex": "*"
|
|
|
+ },
|
|
|
+ "output": {
|
|
|
+ "statusCode": 200,
|
|
|
+ "errorMessage": "",
|
|
|
+ "data": {
|
|
|
+ "items": [
|
|
|
+ {
|
|
|
+ "id": 1,
|
|
|
+ "name": "PuTuoShan",
|
|
|
+ "description": "普陀山统一信息发布平台",
|
|
|
+ "createdBy": "刘合桃",
|
|
|
+ "connectionString": "server=wicture.com;user=root;password=Wicture@123;database=pmt;charset=utf8;convert zero datetime=True;",
|
|
|
+ "introduction": "统一信息发布平台。。。。。",
|
|
|
+ "intromarkdown": "统一信息发布平台。。。。。",
|
|
|
+ "updatedTime": 1452775192
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 2,
|
|
|
+ "name": "PuTuoShan",
|
|
|
+ "description": "普陀山统一信息发布平台",
|
|
|
+ "createdBy": "刘合桃",
|
|
|
+ "connectionString": "server=wicture.com;user=root;password=Wicture@123;database=pmt;charset=utf8;convert zero datetime=True;",
|
|
|
+ "introduction": "统一信息发布平台。。。。。",
|
|
|
+ "intromarkdown": "统一信息发布平台。。。。。",
|
|
|
+ "updatedTime": 1452775192
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 3,
|
|
|
+ "name": "PuTuoShan",
|
|
|
+ "description": "普陀山统一信息发布平台",
|
|
|
+ "createdBy": "刘合桃",
|
|
|
+ "connectionString": "server=wicture.com;user=root;password=Wicture@123;database=pmt;charset=utf8;convert zero datetime=True;",
|
|
|
+ "introduction": "统一信息发布平台。。。。。",
|
|
|
+ "intromarkdown": "统一信息发布平台。。。。。",
|
|
|
+ "updatedTime": 1452775192
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "pagination": {
|
|
|
+ "size": 10,
|
|
|
+ "count": 23,
|
|
|
+ "index": 2
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1.0",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2016-08-13T23:04:11",
|
|
|
+ "name": "GetProject",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "project/get",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "GET",
|
|
|
+ "title": "获取指定项目",
|
|
|
+ "summary": "获取指定项目信息",
|
|
|
+ "note": "",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {},
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "csi",
|
|
|
+ "name": "GetProject"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [
|
|
|
+ {
|
|
|
+ "name": "id",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "项目标示",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "body": null
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "object",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "项目信息数据",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "id",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "项目编号",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "name",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "项目名称",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "description",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "项目描述",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "createdBy",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "创建人",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "connectionString",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "数据库链接字符串",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "introduction",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "项目简介",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "intromarkdown",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "项目简介",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "updatedTime",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "最后修改时间",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": [
|
|
|
+ {
|
|
|
+ "input": {
|
|
|
+ "keyword": "*",
|
|
|
+ "pageSize": "*",
|
|
|
+ "pageIndex": "*"
|
|
|
+ },
|
|
|
+ "output": {
|
|
|
+ "statusCode": 200,
|
|
|
+ "errorMessage": "",
|
|
|
+ "data": {
|
|
|
+ "id": 1,
|
|
|
+ "name": "PuTuoShan",
|
|
|
+ "description": "普陀山统一信息发布平台",
|
|
|
+ "createdBy": "刘合桃",
|
|
|
+ "connectionString": "server=wicture.com;user=root;password=Wicture@123;database=pmt;charset=utf8;convert zero datetime=True;",
|
|
|
+ "introduction": "统一信息发布平台。。。。。",
|
|
|
+ "intromarkdown": "统一信息发布平台。。。。。",
|
|
|
+ "updatedTime": 1452775192
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2016-08-13T23:04:11",
|
|
|
+ "name": "CreateProject",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "project/create",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "POST",
|
|
|
+ "title": "创建项目",
|
|
|
+ "summary": "创建新的项目",
|
|
|
+ "note": "创建项目信息的接口。",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {},
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "csi",
|
|
|
+ "name": "CreateProject"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [],
|
|
|
+ "body": [
|
|
|
+ {
|
|
|
+ "name": "name",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "项目名称",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "description",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "项目描述",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "createdBy",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "创建人",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "connectionString",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "数据库链接字符串",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "intromarkdown",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "项目简介",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "introduction",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "项目简介",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "object",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口信息数据集",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "count",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": [
|
|
|
+ {
|
|
|
+ "input": {
|
|
|
+ "name": "*",
|
|
|
+ "description": "*",
|
|
|
+ "createdBy": "*"
|
|
|
+ },
|
|
|
+ "output": {
|
|
|
+ "statusCode": 200,
|
|
|
+ "errorMessage": "",
|
|
|
+ "data": [
|
|
|
+ {
|
|
|
+ "count": 1
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2016-08-13T23:04:11",
|
|
|
+ "name": "UpdateProject",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "project/update",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "PUT",
|
|
|
+ "title": "修改项目",
|
|
|
+ "summary": "修改指定的项目",
|
|
|
+ "note": "修改项目信息的接口。",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {},
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "csi",
|
|
|
+ "name": "UpdateProject"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [],
|
|
|
+ "body": [
|
|
|
+ {
|
|
|
+ "name": "id",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "项目标识",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "name",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "项目名称",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "description",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "项目描述",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "createdBy",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "创建人",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "connectionString",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "数据库链接字符串",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "intromarkdown",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "项目简介",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "introduction",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "项目简介",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "object",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口信息数据集",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "count",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": [
|
|
|
+ {
|
|
|
+ "input": {
|
|
|
+ "name": "*",
|
|
|
+ "description": "*",
|
|
|
+ "createdBy": "*"
|
|
|
+ },
|
|
|
+ "output": {
|
|
|
+ "statusCode": 200,
|
|
|
+ "errorMessage": "",
|
|
|
+ "data": [
|
|
|
+ {
|
|
|
+ "count": 1
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2016-08-13T23:04:11",
|
|
|
+ "name": "DeleteProject",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "project/delete",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "DELETE",
|
|
|
+ "title": "删除项目",
|
|
|
+ "summary": "删除指定的项目",
|
|
|
+ "note": "删除项目信息的接口。",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {},
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "csi",
|
|
|
+ "name": "DeleteProject"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [],
|
|
|
+ "body": [
|
|
|
+ {
|
|
|
+ "name": "id",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "项目标识",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "object",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口信息数据集",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "count",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": [
|
|
|
+ {
|
|
|
+ "input": {
|
|
|
+ "name": "*",
|
|
|
+ "description": "*",
|
|
|
+ "createdBy": "*"
|
|
|
+ },
|
|
|
+ "output": {
|
|
|
+ "statusCode": 200,
|
|
|
+ "errorMessage": "",
|
|
|
+ "data": [
|
|
|
+ {
|
|
|
+ "count": 1
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1.0",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2016-11-03T19:00:26",
|
|
|
+ "name": "CheckNameExsits",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "ca/check",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "GET",
|
|
|
+ "title": "检测接口名称是否存在",
|
|
|
+ "summary": "检测接口名称是否存在",
|
|
|
+ "note": "",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {
|
|
|
+ "enabled": false,
|
|
|
+ "type": "redis",
|
|
|
+ "expiration": 300
|
|
|
+ },
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "csi",
|
|
|
+ "name": "CheckNameExsits"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [
|
|
|
+ {
|
|
|
+ "name": "projectId",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "接口标示",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "name": "name",
|
|
|
+ "description": "接口名称"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "body": null
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "object",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口信息数据",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "id",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "接口编号",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "projectId",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "项目编号",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "name",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "接口名称",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "version",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口版本",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "owner",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口负责人",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "module",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "所属模块",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "url",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口访问地址",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "method",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口请求方法",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "title",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口标题",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "summary",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口简述",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "note",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口备注",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "implemented",
|
|
|
+ "type": "bool",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "是否已实现",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "implementation",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "实现代码",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "parameter",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口调用参数",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "result",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口返回结果",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "mock",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口模拟数据",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "updatedTime",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "最后修改时间",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": [
|
|
|
+ {
|
|
|
+ "input": {
|
|
|
+ "projectId": "*",
|
|
|
+ "name": "*"
|
|
|
+ },
|
|
|
+ "output": {
|
|
|
+ "statusCode": 200,
|
|
|
+ "errorMessage": "",
|
|
|
+ "data": {
|
|
|
+ "id": "",
|
|
|
+ "projectId": "",
|
|
|
+ "name": "",
|
|
|
+ "version": "",
|
|
|
+ "owner": "",
|
|
|
+ "module": "",
|
|
|
+ "url": "",
|
|
|
+ "method": "",
|
|
|
+ "title": "",
|
|
|
+ "summary": "",
|
|
|
+ "note": "",
|
|
|
+ "implemented": "",
|
|
|
+ "implementation": "",
|
|
|
+ "parameter": "",
|
|
|
+ "result": "",
|
|
|
+ "mock": "",
|
|
|
+ "updatedTime": ""
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1.0",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2016-11-04T15:11:49",
|
|
|
+ "name": "ListRoles",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "roles/list",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "GET",
|
|
|
+ "title": "获取所有角色",
|
|
|
+ "summary": "获取所有角色",
|
|
|
+ "note": "",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {
|
|
|
+ "enabled": false,
|
|
|
+ "type": "redis",
|
|
|
+ "expiration": 300
|
|
|
+ },
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "csi",
|
|
|
+ "name": "ListRoles"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [],
|
|
|
+ "body": null
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "array",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "用户信息数据集",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "id",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "标识",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "name",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "名称",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": []
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1.0",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2016-11-30T11:19:42",
|
|
|
+ "name": "ListOwnerApis",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "ca/owner/list",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "GET",
|
|
|
+ "title": "获取当前用户接口",
|
|
|
+ "summary": "获取当前用户接口",
|
|
|
+ "note": "",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {
|
|
|
+ "enabled": false,
|
|
|
+ "type": "redis",
|
|
|
+ "expiration": 300
|
|
|
+ },
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "csi",
|
|
|
+ "name": "ListOwnerApis"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [
|
|
|
+ {
|
|
|
+ "name": "keyword",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "名称搜索关键字",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "module",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "模块名称",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "pageSize",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "每页显示几条",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "pageIndex",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "当前第几页",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "body": null
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "array",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口信息数据集",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "id",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "接口编号",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "name",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "接口名称",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "description",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口描述",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "createdBy",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "创建人",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "updatedTime",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "最后修改时间",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": [
|
|
|
+ {
|
|
|
+ "input": {
|
|
|
+ "keyword": "*",
|
|
|
+ "pageSize": "*",
|
|
|
+ "pageIndex": "*"
|
|
|
+ },
|
|
|
+ "output": {
|
|
|
+ "statusCode": 200,
|
|
|
+ "errorMessage": "",
|
|
|
+ "data": {
|
|
|
+ "items": [
|
|
|
+ {
|
|
|
+ "id": 1,
|
|
|
+ "projectId": 1,
|
|
|
+ "name": "PuTuoShan",
|
|
|
+ "module": "普陀山统一信息发布平台",
|
|
|
+ "title": "刘合桃",
|
|
|
+ "summary": "普陀山统一信息发布平台",
|
|
|
+ "version": "刘合桃",
|
|
|
+ "url": "PuTuoShan",
|
|
|
+ "method": "普陀山统一信息发布平台",
|
|
|
+ "owner": "刘合桃",
|
|
|
+ "note": "PuTuoShan",
|
|
|
+ "implemented": "普陀山统一信息发布平台",
|
|
|
+ "implementation": "刘合桃",
|
|
|
+ "parameter": "PuTuoShan",
|
|
|
+ "result": "普陀山统一信息发布平台",
|
|
|
+ "mock": "刘合桃",
|
|
|
+ "updatedTime": 1452775192
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "pagination": {
|
|
|
+ "size": 10,
|
|
|
+ "count": 23,
|
|
|
+ "index": 2
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1.0",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2019-11-28T18:39:23",
|
|
|
+ "name": "CreateModule",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "ca/module/create",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "POST",
|
|
|
+ "title": "创建当前项目模块",
|
|
|
+ "summary": "创建当前项目模块",
|
|
|
+ "note": "",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {
|
|
|
+ "enabled": false,
|
|
|
+ "type": "redis",
|
|
|
+ "expiration": 300
|
|
|
+ },
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "csi",
|
|
|
+ "name": "CreateModule"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [],
|
|
|
+ "body": [
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "name": "name"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "int",
|
|
|
+ "name": "projectId"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "name": "description"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "object",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口信息数据集",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "id",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "操作行数",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": [
|
|
|
+ {
|
|
|
+ "input": {
|
|
|
+ "name": "*",
|
|
|
+ "projectId": "*",
|
|
|
+ "description": "*"
|
|
|
+ },
|
|
|
+ "output": {
|
|
|
+ "statusCode": 200,
|
|
|
+ "errorMessage": "",
|
|
|
+ "data": {
|
|
|
+ "id": 170
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1.0",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2016-12-01T15:07:07",
|
|
|
+ "name": "DeleteModule",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "ca/module/delete",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "DELETE",
|
|
|
+ "title": "删除模块",
|
|
|
+ "summary": "删除模块",
|
|
|
+ "note": "",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {
|
|
|
+ "enabled": false,
|
|
|
+ "type": "redis",
|
|
|
+ "expiration": 300
|
|
|
+ },
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "csi",
|
|
|
+ "name": "DeleteModule"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [],
|
|
|
+ "body": [
|
|
|
+ {
|
|
|
+ "type": "int",
|
|
|
+ "name": "id"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "object",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口信息数据集",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "count",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "操作行数",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": [
|
|
|
+ {
|
|
|
+ "input": {
|
|
|
+ "id": "*"
|
|
|
+ },
|
|
|
+ "output": {
|
|
|
+ "statusCode": 200,
|
|
|
+ "errorMessage": "",
|
|
|
+ "data": {
|
|
|
+ "count": ""
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1.0.0",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2016-12-26T11:40:03",
|
|
|
+ "name": "CheckAPINames",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "defaultapi/check",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "POST",
|
|
|
+ "title": "查询API名称是否存在",
|
|
|
+ "summary": "查询API名称是否存在",
|
|
|
+ "note": "为了检查生成默认接口提示使用",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {
|
|
|
+ "enabled": false,
|
|
|
+ "type": "redis",
|
|
|
+ "expiration": 300
|
|
|
+ },
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "repository",
|
|
|
+ "name": "DefaultApiRepository.CheckExistName"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [],
|
|
|
+ "body": [
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "name": "connectionString",
|
|
|
+ "description": "链接字符串"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "int",
|
|
|
+ "name": "projectId",
|
|
|
+ "description": "所属项目"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "name": "module",
|
|
|
+ "description": "所属模块"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "array",
|
|
|
+ "name": "apiData",
|
|
|
+ "description": "api接口数据"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "object",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口信息数据集",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "count",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": ""
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": []
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1.0.0",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2016-12-26T12:32:31",
|
|
|
+ "name": "CheckCSINames",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "defaultcsi/check",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "POST",
|
|
|
+ "title": "查询API名称是否存在",
|
|
|
+ "summary": "查询CSI名称是否存在",
|
|
|
+ "note": "为了检查生成默认接口提示使用",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {
|
|
|
+ "enabled": false,
|
|
|
+ "type": "redis",
|
|
|
+ "expiration": 300
|
|
|
+ },
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "repository",
|
|
|
+ "name": "DefaultCsiRepository.CheckExistName"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [],
|
|
|
+ "body": [
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "name": "connectionString",
|
|
|
+ "description": "链接字符串"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "int",
|
|
|
+ "name": "projectId",
|
|
|
+ "description": "所属项目"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "name": "module",
|
|
|
+ "description": "所属模块"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "array",
|
|
|
+ "name": "apiData",
|
|
|
+ "description": "api接口数据"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "object",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口信息数据集",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "count",
|
|
|
+ "type": "object",
|
|
|
+ "nullable": false,
|
|
|
+ "description": ""
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": []
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1.0.0",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2016-12-22T14:33:25",
|
|
|
+ "name": "ListProjectTables",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "project/tables",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "POST",
|
|
|
+ "title": "获取对应数据库信息",
|
|
|
+ "summary": "获取对应数据库信息",
|
|
|
+ "note": "",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {
|
|
|
+ "enabled": false,
|
|
|
+ "type": "redis",
|
|
|
+ "expiration": 300
|
|
|
+ },
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "repository",
|
|
|
+ "name": "DefaultCsiRepository.LoadTablesForProject"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [],
|
|
|
+ "body": [
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "name": "connectionString",
|
|
|
+ "description": "链接字符串"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "int",
|
|
|
+ "name": "projectId",
|
|
|
+ "description": "所属项目"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "object",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口信息数据集",
|
|
|
+ "schema": []
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": []
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1.0.0",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2017-06-08T17:42:31",
|
|
|
+ "name": "CreateDefaultApi",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "defaultapi/create",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "POST",
|
|
|
+ "title": "创建默认API",
|
|
|
+ "summary": "创建默认API",
|
|
|
+ "note": "",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {
|
|
|
+ "enabled": false,
|
|
|
+ "type": "redis",
|
|
|
+ "expiration": 300
|
|
|
+ },
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "repository",
|
|
|
+ "name": "DefaultApiRepository.CreateApis"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [],
|
|
|
+ "body": [
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "name": "connectionString",
|
|
|
+ "description": "链接字符串"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "int",
|
|
|
+ "name": "projectId",
|
|
|
+ "description": "所属项目"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "name": "module",
|
|
|
+ "description": "所属模块"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "name": "apiData",
|
|
|
+ "description": "api接口数据"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "object",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口信息数据集",
|
|
|
+ "schema": []
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": []
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1.0.0",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2016-12-22T14:35:45",
|
|
|
+ "name": "CreateDefaultCsi",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "defaultcsi/create",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "POST",
|
|
|
+ "title": "创建默认CSI",
|
|
|
+ "summary": "创建默认CSI",
|
|
|
+ "note": "",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {
|
|
|
+ "enabled": false,
|
|
|
+ "type": "redis",
|
|
|
+ "expiration": 300
|
|
|
+ },
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "repository",
|
|
|
+ "name": "DefaultCsiRepository.CreateCsis"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [],
|
|
|
+ "body": [
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "name": "connectionString",
|
|
|
+ "description": "链接字符串"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "int",
|
|
|
+ "name": "projectId",
|
|
|
+ "description": "所属项目"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "name": "module",
|
|
|
+ "description": "所属模块"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "array",
|
|
|
+ "name": "apiData",
|
|
|
+ "description": "api接口数据"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "object",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口信息数据集",
|
|
|
+ "schema": []
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": []
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1.0",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2016-12-30T09:46:27",
|
|
|
+ "name": "DeleteUser",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "user/delete",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "DELETE",
|
|
|
+ "title": "删除用户",
|
|
|
+ "summary": "删除用户信息",
|
|
|
+ "note": "",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {
|
|
|
+ "enabled": false,
|
|
|
+ "type": "redis",
|
|
|
+ "expiration": 300
|
|
|
+ },
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "csi",
|
|
|
+ "name": "DeleteUser"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [
|
|
|
+ {
|
|
|
+ "type": "int",
|
|
|
+ "name": "id",
|
|
|
+ "description": "用户标识"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "body": []
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "无",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": []
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1.0",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2017-01-05T11:50:39",
|
|
|
+ "name": "SetUserPasswrod",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "user/password/set",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "POST",
|
|
|
+ "title": "设置密码",
|
|
|
+ "summary": "设置密码",
|
|
|
+ "note": "",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {
|
|
|
+ "enabled": false,
|
|
|
+ "type": "redis",
|
|
|
+ "expiration": 300
|
|
|
+ },
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "repository",
|
|
|
+ "name": "UserRepository.SetUserPasswrod"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [],
|
|
|
+ "body": [
|
|
|
+ {
|
|
|
+ "name": "password",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "用户密码",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "newPassword",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "用户名称",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "用户标识",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": []
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "version": "1.0",
|
|
|
+ "owner": "dawson",
|
|
|
+ "updatedTime": "2017-11-07T09:17:05",
|
|
|
+ "name": "UpdateModule",
|
|
|
+ "module": "pmt",
|
|
|
+ "url": "ca/module/update",
|
|
|
+ "useAbsoluteUrl": false,
|
|
|
+ "method": "POST",
|
|
|
+ "title": "更新当前项目模块",
|
|
|
+ "summary": "更新当前项目模块",
|
|
|
+ "note": "",
|
|
|
+ "allowAnonymous": false,
|
|
|
+ "cache": {
|
|
|
+ "enabled": false,
|
|
|
+ "type": "redis",
|
|
|
+ "expiration": 300
|
|
|
+ },
|
|
|
+ "implemented": true,
|
|
|
+ "implementation": {
|
|
|
+ "type": "csi",
|
|
|
+ "name": "UpdateModule"
|
|
|
+ },
|
|
|
+ "parameter": {
|
|
|
+ "query": [],
|
|
|
+ "body": [
|
|
|
+ {
|
|
|
+ "type": "int",
|
|
|
+ "name": "id"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "name": "name"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "name": "description"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "result": {
|
|
|
+ "type": "json",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "statusCode",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "错误码(默认为200,无错误信息)",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "errorMessage",
|
|
|
+ "type": "string",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "错误信息",
|
|
|
+ "schema": null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "data",
|
|
|
+ "type": "object",
|
|
|
+ "nullable": true,
|
|
|
+ "description": "接口信息数据集",
|
|
|
+ "schema": [
|
|
|
+ {
|
|
|
+ "name": "count",
|
|
|
+ "type": "int",
|
|
|
+ "nullable": false,
|
|
|
+ "description": "操作行数",
|
|
|
+ "schema": null
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "mock": []
|
|
|
+ }
|
|
|
+]
|