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

Get rid of defaultValues in RestClient definition

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Neutral Neutral
    • None
    • None
    • API
    • None

      As a developer, I want to declare RestCall parameters (such as query, header, cookie, and path) and assign its default value at the same place.

      Current implementation:

      call_1:
        path: /fixedpath/{page: "{pageParam}"}
        queryParameters: 
          id: "{idParam}"
          catalog: "fixedCatalog" # unmodifiable
        headers: 
          lang: "{langParam}"
          content-type: "application/json" # unmodifiable
        defaultValues: 
          pageParam: 1
          idParam: 001
          langParam: eng
      

      Proposal:

      call_1:
        path: /fixedpath/{page:1}
        queryParameters: 
          id: "{idParam:001}"
          catalog: "fixedCatalog" # unmodifiable
        headers: 
          lang: "{lang:eng}"
          content-type: "application/json" # unmodifiable
      

      Acceptance criteria:

      • Remove defaultValues
      • Invocations can modify templated parameters
      • Invocations cannot modify fixed parameters
      • the Rest Client app could display all parameters for customization

       

        Acceptance criteria

              Unassigned Unassigned
              thien.quach Quach Hao Thien
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:

                  Task DoD