类 InterfaceRestController
- java.lang.Object
-
- net.risesoft.controller.InterfaceRestController
-
@RestController @RequestMapping(value="/vue/interface", produces="application/json") public class InterfaceRestController extends Object接口信息- 作者:
- zhangchongjie
- Date:
- 2024/05/23
-
-
构造器概要
构造器 构造器 说明 InterfaceRestController()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 net.risesoft.pojo.Y9Result<List<ItemInterfaceBind>>findByInterfaceId(String id)获取接口绑定事项列表net.risesoft.pojo.Y9Result<List<InterfaceInfo>>findInterfaceList(String name, String type, String address)获取接口列表net.risesoft.pojo.Y9Result<List<InterfaceRequestParams>>findRequestParamsList(String name, String type, String id)获取接口请求参数列表net.risesoft.pojo.Y9Result<List<InterfaceResponseParams>>findResponseParamsList(String name, String id)获取接口响应参数列表net.risesoft.pojo.Y9Result<String>removeInterface(String id)移除接口信息net.risesoft.pojo.Y9Result<String>removeRequestParams(String[] ids)移除接口请求参数net.risesoft.pojo.Y9Result<String>removeResponseParams(String[] ids)移除接口响应参数net.risesoft.pojo.Y9Result<String>saveAllResponseParams(String interfaceId, String jsonData)一键保存响应参数net.risesoft.pojo.Y9Result<String>saveInterface(InterfaceInfo info)保存接口信息net.risesoft.pojo.Y9Result<String>saveRequestParams(InterfaceRequestParams info)保存接口请求参数net.risesoft.pojo.Y9Result<String>saveResponseParams(InterfaceResponseParams info)保存接口响应参数
-
-
-
方法详细资料
-
findByInterfaceId
@GetMapping("/findByInterfaceId") public net.risesoft.pojo.Y9Result<List<ItemInterfaceBind>> findByInterfaceId(@RequestParam String id)获取接口绑定事项列表- 参数:
id- 接口id- 返回:
-
findInterfaceList
@GetMapping("/findInterfaceList") public net.risesoft.pojo.Y9Result<List<InterfaceInfo>> findInterfaceList(@RequestParam(required=false) String name, @RequestParam(required=false) String type, @RequestParam(required=false) String address)获取接口列表- 参数:
name- 接口名称type- 接口类型address- 接口地址- 返回:
-
findRequestParamsList
@GetMapping("/findRequestParamsList") public net.risesoft.pojo.Y9Result<List<InterfaceRequestParams>> findRequestParamsList(@RequestParam(required=false) String name, @RequestParam(required=false) String type, @RequestParam String id)获取接口请求参数列表- 参数:
name- 参数名称type- 参数类型id- 接口id- 返回:
-
findResponseParamsList
@GetMapping("/findResponseParamsList") public net.risesoft.pojo.Y9Result<List<InterfaceResponseParams>> findResponseParamsList(@RequestParam(required=false) String name, @RequestParam String id)获取接口响应参数列表- 参数:
name- 参数名称id- 接口id- 返回:
-
removeInterface
@PostMapping("/removeInterface") public net.risesoft.pojo.Y9Result<String> removeInterface(@RequestParam String id)移除接口信息- 参数:
id- 接口id- 返回:
-
removeRequestParams
@PostMapping("/removeRequestParams") public net.risesoft.pojo.Y9Result<String> removeRequestParams(@RequestParam String[] ids)移除接口请求参数- 参数:
ids- 参数ids- 返回:
-
removeResponseParams
@PostMapping("/removeResponseParams") public net.risesoft.pojo.Y9Result<String> removeResponseParams(@RequestParam String[] ids)移除接口响应参数- 参数:
ids- 参数ids- 返回:
-
saveAllResponseParams
@PostMapping("/saveAllResponseParams") public net.risesoft.pojo.Y9Result<String> saveAllResponseParams(String interfaceId, String jsonData)一键保存响应参数- 参数:
jsonData- 参数json- 返回:
-
saveInterface
@PostMapping("/saveInterface") public net.risesoft.pojo.Y9Result<String> saveInterface(InterfaceInfo info)保存接口信息- 参数:
info- 接口信息- 返回:
-
saveRequestParams
@PostMapping("/saveRequestParams") public net.risesoft.pojo.Y9Result<String> saveRequestParams(InterfaceRequestParams info)保存接口请求参数- 参数:
info- 参数信息- 返回:
-
saveResponseParams
@PostMapping("/saveResponseParams") public net.risesoft.pojo.Y9Result<String> saveResponseParams(InterfaceResponseParams info)保存接口响应参数- 参数:
info- 参数信息- 返回:
-
-