Actions
action #65384
closedcoordination #36712: [saga] Use YaST specific framework for GUI testing
coordination #50672: [funtional][y][epic] Use libyui-rest-api for YaST modules testing
[functional][y] Use JSON in all responses from libyui-rest-api
Start date:
2020-04-07
Due date:
% Done:
0%
Estimated time:
Description
Motivation¶
Currently, some of the responses from libyu-rest-api (defined in YHttpWidgetsActionHandler.cc) return plain text, whilst others return JSON.
Example with JSON from YHttpWidgetsActionHandler.cc:
65 if ( widgets.empty() )
66 {
67 body << "{ \"error\" : \"Widget not found\" }" << std::endl;
Example with plain text from YHttpWidgetsActionHandler.cc:
151 else
152 {
153 body << "Action is not supported for the selected widget: " << widget->widgetClass() << std::endl;
154 return MHD_HTTP_NOT_FOUND;
155 }
Task¶
In order to be consistent all the responses should be changed to JSON.
Updated by riafarov over 4 years ago
- Due date deleted (
2020-04-21) - Target version set to future
Updated by riafarov over 4 years ago
- Status changed from New to Resolved
- Assignee set to riafarov
This is fixed now: https://github.com/rwx788/libyui-rest-api-1/tree/libyui12
Actions