zoukankan      html  css  js  c++  java
  • @Apiimplicitparam的paramType

    转自:https://swagger.io/docs/specification/describing-parameters/

    Parameter Types

    OpenAPI 3.0 distinguishes between the following parameter types based on the parameter location. The location is determined by the parameter’s in key, for example, in: query or in: path.

    例如:

    @ApiOperation(value = "测试借口3", notes = "测试借口3", httpMethod = "GET", produces = MediaType.APPLICATION_JSON_VALUE)
    @RequestMapping(value = "test3", method = RequestMethod.GET)
    @ResponseBody
    public ResultResponse<String> test3(
    @ApiParam(value="颜色") @RequestParam String color
    // @ApiParam(value="形状") @Param("shape") String shapeStr

    ){
    // System.out.println(123121);
    // return ResultResponse.success("testResult: " + color + "," + shapeStr);
    return ResultResponse.success("testResult: " + color + ",");
    }

  • 相关阅读:
    Php compiler for .NET framework
    C++ Virtual Inheritance Memory Layout
    MIT公开课汉化
    OpenGL like Vulkan
    C++ Chrono Timer
    VisTools: C++模仿Java体系
    Lua IDE
    PHP调试
    Decoda
    JSRDB
  • 原文地址:https://www.cnblogs.com/YuyuanNo1/p/7792384.html
Copyright © 2011-2022 走看看