Skip to content
  • Jan Kneschke's avatar
    c36dba93
    Bug#29556935 REST API PARAMETERS IGNORED BUT NO RETURN CODE 400 · c36dba93
    Jan Kneschke authored
    REST API guidelines encourage that endpoints should enforce strict
    handling of parameters to allow extension in the future.
    
    If an endpoint supports no parameters, it should return an error
    to allow adding them at a later point.
    
    - added a ensure_no_params to add endpoints
    - added tests for each each endpoint for "no-params"
    - fixed crash if HttpRequest::get_...() tries to create a std::string
      from a nullptr
    
    RB: 22172
    c36dba93
    Bug#29556935 REST API PARAMETERS IGNORED BUT NO RETURN CODE 400
    Jan Kneschke authored
    REST API guidelines encourage that endpoints should enforce strict
    handling of parameters to allow extension in the future.
    
    If an endpoint supports no parameters, it should return an error
    to allow adding them at a later point.
    
    - added a ensure_no_params to add endpoints
    - added tests for each each endpoint for "no-params"
    - fixed crash if HttpRequest::get_...() tries to create a std::string
      from a nullptr
    
    RB: 22172
Loading