Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-1031

The Response's properties was overrided wrong between @APIOperation and @Resoponse on the controller method

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • java-chassis-1.1.0
    • Java-Chassis
    • None

    Description

      @ApiResponse(code = 200, message = "200 is ok............", response = String.class, responseHeaders = @ResponseHeader(name = "x-user-domain", response = String.class))
      @ApiOperation(nickname="getHelloworld", value="test", notes="this is a test", response = Integer.class, code = 200,
      responseHeaders =

      {@ResponseHeader(name = "x-user-name", response = String.class), @ResponseHeader(name = "x-user-id", response = String.class)}

      )

       

      swagger 's response's descritpion will be default "resoponse of 200", the best descritpion  should be "200 is ok............"

      Attachments

        Issue Links

          Activity

            People

              jeho0815 jeho0815
              jeho0815 jeho0815
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: