Uploaded image for project: 'mod-kb-ebsco-java'
  1. mod-kb-ebsco-java
  2. MODKBEKBJ-408

Support GET /eholdings/kb-credentials/{credId}/users to retrieve users associated with KBs

    XMLWordPrintable

Details

    • eHoldings Sprint 86
    • 5
    • Spitfire

    Description

      To support a list of users associated with KB credentials introduce an endpoint to retrieve a collection of users by the following method:

      GET /eholdings/kb-credentials/<credentialsId>/users

      Payload of the response should contain a list of users found and related credentialsIds. User details are limited to:

      • user id
      • user name
      • first name
      • middle name
      • last name
      • patron group

      Sample response body:

      {
       "users": [
          {
            "id": "1f8f660e-7dc9-4f6f-828f-96284c68a25",
            "credentialsId": "2ffa1940-2cf6-48b1-8cc9-5e539c61d93f",
            "firstName": "John",
            "middleName": "William",
            "lastName": "Doe",
            "patronGroup": "Staff",
            "userName": "john_doe"
          },
          {
            "id": "6893f51f-b40c-479d-bd78-1704ab5b802b",
            "credentialsId": "2ffa1940-2cf6-48b1-8cc9-5e539c61d93f",
            "firstName": "Jane",
            "middleName": "Rosemary",
            "lastName": "Doe",
            "patronGroup": "Staff",
            "userName": "jane_doe"
          }
        ]
      }
      

      More details can be found in the dedicated section of "Spike: MODKBEKBJ-390 - describe design for "Single tenant multiple EBSCO KBs" scenario"

      Requirements

      • user collection endpoint returns users associated with particular KB credentials
      • returns empty response if no users associated

      Acceptance Criteria

      • the endpoint created and works according to the requirements
      • the endpoint is covered with unit tests
      • API tests updated respectively

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Natalia Zaitseva Natalia Zaitseva
                dmtkachenko Dmytro Tkachenko
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases