The Weavy REST API is more than just a set of predefined endpoints. You are free to modify existing methods as well as add your own logic.
The controllers that are shipped with the Server SDK are designed for the most common CRUD scenarios and to provide you with examples on how to organize your API, but there are often situations where you would want to perform custom actions or expose additional data in the responses.
A guiding principle has been that it is often more effective to write a custom endpoint that performs a number of actions, instead of making individual calls to a number of different endpoints, each with its own overhead in terms of network latency, parsing etc. The later approach is also more error prone and more complicated to recover from if an error occurs.
Built-in API methods
The code that make up the REST API is located in the Areas\Api
folder. API methods are defined in Web API controllers under the Areas\Api\Controllers
folder. Each controller class serves and performs actions that relates to a distinct entity type (e.g. user, space, app).
You are free to modify and/or add API methods to serve your needs. Just keep in mind that this will add some complexity when you merge in changes from weavy-sln repo.