RESTCONF PUT/POST -d {} media is enforced
This commit is contained in:
parent
aa653d0831
commit
aa14f8ac2c
35 changed files with 933 additions and 640 deletions
|
|
@ -38,6 +38,15 @@
|
|||
#ifndef _CLIXON_RESTCONF_H_
|
||||
#define _CLIXON_RESTCONF_H_
|
||||
|
||||
/*
|
||||
* Types (also in restconf_lib.h)
|
||||
*/
|
||||
enum restconf_media{
|
||||
YANG_DATA_JSON, /* "application/yang-data+json" (default for RESTCONF) */
|
||||
YANG_DATA_XML /* "application/yang-data+xml" */
|
||||
};
|
||||
typedef enum restconf_media restconf_media;
|
||||
|
||||
/*
|
||||
* Prototypes (also in restconf_lib.h)
|
||||
*/
|
||||
|
|
@ -55,7 +64,7 @@ int restconf_test(FCGX_Request *r, int dbg);
|
|||
cbuf *readdata(FCGX_Request *r);
|
||||
int get_user_cookie(char *cookiestr, char *attribute, char **val);
|
||||
int api_return_err(clicon_handle h, FCGX_Request *r, cxobj *xerr,
|
||||
int pretty, int use_xml, int code);
|
||||
int pretty, restconf_media media, int code);
|
||||
|
||||
|
||||
#endif /* _CLIXON_RESTCONF_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue