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

Support GET /eholdings/user-kb-credential to retrieve KB credentials entry for user

    XMLWordPrintable

    Details

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

      Description

      Support retrieval of KB credentials entry user is assigned to by the following method:

      GET /eholdings/user-kb-credential

      The payload of the response should contain information about particular KB credentials entry.
      Sample response body:

      {
          "id": "2ffa1940-2cf6-48b1-8cc9-5e539c61d93f",
          "type": "credentials",
          "attributes": { 
            "name": "University of Massachusetts - Amherst",
            "apiKey": "XXXX",
            "url": "YYYY",
            "customerId": "ZZZZ"
           },
           "metadata": {
              "createdDate": "2020-03-17T15:22:04.098",
              "updatedDate": "2020-03-17T15:23:04.098+0000",
              "createdByUserId": "1f8f660e-7dc9-4f6f-828f-96284c68a250",
              "updatedByUserId": "6893f51f-b40c-479d-bd78-1704ab5b802b",
              "createdByUsername": "john_doe",
              "updatedByUsername": "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

      • endpoint returns an existing KB credentials entry, a user is assigned to.
      • returns an error if a user was not assigned to any KB credentials entry

      Acceptance Criteria

      • the endpoint created and works according to the requirements
      • the endpoint is covered with unit tests
      • API tests added to cover endpoint

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases