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

Support PATCH /eholdings/kb-credentials{credentialsId} to partially update existing KB credentials entry

    XMLWordPrintable

    Details

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

      Description

      Support partial update of KB credentials by following endpoint:

      PATCH /eholdings/kb-credentials/{credentialsId}

      Request body might contain all credentials attributes, but at least one is required. The attributes that are absent should be taken from old version of credentials. For instance the following request can be used to replace credentials' name only:

      {"data": {
            "id":"1879626b-1e99-4449-ab91-9fc620bb78ad",
            "type":"kbCredentials",
            "attributes":{
                 "name":"Knowledge base"
             },
            "meta":{
                   "createdDate":"2020-06-02T07:13:47.501+0000",
                   "createdByUserId":"2e5b4486-ec72-502f-8dc0-7608636cd096",
                   "createdByUsername":"user1"
            }
      }
      }
      

      Requirements

      • KB credentials entity information can be partially updated
      • an error is returned if KB API Credentials are invalid

      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases