You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -161,11 +159,15 @@ The annotations provide the following documentation:
161
159
162
160
* `@Tag`: Groups related endpoints together in the documentation
163
161
* `@Operation`: Describes what the endpoint does
164
-
* `@APIResponses`: Documents possible HTTP responses from the operation
165
162
* `@APIResponse`: Defines a specific response with status code and content
166
163
* `@Content`: Specifies the response media type and structure
167
164
* `@Schema`: References the data model returned (in this case, `Product.class`)
168
165
166
+
[NOTE]
167
+
====
168
+
The `@APIResponse` annotation is repeatable, which means you can apply it multiple times to document different response codes. You only need the `@APIResponses` wrapper annotation when using the `extensions` field to add vendor-specific metadata to all responses.
169
+
====
170
+
169
171
These annotations enrich the `ProductResource` class with metadata necessary for generating comprehensive OpenAPI documentation automatically.
0 commit comments