Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-10418

Unify service return values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 6.15.0
    • Component/s: None
    • Labels:
    • Template:
      PUP Bug Template
    • Epic Link:
    • Team:
      Coremunity
    • Sprint:
      Platform Core KANBAN
    • Method Found:
      Needs Assessment
    • Release Notes:
      Enhancement
    • Release Notes Summary:
      Change the return values of the http client service methods to consistently return the request response in addition to previous return values
    • QA Risk Assessment:
      Needs Assessment

      Description

      The get|post|put|* REST API methods aren't consistent about return values. For example put can return a boolean, the stringified response body or the response object. It would be good to make those consistent. Also it would be good to always return the response so that the caller can elect to resubmit the request with different parameters if needed. If the method also returns an entity, then have the method return an array containing [response, entity].

        Attachments

          Activity

            People

            Assignee:
            melissa Melissa Stone
            Reporter:
            josh Josh Cooper
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support