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
@@ -208,9 +220,9 @@ final class ArticleEndpoint extends BaseEndpoint
208
220
}
209
221
```
210
222
211
-
Each method always returns a type of `void` and the output logic is solved via methods. The reason is that it is often necessary to pass a number of parameters and one output is not enough.
223
+
Each method can return output either via `send` methods or directly as a type object. A more modern approach is to return the entire object, as this gives us type checking and the underlying basis for automatically generated documentation.
212
224
213
-
> **Warning:** If you do not pass any output, endpoint processing will fail.
225
+
> **Warning:** If you do not pass any output (by method or return statement), endpoint processing will fail.
214
226
215
227
When processing actions, it is a good idea to return success or error information:
0 commit comments