-
Notifications
You must be signed in to change notification settings - Fork 0
/
智慧城市管理平台.apifox.json
1 lines (1 loc) · 5 KB
/
智慧城市管理平台.apifox.json
1
{"apifoxProject":"1.0.0","info":{"name":"智慧城市管理平台","description":"","mockRule":{"rules":[],"enableSystemRule":true}},"responseCollection":[],"apiCollection":[{"name":"根目录","parentId":0,"serverId":"","description":"","preProcessors":[],"postProcessors":[],"auth":{},"items":[{"name":"智慧城市信息面板","api":{"id":"15616618","method":"get","path":"/api/smartcity/info","parameters":{},"auth":{},"commonParameters":{"query":[],"body":[],"cookie":[],"header":[]},"responses":[{"id":"30889241","name":"成功","code":200,"contentType":"json","jsonSchema":{"type":"object","properties":{"status":{"type":"integer","default":200,"enum":[200],"x-apifox":{"enumDescriptions":{"200":"成功请求"}}},"message":{"type":"string","default":"","enum":["success"],"x-apifox":{"enumDescriptions":{"success":"成功请求"}}},"data":{"type":"object","properties":{"iot":{"type":"object","properties":{"name":{"type":"string","enum":["接入IOT设备"],"x-apifox":{"enumDescriptions":{"接入IOT设备":""}}},"number":{"type":"integer","minimum":2400,"maximum":6600},"unit":{"type":"string","enum":["台"],"x-apifox":{"enumDescriptions":{"台":""}}}},"required":["name","number","unit"]},"test":{"type":"object","properties":{"name":{"type":"string","enum":["今日核酸采集量"],"x-apifox":{"enumDescriptions":{"今日核酸采集量":""}}},"number":{"type":"integer","minimum":1000,"maximum":2000},"unit":{"type":"string","enum":["人"],"x-apifox":{"enumDescriptions":{"人":""}}}},"required":["name","number","unit"]},"power":{"type":"object","properties":{"name":{"type":"string","enum":["城市电力能耗"],"x-apifox":{"enumDescriptions":{"城市电力能耗":""}}},"number":{"type":"number","mock":{"mock":"@float(60, 100, 2,2)"}},"unit":{"type":"string","enum":["兆瓦时"],"x-apifox":{"enumDescriptions":{"兆瓦时":""}}}},"required":["name","number","unit"]},"event":{"type":"object","properties":{"name":{"type":"string","enum":["未处理治安事件"],"x-apifox":{"enumDescriptions":{"未处理治安事件":""}}},"number":{"type":"integer","minimum":0,"maximum":20},"unit":{"type":"string","enum":["起"],"x-apifox":{"enumDescriptions":{"起":""}}}},"required":["name","number","unit"]}},"required":["iot","test","power","event"]}},"required":["status","message","data"]}}],"responseExamples":[],"requestBody":{"type":"none","parameters":[]},"description":"智慧城市信息面板","tags":["信息面板数据"],"status":"developing","serverId":"","operationId":"","sourceUrl":"","ordering":10,"cases":[],"mocks":[]}},{"name":"智慧城市事件列表","api":{"id":"15625506","method":"get","path":"/api/smartcity/list","parameters":{"query":[]},"auth":{},"commonParameters":{"query":[],"body":[],"cookie":[],"header":[]},"responses":[{"id":"30911483","name":"成功","code":200,"contentType":"json","jsonSchema":{"type":"object","properties":{"status":{"type":"string","enum":["200"],"x-apifox":{"enumDescriptions":{"200":""}}},"message":{"type":"string","default":"","enum":["success"],"x-apifox":{"enumDescriptions":{"success":""}}},"list":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","enum":["火警","电力","治安"],"x-apifox":{"enumDescriptions":{"火警":"","电力":"","治安":""}}},"type":{"type":"string","enum":["存在隐患,需派人排除隐患","出现事故,需紧急处理","重大事故,需派人支援"],"x-apifox":{"enumDescriptions":{"存在隐患,需派人排除隐患":"","出现事故,需紧急处理":"","重大事故,需派人支援":""}}},"position":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]}},"required":["name","type","position"]},"minItems":3,"maxItems":7}},"required":["status","message","list"]}}],"responseExamples":[],"requestBody":{"type":"none","parameters":[]},"description":"","tags":["事件列表"],"status":"developing","serverId":"","operationId":"","sourceUrl":"","ordering":20,"cases":[],"mocks":[]}}]}],"socketCollection":[],"docCollection":[],"schemaCollection":[],"apiTestCaseCollection":[{"name":"默认分组","children":[],"items":[]}],"apiTestSuiteCollection":[],"environments":[{"baseUrl":"http://127.0.0.1","baseUrls":{"default":"http://127.0.0.1"},"parameters":{},"variables":[],"name":"测试环境","type":"normal","visibility":"protected","ordering":0,"id":"1847331"},{"baseUrl":"http://127.0.0.1","baseUrls":{"default":"http://127.0.0.1"},"parameters":{},"variables":[],"name":"正式环境","type":"normal","visibility":"public","ordering":0,"id":"1847332"},{"baseUrl":"http://127.0.0.1:4523/mock/804594","baseUrls":{"default":"http://127.0.0.1:4523/mock/undefined"},"parameters":{},"variables":[],"name":"Mock 服务","type":"mock","visibility":"protected","ordering":0,"id":"1847333"}],"commonScripts":[],"databaseConnections":[],"globalVariables":[],"commonParameters":null,"projectSetting":{"apiStatuses":["developing","testing","released","deprecated"],"servers":[{"id":"default","name":"默认服务"}],"preProcessors":[],"postProcessors":[],"auth":{},"id":"628628"}}