Is there any plans in the future to be able to display documentation for 
the @COPY httpMethod in the SwaggerUI?

We are in a situation where we need to copy resources. I have now 
implemented it in two ways:

using a queryParameter via a POST:

POST /resouces?copyOf=123123

and using the COPY httpMethod:

COPY /resources/123123

My code looks like this:

@COPY
@Path("{id : [0-9]+}")
@ApiOperation(
 value = "Copies a ...",
 notes = "Makes a copy of ...",
 response = ...
)
public Response copy(@ApiParam(value="Id of the ...", required = true) 
@PathParam("id") long id) {
  // Make a copy of the resource with id = {id}
  ...
}


Would it be easy to modify Swagger to also display COPY documentation? Has 
anyone done this?

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to