Flecs v4.0
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
rest.h File Reference

REST API addon. More...

Go to the source code of this file.

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_tecs_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.
 

Detailed Description

REST API addon.

A small REST API that uses the HTTP server and JSON serializer to provide access to application data for remote applications.

A description of the API can be found in docs/FlecsRemoteApi.md

Definition in file rest.h.