* If the data type of query parameter is "int" or "bool" in OpenAPI Spec, the request url will not be generated correctly. ( PR #6692 )
45 lines
960 B
C
45 lines
960 B
C
/*
|
|
* v1_handler.h
|
|
*
|
|
* Handler defines a specific action that should be taken
|
|
*/
|
|
|
|
#ifndef _v1_handler_H_
|
|
#define _v1_handler_H_
|
|
|
|
#include <string.h>
|
|
#include "../external/cJSON.h"
|
|
#include "../include/list.h"
|
|
#include "../include/keyValuePair.h"
|
|
#include "../include/binary.h"
|
|
|
|
typedef struct v1_handler_t v1_handler_t;
|
|
|
|
#include "v1_exec_action.h"
|
|
#include "v1_http_get_action.h"
|
|
#include "v1_tcp_socket_action.h"
|
|
|
|
|
|
|
|
typedef struct v1_handler_t {
|
|
struct v1_exec_action_t *exec; //model
|
|
struct v1_http_get_action_t *http_get; //model
|
|
struct v1_tcp_socket_action_t *tcp_socket; //model
|
|
|
|
} v1_handler_t;
|
|
|
|
v1_handler_t *v1_handler_create(
|
|
v1_exec_action_t *exec,
|
|
v1_http_get_action_t *http_get,
|
|
v1_tcp_socket_action_t *tcp_socket
|
|
);
|
|
|
|
void v1_handler_free(v1_handler_t *v1_handler);
|
|
|
|
v1_handler_t *v1_handler_parseFromJSON(cJSON *v1_handlerJSON);
|
|
|
|
cJSON *v1_handler_convertToJSON(v1_handler_t *v1_handler);
|
|
|
|
#endif /* _v1_handler_H_ */
|
|
|