declex
declex copied to clipboard
@ServerRequests in methods
Create methods which could run any server request when called.
The idea is to use the @ServerRequest, in a way which doesn't needs to be declared as a @ServerModel (although, it will need a set of features of a server model).
@ServerRequest(action = "records/save/booking/{remote_id}")
public Booking_ doSomething(int remote_id){}
The method could be also declared static, so that it could be called from different places. This will give a more natural interface for ServerRequests which doesn't