thiagobustamante / typescript-rest-swagger

Swagger tools for typescript-rest
156 stars 57 forks source link

How to set the summary? #116

Open Shamshiel opened 4 years ago

Shamshiel commented 4 years ago

I'm unsure what I need to write to set the summary of a method.

@Accept('text/plain')
@Path('mypath')
export class MyService {
    /**
     * This description will be used to describe the get operation of path '/mypath' on the generated swagger
     * @param test And this will describe the parameter test of this same operation
     */
    @GET
    @Path('secondpath')
    test2( @QueryParam('testParam')test?: string ): Person {
        return {name: 'OK'};
    }
}

This sets the "description" property of the swagger.json. How to set the summary property?

wisedog commented 4 years ago

/**