8.2. Server#

8.2.1. Main server class#

vantage6.server.ServerApp#

8.2.2. Starting the server#

vantage6.server.run_server#

Warning

Note that the run_server function is normally not used directly to start the server, but is used as utility function in places that start the server. The recommended way to start a server is using uWSGI as is done in v6 server start.

vantage6.server.run_dev_server#

8.2.3. Permission management#

vantage6.server.model.rule.Scope#

vantage6.server.model.rule.Operation#

vantage6.server.model.permission.RuleCollection#

vantage6.server.permission.PermissionManager#

8.2.4. Socket functionality#

vantage6.server.websockets.DefaultSocketNamespace#

8.2.5. API endpoints#

Warning

The API endpoints are also documented on the /apidocs endpoint of the server (e.g. https://cotopaxi.vantage6.ai/apidocs). That documentation requires a different format than the one used to create this documentation. We are therefore not including the API documentation here. Instead, we merely list the supporting functions and classes.

vantage6.server.resource#

vantage6.server.resource.common.output_schema#

vantage6.server.resource.common.auth_helper#

vantage6.server.resource.common.swagger_template#

This module contains the template for the OAS3 documentation of the API.

8.2.6. SQLAlchemy models#

vantage6.server.model.base#

This module contains a few base classes that are used by the other models.

Database models for the API resources#

vantage6.server.model.algorithm_port.AlgorithmPort#

vantage6.server.model.authenticatable.Authenticatable#

vantage6.server.model.collaboration.Collaboration#

vantage6.server.model.node.Node#

vantage6.server.model.organization.Organization#

vantage6.server.model.run.Run#

vantage6.server.model.role.Role#

vantage6.server.model.rule.Rule#

vantage6.server.model.task.Task#

vantage6.server.model.user.User#

8.2.7. Database utility functions#

vantage6.server.db#

8.2.8. Mail service#

vantage6.server.mail_service#

8.2.9. Default roles#

vantage6.server.default_roles#

8.2.10. Custom server exceptions#

vantage6.server.exceptions#