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

Support POST /eholdings/kb-credentials/{credId}/users to associate user with KB

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      eHoldings Sprint 86
    • Story Points:
      3
    • Development Team:
      Spitfire

      Description

      To support association of user with KB credentials introduce an endpoint:
      POST /eholdings/kb-credentials/<credentialsId>/users

      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

      • user associated with particular KB credentials
      • an error is returned if user is already associated with any KB credentials

      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases