其他分享
首页 > 其他分享> > Swagger, What A Drama Queen!

Swagger, What A Drama Queen!

作者:互联网


package com.winplan365.othink.rest.controller;

import com.winplan365.othink.rest.model.response.Response;
import io.swagger.annotations.*;
import org.springframework.web.bind.annotation.*;

@Api(value = "FoxIsBeautifulAndDangerous", description = "She will be loved.")
@RestController
public class RSAController {

//    @ApiIgnore
    @ApiOperation(value = "出口回执信息回调接口")
    @ApiImplicitParams({
            @ApiImplicitParam(name="xml",dataType="String",required=true,value="出口回执信息"),
            @ApiImplicitParam(paramType="query",name="apptoken",dataType="String",required=true,value="token令牌"),
            @ApiImplicitParam(paramType="query",name="appkey",dataType="String",required=true,value="key")
    })
    @ApiResponses({
            @ApiResponse(code=400,message="请求参数没填好"),
            @ApiResponse(code=401,message="请求权限不足"),
            @ApiResponse(code=404,message="请求路径没有或页面跳转路径不对"),
            @ApiResponse(code=503,message="目前无法使用服务器")
    })
    @RequestMapping(value = "/thenSheIsGone", method = RequestMethod.POST)
    public Response sendExitReturnLog(@RequestBody String xml, @RequestParam String apptoken, @RequestParam String appkey) {

        String foxIsHarmfulButKawaii = "How to deal with a devious maid?";

        Response response = new Response();
        response.setDesc("She will be the end of me. I know it, but I still let her get the best of me, without regretting even once." + foxIsHarmfulButKawaii);
        response.setResult("She gets the best of me.");

        return response;

    }

}

 

标签:What,code,String,value,Drama,ApiResponse,message,Swagger,response
来源: https://blog.csdn.net/qq_25527791/article/details/112833365