File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
http-api/src/main/java/io/avaje/http/api Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 12
12
* Specify endpoint response status code/description/type.
13
13
*
14
14
* <p>When not specified the default 2xx openAPI generation is based on the javadoc of the method.
15
- * <p> Will not override the default 2xx generated openapi unless status code is 2xx
15
+ *
16
+ * <p>Will not override the default 2xx generated openapi unless status code is 2xx
17
+ *
16
18
* <pre>{@code
17
19
* @Post("/post")
18
20
* @OpenAPIReturns(responseCode = "200", description = "from annotaion")
21
23
* ResponseModel endpoint() {}
22
24
*
23
25
* }</pre>
26
+ *
27
+ * <p>Can also be placed on a class to add to every method in the controller.
28
+ *
29
+ * <pre>{@code
30
+ * @OpenAPIResponse(
31
+ * responseCode = "403",
32
+ * description = "Insufficient rights to this resource."
33
+ * )
34
+ * public class MyController {
35
+ * ...
36
+ * }
37
+ * }</pre>
24
38
*/
25
39
@ Target ({TYPE , METHOD })
26
40
@ Retention (RUNTIME )
You can’t perform that action at this time.
0 commit comments