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
@@ -281,7 +281,9 @@ Use this when accessing the script via a direct link, a webhook, or a third-part
281
281
The framework automatically handles your controller's return value based on whether the `@ResponseBody` decorator is used (note that `@RestController` applies this by default):
282
282
283
283
#### A. Default Wrapper (No `@ResponseBody`)
284
+
284
285
If the controller method is not marked with `@ResponseBody`, the framework returns a full HTTP-like payload:
286
+
285
287
```json
286
288
{
287
289
"status": 200,
@@ -293,6 +295,7 @@ If the controller method is not marked with `@ResponseBody`, the framework retur
293
295
```
294
296
295
297
#### B. Direct Context (`@ResponseBody`)
298
+
296
299
If the method is marked with `@ResponseBody`, the framework bypasses the payload wrapper and returns only the data directly.
0 commit comments