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;

    }

}

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值