change the way how winix answer is created
Now we can return ezc content and models serialized in the same json structure, Xml and Csv are not implemented yet. Ezc frames are returned in 'ezc_frames' field. Main ezc stream is returned in 'main_stream' field. Frame url parameter can take more than one frame (names separated by commas). Honor Accept http header (AcceptParser). Samples: -------- http://domain.tld/dir/controller returns html answer from the main ezc stream http://domain.tld/dir/controller/container:raw returns html answer from the main ezc stream (the same as above) http://domain.tld/dir/controller/frame:abc returns "abc" frame as html http://domain.tld/dir/controller/container:json returns all serialized models to json and no ezc streams http://domain.tld/dir/controller/container:xml returns all serialized models to xml and no ezc streams (not implemented yet) http://domain.tld/dir/controller/container:json/frame:abc,xyz returns all serialized models to json and two frames in 'ezc_frames' object http://domain.tld/dir/controller/container:json/all_frames returns all serialized models to json and all frames in 'ezc_frames' object http://domain.tld/dir/controller/container:json/main_stream returns all serialized models and the main ezc stream in 'main_stream' field http://domain.tld/dir/controller/container:json/main_stream/all_frames returns all serialized models to json, all frames and the main stream
This commit is contained in:
@@ -676,15 +676,40 @@ public:
|
||||
// default: frame
|
||||
std::wstring request_frame_parameter;
|
||||
|
||||
// the name of the url parameter for returning all frames, e.g. https://domain.tld/mydir/myfunction/allframes
|
||||
// default: allframes
|
||||
// the name of the url parameter for returning all frames, e.g. https://domain.tld/mydir/myfunction/all_frames
|
||||
// default: all_frames
|
||||
std::wstring request_all_frames_parameter;
|
||||
|
||||
// the name of the url parameter for returning the main ezc stream, e.g. https://domain.tld/mydir/myfunction/main_stream
|
||||
// default: main_stream
|
||||
std::wstring request_main_stream_parameter;
|
||||
|
||||
// max lenght of the url frame parameter
|
||||
// default: 128
|
||||
size_t request_frame_parameter_max_length;
|
||||
|
||||
// max number of frames in the frame url parameter (they are separated by a comma)
|
||||
// default: 16
|
||||
// if you need more frames you can use all_frames url parameter to return all frames
|
||||
size_t request_frame_parameter_max_frames;
|
||||
|
||||
// the name of the root element when serializing request answer to xml
|
||||
// default: winix
|
||||
std::wstring xml_root;
|
||||
|
||||
// when true then when a user want to create a new account
|
||||
// the name of the field of the binary stream when serializing a request
|
||||
// default: bin_stream
|
||||
std::wstring bin_stream_field;
|
||||
|
||||
// the name of the field of the main ezc stream when serializing a request
|
||||
// default: main_stream
|
||||
std::wstring main_stream_field;
|
||||
|
||||
// the name of the field (object) of the ezc frames when serializing a request
|
||||
// default: ezc_frames
|
||||
std::wstring ezc_frames_field;
|
||||
|
||||
// when true then when a user want to create a new account
|
||||
// he has to provide his email and a message will be sent back to him
|
||||
// with a link to activate the account
|
||||
// default: true
|
||||
|
Reference in New Issue
Block a user