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

Support GET /eholdings/kb-credentials to retrieve KB credentials list

    XMLWordPrintable

Details

    • eHoldings Sprint 85
    • 5
    • Spitfire

    Description

      Support retrieval a collection of KB credentials by the following method:

      GET /eholdings/kb-credentials

      The payload of the response should contain a list of KB credentials.
      Sample response body:

      {
        "data": [
          {
            "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"
            }
          }
        ],
        "meta": {
          "totalResults": 1
        },
        "jsonapi": {
          "version": "1.0"
        }
      }
      
      

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

      Requirements

      • KB credentials collection endpoint returns a list of existing KB credentials
      • returns an empty response with meta-information(i.e totalResults = 0 ) if no KB credentials exist

      Acceptance Criteria

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

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                psmagin Pavlo Smahin
                Natalia Zaitseva Natalia Zaitseva
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases