No. It’s not a swagger-ui issue, it’s the spec that doesn’t allow it, and I’ve 
never seen anyone ask for COPY to be added to the spec.

 

 

 

From: <[email protected]> on behalf of Henrik Helmø Larsen 
<[email protected]>
Reply-To: "[email protected]" 
<[email protected]>
Date: Friday, 12 August 2016 at 00:21
To: Swagger <[email protected]>
Subject: Display the @Copy httpMethod in SwaggerUI

 

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.

-- 
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