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

Support PUT /eholdings/kb-credentials/{credId}/users/{userId} to update details of user associated with KB

    XMLWordPrintable

Details

    • eHoldings Sprint 86
    • 3
    • Spitfire

    Description

      Provide a way to update details of a user associated with KB credentials by introducing an endpoint:
      PUT /eholdings/kb-credentials/<credentialsId>/users/<userId>

      Payload of the request should contain user details and credentialsId. User details are limited to:

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

      Sample request body:

      {
       "user":
          {
            "id": "1f8f660e-7dc9-4f6f-828f-96284c68a25",
             "credentialsId": "2ffa1940-2cf6-48b1-8cc9-5e539c61d93f",
            "firstName": "John",
            "middleName": "William",
            "lastName": "Doe",
            "patronGroup": "Staff",
            "userName": "john_doe"
          }
      }
      

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

      Requirements

      • details of user associated with particular KB credentials can be updated (this does not include credentialsId/userId - it cannot be changed)
      • an error is returned if user association is not found by credentialsId + userId

      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

                psmagin Pavlo Smahin
                dmtkachenko Dmytro Tkachenko
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases