Re: Questions about advised use for @ApiResponse

2018-05-24 Thread David Karr
sure what you mean, adding the annotations above means defining such > responses in the resolved OpenAPI spec; this obviously makes sense if the > underlying service is indeed producing such responses. > > > On Monday, 21 May 2018 18:56:26 UTC+2, David Karr wrote: >> >

Questions about advised use for @ApiResponse

2018-05-21 Thread David Karr
I've been writing REST services for a long time, but I've never used Swagger before, although I've been aware of it. I'm coming into a new project that is using it, although perhaps not as well as it could. I see a bunch of operations that define api responses like this: @ApiResponse(code =