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

Unify service return values

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • PUP 6.15.0
    • None
    • Coremunity
    • Platform Core KANBAN
    • Needs Assessment
    • Enhancement
    • Change the return values of the http client service methods to consistently return the request response in addition to previous return values
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support