declex icon indicating copy to clipboard operation
declex copied to clipboard

@ServerRequests in methods

Open smaugho opened this issue 7 years ago • 0 comments

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

smaugho avatar Jun 11 '17 16:06 smaugho