1

I cannot add documentation on response header and generate this schema by using go-restful :

I want response body on schema to be like this:

"responses": {
  "302": {
    "description": "Found. Redirected to login page with either request_id or error.",
    "headers": {
      "Location": {
        "description": "The Location header",
        "type": "string"
      }
    }
  }
}

I've tried all the API and cannot get the expected result. for generating client code with go-swagger

anurjalal
  • 31
  • 3

0 Answers0