1、
@ApiOperation(value = “”, produces = “application/json;charset=utf-8”)
@ApiResponses({
@ApiResponse(code = 200, message = “OK”, response = ),
@ApiResponse(code = 503, message = “”, response =)
})
@PutMapping(value = “/”)
public BaseResp update(@RequestBody Student)
@ApiModel("")
public class Student{
@ApiModelProperty( value = “”, required = , dataType = “”)
private long id;
…
2、
@ApiOperation(value = “”, produces = “”, notes = “”)
@ApiImplicitParams({
@ApiImplicitParam(paramType = “”, name = “”, value = “”, required = , dataType = “”)
})
@ApiResponses({
@ApiResponse(code = 200, message = “OK”, response = ),
@ApiResponse(code = 503, message = “Service Unavailable”, response = )
})
@DeleteMapping(value = “/”)
public Object delete(@RequestBody ArrayList ids)
…
3、
@ApiOperation(value = “”, produces = “”)
@ApiImplicitParams({
@ApiImplicitParam(paramType = “”, name = “”, value = “”, required = , dataType = “”)
})
@ApiResponses({
@ApiResponse(code = 200, message = “OK”, response = ),
@ApiResponse(code = 503, message = “Service Unavailable”, response =)
})
@GetMapping("/")
public Object get(Student stu,
@RequestParam(value = “”, required = , defaultValue = “1”) int name
@RequestParam(value = “”, required = , defaultValue = “1”) int age){
…
}