Here are the examples of the java api org.springframework.http.ResponseEntity.ok() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
4793 Examples
19
View Source File : SysUserController.java
License : GNU Affero General Public License v3.0
Project Creator : zycSummer
License : GNU Affero General Public License v3.0
Project Creator : zycSummer
/**
* 所有用户列表
*/
@GetMapping("/page")
@PreAuthorize("@pms.hasPermission('sys:user:page')")
public ResponseEnreplacedy<IPage<SysUser>> page(String username, PageParam<SysUser> page) {
IPage<SysUser> sysUserPage = sysUserService.page(page, new LambdaQueryWrapper<SysUser>().eq(SysUser::getShopId, SecurityUtils.getSysUser().getShopId()).like(StrUtil.isNotBlank(username), SysUser::getUsername, username));
return ResponseEnreplacedy.ok(sysUserPage);
}
19
View Source File : SysMenuController.java
License : GNU Affero General Public License v3.0
Project Creator : zycSummer
License : GNU Affero General Public License v3.0
Project Creator : zycSummer
/**
* 获取菜单页面的表
* @return
*/
@GetMapping("/table")
public ResponseEnreplacedy<List<SysMenu>> table() {
List<SysMenu> sysMenuList = sysMenuService.listMenuAndBtn();
return ResponseEnreplacedy.ok(sysMenuList);
}
19
View Source File : SysMenuController.java
License : GNU Affero General Public License v3.0
Project Creator : zycSummer
License : GNU Affero General Public License v3.0
Project Creator : zycSummer
@GetMapping("/nav")
@ApiOperation(value = "获取用户所拥有的菜单和权限", notes = "通过登陆用户的userId获取用户所拥有的菜单和权限")
public ResponseEnreplacedy<Map<Object, Object>> nav() {
List<SysMenu> menuList = sysMenuService.listMenuByUserId(SecurityUtils.getSysUser().getUserId());
Collection<GrantedAuthority> authorities = SecurityUtils.getSysUser().getAuthorities();
return ResponseEnreplacedy.ok(MapUtil.builder().put("menuList", menuList).put("authorities", authorities).build());
}
19
View Source File : ScheduleJobController.java
License : GNU Affero General Public License v3.0
Project Creator : zycSummer
License : GNU Affero General Public License v3.0
Project Creator : zycSummer
/**
* 定时任务列表
*/
@GetMapping("/page")
@PreAuthorize("@pms.hasPermission('sys:schedule:page')")
public ResponseEnreplacedy<IPage<ScheduleJob>> page(String beanName, PageParam<ScheduleJob> page) {
IPage<ScheduleJob> scheduleJobs = scheduleJobService.page(page, new LambdaQueryWrapper<ScheduleJob>().like(StrUtil.isNotBlank(beanName), ScheduleJob::getBeanName, beanName));
return ResponseEnreplacedy.ok(scheduleJobs);
}
19
View Source File : ProdController.java
License : GNU Affero General Public License v3.0
Project Creator : zycSummer
License : GNU Affero General Public License v3.0
Project Creator : zycSummer
@GetMapping("/tagProdList")
@ApiOperation(value = "首页所有标签商品接口", notes = "获取首页所有标签商品接口")
public ResponseEnreplacedy<List<TagProductDto>> getTagProdList() {
List<TagProductDto> productDtoList = prodService.tagProdList();
return ResponseEnreplacedy.ok(productDtoList);
}
19
View Source File : ProdController.java
License : GNU Affero General Public License v3.0
Project Creator : zycSummer
License : GNU Affero General Public License v3.0
Project Creator : zycSummer
@GetMapping("/prodListByTagId")
@ApiOperation(value = "通过分组标签获取商品列表", notes = "通过分组标签id(tagId)获取商品列表")
@ApiImplicitParams({ @ApiImplicitParam(name = "tagId", value = "当前页,默认为1", required = true, dataType = "Long") })
public ResponseEnreplacedy<IPage<ProductDto>> prodListByTagId(@RequestParam(value = "tagId") Long tagId, PageParam<ProductDto> page) {
IPage<ProductDto> productDtoIPage = prodService.pageByTagId(page, tagId);
return ResponseEnreplacedy.ok(productDtoIPage);
}
19
View Source File : ProdController.java
License : GNU Affero General Public License v3.0
Project Creator : zycSummer
License : GNU Affero General Public License v3.0
Project Creator : zycSummer
@GetMapping("/pageProd")
@ApiOperation(value = "通过分类id商品列表信息", notes = "根据分类ID获取该分类下所有的商品列表信息")
@ApiImplicitParams({ @ApiImplicitParam(name = "categoryId", value = "分类ID", required = true, dataType = "Long") })
public ResponseEnreplacedy<IPage<ProductDto>> prodList(@RequestParam(value = "categoryId") Long categoryId, PageParam<ProductDto> page) {
IPage<ProductDto> productDtoIPage = prodService.pageByCategoryId(page, categoryId);
return ResponseEnreplacedy.ok(productDtoIPage);
}
19
View Source File : ProdController.java
License : GNU Affero General Public License v3.0
Project Creator : zycSummer
License : GNU Affero General Public License v3.0
Project Creator : zycSummer
@GetMapping("/discountProds")
@ApiOperation(value = "根据活动id获取活动商品列表", notes = "根据活动id获取活动商品列表")
@ApiImplicitParams({ @ApiImplicitParam(name = "discountId", value = "活动id", required = true, dataType = "Long") })
public ResponseEnreplacedy<IPage<ProductDto>> getDiscountProds(@RequestParam(value = "discountId", required = true) Long discountId, PageParam<ProductDto> page) {
IPage<ProductDto> productDtoList = prodService.pageByDiscountId(page, discountId);
return ResponseEnreplacedy.ok(productDtoList);
}
19
View Source File : ProdCommController.java
License : GNU Affero General Public License v3.0
Project Creator : zycSummer
License : GNU Affero General Public License v3.0
Project Creator : zycSummer
@DeleteMapping
@ApiOperation(value = "删除评论", notes = "根据id删除")
public ResponseEnreplacedy<Void> deleteProdComm(Long prodCommId) {
prodCommService.removeById(prodCommId);
return ResponseEnreplacedy.ok().build();
}
19
View Source File : CategoryController.java
License : GNU Affero General Public License v3.0
Project Creator : zycSummer
License : GNU Affero General Public License v3.0
Project Creator : zycSummer
/**
* 所有的
*/
@GetMapping("/listCategory")
public ResponseEnreplacedy<List<Category>> listCategory() {
return ResponseEnreplacedy.ok(categoryService.list(new LambdaQueryWrapper<Category>().le(Category::getGrade, 2).eq(Category::getShopId, SecurityUtils.getSysUser().getShopId()).orderByAsc(Category::getSeq)));
}
19
View Source File : ExampleControllerAdvice.java
License : Apache License 2.0
Project Creator : yuanmabiji
License : Apache License 2.0
Project Creator : yuanmabiji
@ExceptionHandler
public ResponseEnreplacedy<String> onExampleError(ExampleException exception) {
return ResponseEnreplacedy.ok("recovered");
}
19
View Source File : CollectController.java
License : MIT License
Project Creator : yizzuide
License : MIT License
Project Creator : yizzuide
// 测试无参数读body的问题
@GetMapping("ping")
public ResponseEnreplacedy<String> ping() {
return ResponseEnreplacedy.ok("pong");
}
19
View Source File : BookResource.java
License : Apache License 2.0
Project Creator : yifanzheng
License : Apache License 2.0
Project Creator : yifanzheng
@PostMapping("/books")
public ResponseEnreplacedy<Void> insertBook(@RequestBody Book book) {
int i = bookService.insertPlayer(book);
return ResponseEnreplacedy.ok().build();
}
19
View Source File : UserResource.java
License : Apache License 2.0
Project Creator : yifanzheng
License : Apache License 2.0
Project Creator : yifanzheng
@DeleteMapping("/users/{username}")
public ResponseEnreplacedy<Void> deleteUser(@PathVariable String username) {
userService.deleteUser(username);
return ResponseEnreplacedy.ok().build();
}
19
View Source File : ConfigurationAdminResource.java
License : Apache License 2.0
Project Creator : xm-online
License : Apache License 2.0
Project Creator : xm-online
protected ResponseEnreplacedy<String> createResponse(Boolean toJson, String path, Configuration maybeConfiguration) {
String content = maybeConfiguration.getContent();
if (path.endsWith(".yml") && toJson) {
return ResponseEnreplacedy.ok().contentType(MediaType.APPLICATION_JSON_UTF8).body(convertToJson(content));
} else if (path.endsWith(".json")) {
return ResponseEnreplacedy.ok().contentType(MediaType.APPLICATION_JSON_UTF8).body(content);
} else {
return ResponseEnreplacedy.ok().contentType(MediaType.TEXT_PLAIN).body(content);
}
}
19
View Source File : SwitcherController.java
License : Apache License 2.0
Project Creator : xincao9
License : Apache License 2.0
Project Creator : xincao9
/**
* 开关列表
*
* @param host 主机
* @param port 端口
* @return 开关列表
*/
@GetMapping("endpoint/keys/{host}/{port}")
public ResponseEnreplacedy<List<Map<String, Object>>> endpointKeys(@PathVariable String host, @PathVariable Integer port) {
if (StringUtils.isBlank(host) || port == null || port <= 0 || port > 65535) {
return ResponseEnreplacedy.status(HttpStatus.BAD_REQUEST).build();
}
List<Map<String, Object>> keys = getSwitcheres();
if (keys == null || keys.isEmpty()) {
return ResponseEnreplacedy.status(400).build();
}
keys = keys.stream().filter((key) -> (StringUtils.equals(host, String.valueOf(key.get("host"))) && port.intValue() == (Integer) key.get("port"))).collect(Collectors.toList());
return ResponseEnreplacedy.ok(keys);
}
19
View Source File : SentryController.java
License : Apache License 2.0
Project Creator : WinterChenS
License : Apache License 2.0
Project Creator : WinterChenS
@PostMapping("/role")
public ResponseEnreplacedy<?> createRole(@RequestParam("username") String username, @RequestParam("role") String role) {
sentryService.createRole(username, role);
return ResponseEnreplacedy.ok().build();
}
19
View Source File : UserspaceController.java
License : MIT License
Project Creator : whichard
License : MIT License
Project Creator : whichard
/**
* 保存个人设置
*
* @param username
* @param user
* @return
*/
@PostMapping("/{username}/profile")
@PreAuthorize("authentication.name.equals(#username)")
public ResponseEnreplacedy<Response> saveProfile(@PathVariable("username") String username, User user) {
try {
userService.saveOrUpdateUserWithProfile(user);
} catch (ConstraintViolationException e) {
return ResponseEnreplacedy.ok().body(new Response(false, ConstraintViolationExceptionHandler.getMessage(e)));
} catch (Exception e) {
return ResponseEnreplacedy.ok().body(new Response(false, e.getMessage()));
}
return ResponseEnreplacedy.ok().body(new Response(true, "修改成功", null));
}
19
View Source File : CategoryController.java
License : MIT License
Project Creator : wangyuheng
License : MIT License
Project Creator : wangyuheng
@RequestMapping(value = "/category/{id}/{userId}", method = RequestMethod.POST)
public ResponseEnreplacedy<Void> ignoredParam(@PathVariable long id, @PathVariable @ApiIgnore int userId) {
return ResponseEnreplacedy.ok(null);
}
19
View Source File : CategoryController.java
License : MIT License
Project Creator : wangyuheng
License : MIT License
Project Creator : wangyuheng
@RequestMapping(value = "/category/Resource", method = RequestMethod.GET)
public ResponseEnreplacedy<String> search(@RequestParam(value = "someEnum") Category someEnum) {
return ResponseEnreplacedy.ok(someEnum.name());
}
19
View Source File : CategoryController.java
License : MIT License
Project Creator : wangyuheng
License : MIT License
Project Creator : wangyuheng
@RequestMapping(value = "/category/{id}/map", method = RequestMethod.POST)
public ResponseEnreplacedy<Void> map(@PathVariable String id, @RequestParam Map<String, String> test) {
return ResponseEnreplacedy.ok(null);
}
19
View Source File : CategoryController.java
License : MIT License
Project Creator : wangyuheng
License : MIT License
Project Creator : wangyuheng
@RequestMapping(value = "/category/{id}", method = RequestMethod.POST)
public ResponseEnreplacedy<Void> someOperation(@PathVariable long id, @RequestBody int userId) {
return ResponseEnreplacedy.ok(null);
}
19
View Source File : TechnosController.java
License : GNU General Public License v3.0
Project Creator : voyages-sncf-technologies
License : GNU General Public License v3.0
Project Creator : voyages-sncf-technologies
@ApiOperation("Get all techno names")
@GetMapping
public ResponseEnreplacedy<List<String>> getTechnosName() {
log.debug("getTechnosName");
List<String> technosNames = technoUseCases.getTechnosName();
log.debug("return getTechnosName: {}", technosNames.toString());
return ResponseEnreplacedy.ok(technosNames);
}
19
View Source File : TechnosController.java
License : GNU General Public License v3.0
Project Creator : voyages-sncf-technologies
License : GNU General Public License v3.0
Project Creator : voyages-sncf-technologies
@ApiOperation("Get all versions for a given techno")
@GetMapping("/{techno_name}")
public ResponseEnreplacedy<List<String>> getTechnoVersions(@PathVariable("techno_name") final String technoName) {
log.debug("getTechnoVersions technoName: {}", technoName);
List<String> technoVersions = technoUseCases.getTechnoVersions(technoName);
log.debug("return getTechnoVersions: {}", technoVersions.toString());
return ResponseEnreplacedy.ok(technoVersions);
}
19
View Source File : ModulesController.java
License : GNU General Public License v3.0
Project Creator : voyages-sncf-technologies
License : GNU General Public License v3.0
Project Creator : voyages-sncf-technologies
@ApiOperation("Create a release from an existing workingcopy")
@PostMapping("/create_release")
public ResponseEnreplacedy<ModuleIO> createRelease(Authentication authentication, @RequestParam("module_name") final String moduleName, @RequestParam("module_version") final String moduleVersion, @RequestParam(value = "release_version", required = false) final String releaseVersion) {
log.info("createRelease {} {} => {}", moduleName, moduleVersion, releaseVersion);
checkQueryParameterNotEmpty("module_name", moduleName);
checkQueryParameterNotEmpty("module_version", moduleVersion);
ModuleView moduleView = moduleUseCases.createRelease(moduleName, moduleVersion, releaseVersion, new User(authentication));
ModuleIO moduleOutput = new ModuleIO(moduleView);
return ResponseEnreplacedy.ok(moduleOutput);
}
19
View Source File : HttpEntityMethodProcessorMockTests.java
License : MIT License
Project Creator : Vip-Augus
License : MIT License
Project Creator : Vip-Augus
// SPR-13626
@Test
public void shouldHandleGetIfNoneMatchWildcard() throws Exception {
String wildcardValue = "*";
String etagValue = "\"some-etag\"";
servletRequest.addHeader(HttpHeaders.IF_NONE_MATCH, wildcardValue);
ResponseEnreplacedy<String> returnValue = ResponseEnreplacedy.ok().eTag(etagValue).body("body");
initStringMessageConversion(TEXT_PLAIN);
processor.handleReturnValue(returnValue, returnTypeResponseEnreplacedy, mavContainer, webRequest);
replacedertConditionalResponse(HttpStatus.OK, "body", etagValue, -1);
}
19
View Source File : HttpEntityMethodProcessorMockTests.java
License : MIT License
Project Creator : Vip-Augus
License : MIT License
Project Creator : Vip-Augus
// SPR-14559
@Test
public void shouldHandleInvalidIfNoneMatchWithHttp200() throws Exception {
String etagValue = "\"deadb33f8badf00d\"";
servletRequest.addHeader(HttpHeaders.IF_NONE_MATCH, "unquoted");
ResponseEnreplacedy<String> returnValue = ResponseEnreplacedy.ok().eTag(etagValue).body("body");
initStringMessageConversion(TEXT_PLAIN);
processor.handleReturnValue(returnValue, returnTypeResponseEnreplacedy, mavContainer, webRequest);
replacedertConditionalResponse(HttpStatus.OK, "body", etagValue, -1);
}
19
View Source File : HttpEntityMethodProcessorMockTests.java
License : MIT License
Project Creator : Vip-Augus
License : MIT License
Project Creator : Vip-Augus
// SPR-13626
@Test
public void shouldHandleIfNoneMatchIfMatch() throws Exception {
String etagValue = "\"some-etag\"";
servletRequest.addHeader(HttpHeaders.IF_NONE_MATCH, etagValue);
servletRequest.addHeader(HttpHeaders.IF_MATCH, "ifmatch");
ResponseEnreplacedy<String> returnValue = ResponseEnreplacedy.ok().eTag(etagValue).body("body");
initStringMessageConversion(TEXT_PLAIN);
processor.handleReturnValue(returnValue, returnTypeResponseEnreplacedy, mavContainer, webRequest);
replacedertConditionalResponse(HttpStatus.NOT_MODIFIED, null, etagValue, -1);
}
19
View Source File : HttpEntityMethodProcessorMockTests.java
License : MIT License
Project Creator : Vip-Augus
License : MIT License
Project Creator : Vip-Augus
@Test
public void handleEtagWithHttp304() throws Exception {
String etagValue = "\"deadb33f8badf00d\"";
servletRequest.addHeader(HttpHeaders.IF_NONE_MATCH, etagValue);
ResponseEnreplacedy<String> returnValue = ResponseEnreplacedy.ok().eTag(etagValue).body("body");
initStringMessageConversion(TEXT_PLAIN);
processor.handleReturnValue(returnValue, returnTypeResponseEnreplacedy, mavContainer, webRequest);
replacedertConditionalResponse(HttpStatus.NOT_MODIFIED, null, etagValue, -1);
}
19
View Source File : ResponseFactory.java
License : Apache License 2.0
Project Creator : turms-im
License : Apache License 2.0
Project Creator : turms-im
public static <T> ResponseEnreplacedy<ResponseDTO<T>> okIfTruthy(T data) {
return ResponseEnreplacedy.ok(new ResponseDTO<>(TurmsStatusCode.OK, data));
}
19
View Source File : ResponseFactory.java
License : Apache License 2.0
Project Creator : turms-im
License : Apache License 2.0
Project Creator : turms-im
public static <T> ResponseEnreplacedy<T> raw(T data) {
return ResponseEnreplacedy.ok(data);
}
19
View Source File : TopicController.java
License : MIT License
Project Creator : tsypuk
License : MIT License
Project Creator : tsypuk
@GetMapping(value = "/topics/{id}")
public ResponseEnreplacedy<TopicResource> getTopic(@PathVariable long id) {
return topicRepository.findOne(id).map(topic -> ResponseEnreplacedy.ok(new TopicResource(topic))).orElse(new ResponseEnreplacedy(HttpStatus.NOT_FOUND));
}
19
View Source File : SimulateController.java
License : Apache License 2.0
Project Creator : tomsun28
License : Apache License 2.0
Project Creator : tomsun28
@PutMapping("/api/v1/source3")
public ResponseEnreplacedy<Map<String, String>> api1Mock13(ServerWebExchange exchange) {
return ResponseEnreplacedy.ok(getResponseMap(exchange));
}
19
View Source File : SimulateController.java
License : Apache License 2.0
Project Creator : tomsun28
License : Apache License 2.0
Project Creator : tomsun28
@PatchMapping("/api/v2/source4")
public ResponseEnreplacedy<Map<String, String>> api2Mock20(ServerWebExchange exchange) {
return ResponseEnreplacedy.ok(getResponseMap(exchange));
}
19
View Source File : SimulateController.java
License : Apache License 2.0
Project Creator : tomsun28
License : Apache License 2.0
Project Creator : tomsun28
@PostMapping("/api/v1/source1")
public ResponseEnreplacedy<Map<String, String>> api1Mock2(ServerWebExchange exchange) {
return ResponseEnreplacedy.ok(getResponseMap(exchange));
}
19
View Source File : SimulateController.java
License : Apache License 2.0
Project Creator : tomsun28
License : Apache License 2.0
Project Creator : tomsun28
@PutMapping("/api/v2/source5")
public ResponseEnreplacedy<Map<String, String>> api2Mock24(ServerWebExchange exchange) {
return ResponseEnreplacedy.ok(getResponseMap(exchange));
}
19
View Source File : SimulateController.java
License : Apache License 2.0
Project Creator : tomsun28
License : Apache License 2.0
Project Creator : tomsun28
@GetMapping("/api/v2/source6")
public ResponseEnreplacedy<Map<String, String>> api2Mock26(ServerWebExchange exchange) {
return ResponseEnreplacedy.ok(getResponseMap(exchange));
}
19
View Source File : SimulateController.java
License : Apache License 2.0
Project Creator : tomsun28
License : Apache License 2.0
Project Creator : tomsun28
@PatchMapping("/api/v1/source3")
public ResponseEnreplacedy<Map<String, String>> api1Mock15(ServerWebExchange exchange) {
return ResponseEnreplacedy.ok(getResponseMap(exchange));
}
19
View Source File : SimulateController.java
License : Apache License 2.0
Project Creator : tomsun28
License : Apache License 2.0
Project Creator : tomsun28
@PostMapping("/api/v1/source3")
public ResponseEnreplacedy<Map<String, String>> api1Mock12(ServerWebExchange exchange) {
return ResponseEnreplacedy.ok(getResponseMap(exchange));
}
19
View Source File : SimulateController.java
License : Apache License 2.0
Project Creator : tomsun28
License : Apache License 2.0
Project Creator : tomsun28
@PostMapping("/api/v2/source5")
public ResponseEnreplacedy<Map<String, String>> api2Mock22(ServerWebExchange exchange) {
return ResponseEnreplacedy.ok(getResponseMap(exchange));
}
19
View Source File : SimulateController.java
License : Apache License 2.0
Project Creator : tomsun28
License : Apache License 2.0
Project Creator : tomsun28
@GetMapping("/api/v2/source4")
public ResponseEnreplacedy<Map<String, String>> api2Mock16(ServerWebExchange exchange) {
return ResponseEnreplacedy.ok(getResponseMap(exchange));
}
19
View Source File : SimulateController.java
License : Apache License 2.0
Project Creator : tomsun28
License : Apache License 2.0
Project Creator : tomsun28
@PatchMapping("/api/v2/source5")
public ResponseEnreplacedy<Map<String, String>> api2Mock25(ServerWebExchange exchange) {
return ResponseEnreplacedy.ok(getResponseMap(exchange));
}
19
View Source File : SimulateController.java
License : Apache License 2.0
Project Creator : tomsun28
License : Apache License 2.0
Project Creator : tomsun28
@DeleteMapping("/api/v2/source5")
public ResponseEnreplacedy<Map<String, String>> api2Mock23(ServerWebExchange exchange) {
return ResponseEnreplacedy.ok(getResponseMap(exchange));
}
19
View Source File : SimulateController.java
License : Apache License 2.0
Project Creator : tomsun28
License : Apache License 2.0
Project Creator : tomsun28
@PostMapping("/api/v2/source4")
public ResponseEnreplacedy<Map<String, String>> api2Mock17(ServerWebExchange exchange) {
return ResponseEnreplacedy.ok(getResponseMap(exchange));
}
19
View Source File : SimulateController.java
License : Apache License 2.0
Project Creator : tomsun28
License : Apache License 2.0
Project Creator : tomsun28
@PatchMapping("/api/v1/source1")
public ResponseEnreplacedy<Map<String, String>> api1Mock5(ServerWebExchange exchange) {
return ResponseEnreplacedy.ok(getResponseMap(exchange));
}
19
View Source File : SimulateController.java
License : Apache License 2.0
Project Creator : tomsun28
License : Apache License 2.0
Project Creator : tomsun28
@PostMapping("/api/v2/source6")
public ResponseEnreplacedy<Map<String, String>> api2Mock27(ServerWebExchange exchange) {
return ResponseEnreplacedy.ok(getResponseMap(exchange));
}
19
View Source File : SimulateController.java
License : Apache License 2.0
Project Creator : tomsun28
License : Apache License 2.0
Project Creator : tomsun28
@PatchMapping("/api/v1/source2")
public ResponseEnreplacedy<Map<String, String>> api1Mock10(ServerWebExchange exchange) {
return ResponseEnreplacedy.ok(getResponseMap(exchange));
}
19
View Source File : SimulateController.java
License : Apache License 2.0
Project Creator : tomsun28
License : Apache License 2.0
Project Creator : tomsun28
@GetMapping("/api/v1/source3")
public ResponseEnreplacedy<Map<String, String>> api1Mock11(ServerWebExchange exchange) {
return ResponseEnreplacedy.ok(getResponseMap(exchange));
}
19
View Source File : SimulateController.java
License : Apache License 2.0
Project Creator : tomsun28
License : Apache License 2.0
Project Creator : tomsun28
@DeleteMapping("/api/v2/source6")
public ResponseEnreplacedy<Map<String, String>> api2Mock28(ServerWebExchange exchange) {
return ResponseEnreplacedy.ok(getResponseMap(exchange));
}
19
View Source File : SimulateController.java
License : Apache License 2.0
Project Creator : tomsun28
License : Apache License 2.0
Project Creator : tomsun28
@PatchMapping("/api/v2/source6")
public ResponseEnreplacedy<Map<String, String>> api2Mock30(ServerWebExchange exchange) {
return ResponseEnreplacedy.ok(getResponseMap(exchange));
}
See More Examples