@GetMapping("/{id}")
    public ShenyuAdminResult detailApi(@PathVariable("id")
                                       @Existed(message = "api is not existed",
                                               provider = ApiMapper.class) final String id) {
        ApiVO apiVO = apiService.findById(id);
        return ShenyuAdminResult.success(ShenyuResultMessage.DETAIL_SUCCESS, apiVO);
    }
@Test
    public void testDetailApi() throws Exception {
        given(this.apiService.findById("123")).willReturn(apiVO);
        this.mockMvc.perform(MockMvcRequestBuilders.get("/api/{id}", "123"))
                .andExpect(status().isOk())
                .andExpect(jsonPath("$.message", is(ShenyuResultMessage.DETAIL_SUCCESS)))
                .andExpect(jsonPath("$.data.id", is(apiVO.getId())))
                .andReturn();
    }