Uploaded image for project: 'ui-eholdings'
  1. ui-eholdings
  2. UIEH-427

Validate URL params for packages

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      eHoldings Sprint 43
    • Story Points:
      3
    • Back End Estimate:
      Small < 3 days
    • Estimation Notes and Assumptions:
      May need do to a little research since Packages was recently refactored.

      Description

      GET /eholdings/packages/123 should give an error indicating invalid packageId.
      Please Note that packageId is a combination of providerId-packageId.

      Mod-kb-ebsco gives an unrelated error response passing the request to RM API:

      {"errors":[{"title":"{\"errors\":[{\"code\":1006,\"subCode\":0,\"message\":\"Invalid value for orderby. Acceptable values are: Relevance, 0, PackageName, 1\"},{\"code\":1005,\"subCode\":0,\"message\":\"Parameter Count is missing.\"},{\"code\":1005,\"subCode\":0,\"message\":\"Parameter Offset is missing.\"},{\"code\":1005,\"subCode\":0,\"message\":\"Parameter OrderBy is missing.\"}]}"}],"jsonapi":{"version":"1.0"}}
      

      Validate packageId for different HTTP methods that this endpoint supports and write associated unit tests.

      Another example: DELETE /eholdings/packages/abc-abc and DELETE /eholdings/packages/abc each give 404 and 400 with no error message. During validation of url params, ensure that error messaging is consistent.

        TestRail: Results

          Attachments

            Activity

              People

              Assignee:
              elrickvm Elrick Ryan
              Reporter:
              sduvvuri Sobha Duvvuri
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  TestRail: Runs

                    TestRail: Cases