Uploaded image for project: 'REST Client'
  1. REST Client
  2. MGNLRESTCL-105

Remove unnecessary api from rest client and restfn that was recently introduced

    XMLWordPrintable

Details

    • Task
    • Resolution: Obsolete
    • Neutral
    • None
    • 2.0
    • None
    • None

    Description

      New method with body parameter was recently introduced into the api of rest client.

      Response invoke(String restCallName, Object body, Map<String, Object> additionalDefaultValues);
      

      In fact, such introduction is not needed because whole body object can be safely set using additionalDefaultValues. Example:
      Definition:

      baseUrl: https://some.api
      restCalls:
        myRestCallWithBody:
          path: /some/path
          method: post
          body: {body}
      

      and template:

      [#assign mySuperLongBody = "{.......}"]
      [#assign result = restfn.call("client", "myRestCallWithBody", {body: mySuperLongBody)]
      

      Method should be also removed from restfn.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              jsimak Jaroslav Simak
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoR