Package net.risesoft.controller
Class InterfaceRestController
- java.lang.Object
-
- net.risesoft.controller.InterfaceRestController
-
@RestController @RequestMapping(value="/vue/interface", produces="application/json") public class InterfaceRestController extends Object接口信息- Author:
- zhangchongjie
- Date:
- 2024/05/23
-
-
Constructor Summary
Constructors Constructor Description InterfaceRestController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)保存接口响应参数
-
-
-
Method Detail
-
findByInterfaceId
@GetMapping("/findByInterfaceId") public net.risesoft.pojo.Y9Result<List<ItemInterfaceBind>> findByInterfaceId(@RequestParam String id)获取接口绑定事项列表- Parameters:
id- 接口id- Returns:
-
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)获取接口列表- Parameters:
name- 接口名称type- 接口类型address- 接口地址- Returns:
-
findRequestParamsList
@GetMapping("/findRequestParamsList") public net.risesoft.pojo.Y9Result<List<InterfaceRequestParams>> findRequestParamsList(@RequestParam(required=false) String name, @RequestParam(required=false) String type, @RequestParam String id)获取接口请求参数列表- Parameters:
name- 参数名称type- 参数类型id- 接口id- Returns:
-
findResponseParamsList
@GetMapping("/findResponseParamsList") public net.risesoft.pojo.Y9Result<List<InterfaceResponseParams>> findResponseParamsList(@RequestParam(required=false) String name, @RequestParam String id)获取接口响应参数列表- Parameters:
name- 参数名称id- 接口id- Returns:
-
removeInterface
@PostMapping("/removeInterface") public net.risesoft.pojo.Y9Result<String> removeInterface(@RequestParam String id)移除接口信息- Parameters:
id- 接口id- Returns:
-
removeRequestParams
@PostMapping("/removeRequestParams") public net.risesoft.pojo.Y9Result<String> removeRequestParams(@RequestParam String[] ids)移除接口请求参数- Parameters:
ids- 参数ids- Returns:
-
removeResponseParams
@PostMapping("/removeResponseParams") public net.risesoft.pojo.Y9Result<String> removeResponseParams(@RequestParam String[] ids)移除接口响应参数- Parameters:
ids- 参数ids- Returns:
-
saveAllResponseParams
@PostMapping("/saveAllResponseParams") public net.risesoft.pojo.Y9Result<String> saveAllResponseParams(String interfaceId, String jsonData)一键保存响应参数- Parameters:
jsonData- 参数json- Returns:
-
saveInterface
@PostMapping("/saveInterface") public net.risesoft.pojo.Y9Result<String> saveInterface(InterfaceInfo info)保存接口信息- Parameters:
info- 接口信息- Returns:
-
saveRequestParams
@PostMapping("/saveRequestParams") public net.risesoft.pojo.Y9Result<String> saveRequestParams(InterfaceRequestParams info)保存接口请求参数- Parameters:
info- 参数信息- Returns:
-
saveResponseParams
@PostMapping("/saveResponseParams") public net.risesoft.pojo.Y9Result<String> saveResponseParams(InterfaceResponseParams info)保存接口响应参数- Parameters:
info- 参数信息- Returns:
-
-