GET a Customer's associated Provider's Numeric Id

Priority

Labels

Environment

None

Template

None

Description

A customer's provider's numeric id is required to create custom packages and custom titles.

Mod-kb-ebsco currently looks up a provider's numeric id with a request such as the following

https://sandbox.ebsco.io/rm/rmaccounts/apidvgvmt/vendors?count=25&offset=1&orderby=relevance&search=apidvgvmt

{
"totalResults": 1,
"vendors": [
{
"vendorId": 123356,
"vendorName": "API DEV GOVERNMENT CUSTOMER",
"isCustomer": true,
"packagesTotal": 10,
"packagesSelected": 2,
"vendorToken": null
}
]
}

This method is problematic in that results are only returned when custom packages exist for the provider.

The method is currently used n mod-kb-ebsco-java code when creating custom packages

https://github.com/folio-org/mod-kb-ebsco-java/blob/8a0bb789d4f2cb088162684db146a3cb909b0e9b/src/main/java/org/folio/rmapi/RMAPIService.java#L441

A better method is being developed to get associated numeric id.

mod-kb-ebsco-java should use this method when available

GET /rm/rmacconts/{custid}/ to get the VendorID for the corresponding CustID.

For example – rm/rmaccounts/apidvcorp/ as noted in notes section

As an added note – may want to consider caching this value (per tenant) to avoid RM API lookup each time a custom package gets created (to get provider id)

Reference F28047 for details

Development Team

Spitfire

Release

None

Story Points

Sprint

Checklist

hide

TestRail: Results

Activity

Show:

Carole Godfrey December 13, 2018 at 4:25 PM

Sample request/response from RM API

New response has addition of vendorId and ftfTokens.

labels array – will only return elements that have a populated displayLabel. Prior version returned all 5 labels

rm/rmaccounts/apidvcorp/
{ "proxy": { "id": "TestingFolio" }, "vendorId": "123355", "ftfTokens": [ { "key": "CCC.LicenseType", "token": "test" }, { "key": "CCC.Password", "token": "test" }, { "key": "CCC.Username", "token": "tst" }, { "key": "COAlliance.Id", "token": "test" }, { "key": "EBSCOILL.Email", "token": "test" }, { "key": "EBSCOILL.FormNumber", "token": "test" }, { "key": "FirstSearch.AuthorizationCode", "token": "1" }, { "key": "MDConsult.Password", "token": "test" }, { "key": "MDConsult.Username", "token": "test" }, { "key": "OCLC.Symbol", "token": "1" }, { "key": "OVID.Password", "token": "test" }, { "key": "password.csa", "token": "test11" }, { "key": "Relais.Password", "token": "1" }, { "key": "Relais.Username", "token": "test" }, { "key": "SOD.Email", "token": "1" }, { "key": "SOD.InstitutionCode", "token": "1" }, { "key": "SyndeticsClient.Id", "token": "1" }, { "key": "user.csa", "token": "test1" } ], "labels": [ { "id": 1, "displayLabel": "Andr", "displayOnFullTextFinder": false, "displayOnPublicationFinder": true }, { "id": 2, "displayLabel": "Frontside", "displayOnFullTextFinder": false, "displayOnPublicationFinder": true }, { "id": 3, "displayLabel": "Hello third label", "displayOnFullTextFinder": false, "displayOnPublicationFinder": true }, { "id": 4, "displayLabel": "Mohan", "displayOnFullTextFinder": false, "displayOnPublicationFinder": true }, { "id": 5, "displayLabel": "Raj", "displayOnFullTextFinder": false, "displayOnPublicationFinder": true } ] }
Done

Details

Assignee

Reporter

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created October 3, 2018 at 12:57 PM
Updated January 25, 2019 at 1:53 AM
Resolved January 25, 2019 at 1:53 AM
TestRail: Cases
TestRail: Runs

Flag notifications