Project

General

Profile

Actions

action #65384

closed

coordination #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

Added by oorlov over 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
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.

Actions #1

Updated by riafarov over 4 years ago

  • Due date deleted (2020-04-21)
  • Target version set to future
Actions #2

Updated by riafarov over 4 years ago

  • Status changed from New to Resolved
  • Assignee set to riafarov
Actions

Also available in: Atom PDF