elasticio / maester-client

The official object-storage client library for sailor-nodejs.
Apache License 2.0
0 stars 0 forks source link

Method lookupObjectByQueryParameter should respond with JSON instead of string #10

Closed A3a3e1 closed 3 years ago

A3a3e1 commented 3 years ago

Method lookupObjectByQueryParameter returns string instead of Object or array. Parsing the response is on user now. Makes sense to add this logic to the method itself

A3a3e1 commented 3 years ago

The same for lookupObjectById. The logic could be taken from here https://github.com/elasticio/id-linking-component/blob/master/lib/utils/MaesterClient.ts

A3a3e1 commented 3 years ago

The method was renamed to lookupObjectsByQueryParameters and now supports meta headers and up to 5 query headers. Done