cueOS  2.4
cueOS - Universal Show Control OS for ARM
DMX512_rest_api.h
1
9#ifndef DMX512_API_H_
10#define DMX512_API_H_
11
12#define DMX512_ARG_UNDEF 513
18typedef enum{
28
32typedef enum{
43
44
48static const char *const DMX512_rest_api_endpoints_str[] = {
49 "/patch",
50 "/groups",
51 "/scenes",
52 "/chasers",
53 "/effects",
54 "/cues",
55 "/configure"
56};
57
61static char *const DMX512_rest_api_args_str[] = {
62 "id",
63 "addr",
64 "ch_count",
65 "fadein",
66 "fadeout",
67 "channels",
68 "values",
69 "start",
70 "stop"
71};
72
73
75
76#endif
77
static const char *const DMX512_rest_api_endpoints_str[]
DMX512 API endpoint string.
DMX512_rest_api_endpoint_e
DMX512 API endpoint string indexes.
void DMX512_rest_api_router(http_request_s *req)
Parses the current HTTP request method and URI in order to route requests to a specific api function.
static char *const DMX512_rest_api_args_str[]
DMX512 API parameter strings.
DMX512_rest_api_args_e
DMX512 API parameter strings indexes.
@ DMX512_API_ENDPOINT_CONFIGURE
@ DMX512_API_ENDPOINT_CHASERS
@ DMX512_API_ENDPOINT_EFFECTS
@ DMX512_API_ENDPOINT_DEFAULT
@ DMX512_API_ENDPOINT_CUES
@ DMX512_API_ENDPOINT_SCENES
@ DMX512_API_ENDPOINT_GROUPS
@ DMX512_API_ENDPOINT_PATCH
@ DMX512_API_PARAM_FADEOUT_TIME
@ DMX512_API_PARAM_CHANNEL_COUNT
@ DMX512_API_PARAM_STOP
@ DMX512_API_PARAM_ID
@ DMX512_API_PARAM_CHANNELS
@ DMX512_API_PARAM_FADEIN_TIME
@ DMX512_API_PARAM_ADDRESS
@ DMX512_API_PARAM_START
@ DMX512_API_PARAM_VALUES
HTTP request object.
Definition: http_request.h:44