Flecs v4.0
A fast entity component system (ECS) for C & C++
|
REST API for querying and mutating entities. More...
Classes | |
struct | EcsRest |
Component that creates a REST API server when instantiated. More... | |
Macros | |
#define | FLECS_REST_H |
#define | ECS_REST_DEFAULT_PORT (27750) |
Functions | |
FLECS_API const ecs_entity_t | ecs_id (EcsRest) |
Component that instantiates the REST API. | |
FLECS_API ecs_http_server_t * | ecs_rest_server_init (ecs_world_t *world, const ecs_http_server_desc_t *desc) |
Create HTTP server for REST API. | |
FLECS_API void | ecs_rest_server_fini (ecs_http_server_t *srv) |
Cleanup REST HTTP server. | |
FLECS_API void | FlecsRestImport (ecs_world_t *world) |
Rest module import function. | |
REST API for querying and mutating entities.
FLECS_API void ecs_rest_server_fini | ( | ecs_http_server_t * | srv | ) |
Cleanup REST HTTP server.
The server must have been created with ecs_rest_server_init().
FLECS_API ecs_http_server_t * ecs_rest_server_init | ( | ecs_world_t * | world, |
const ecs_http_server_desc_t * | desc ) |
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.
world | The world. |
desc | The HTTP server descriptor. |
FLECS_API void FlecsRestImport | ( | ecs_world_t * | world | ) |