REST API for querying and mutating entities.
More...
REST API for querying and mutating entities.
◆ ECS_REST_DEFAULT_PORT
| #define ECS_REST_DEFAULT_PORT (27750) |
Default port for the REST API server.
Definition at line 44 of file rest.h.
◆ FLECS_REST_H
◆ ecs_rest_server_fini()
Clean up REST HTTP server.
The server must have been created with ecs_rest_server_init().
- Parameters
-
| srv | The server to destroy. |
◆ ecs_rest_server_init()
Create HTTP server for REST API.
This allows for the creation of a REST server that can be managed by the application without using Flecs systems.
- Parameters
-
| world | The world. |
| desc | The HTTP server descriptor. |
- Returns
- The HTTP server, or NULL if failed.
◆ FlecsRestImport()
REST module import function.
Usage:
#define ECS_IMPORT(world, id)
Wrapper around ecs_import().
- Parameters
-