resgateio / resgate

A Realtime API Gateway used with NATS to build REST, real time, and RPC APIs, where all your clients are synchronized seamlessly.
https://resgate.io
MIT License
689 stars 67 forks source link

Pre-defined call methods #18

Closed jirenius closed 6 years ago

jirenius commented 6 years ago

Issue

Some call methods needs to be pre-defined to allow specific behaviour by resgate and resclient.

Methods

new

Used for creating new resources. Needed to be defined with the return value containing the newly created rid. This way a web resource request can return with a 201 Created and a Location. For the RES client protocol, the response may contain the newly created rid and all its linked resources.

set

Used for setting model properties. Has already been implemented, but needs to be more clearly defined in resprotocol documentation.

jirenius commented 6 years ago

Fixed in https://github.com/jirenius/resgate/pull/17