Still not sure on REST call format

0 votes

Hi Himanshu,

Thank you for the help. For my #3 question I am not sure I understand your recommendation. For the examples that are given for REST storage service the following URLs are used:

Insert JSON Document:

URL : https://api.shephertz.com/cloud/1.0/storage/insert/dbName/{dbName}/collectionName/{collectionName}  

Find document by key/value:

URL : https://api.shephertz.com/cloud/1.0/storage/findDocByKV/dbName/{dbName}/collectionName/{collectionName}/{key}/{value}

For the corresponding Javascript calls the method names are:

Insert JSON Document: insertJSONDocument

Find document by key/value: findDocumentByKeyValue

See that REST uses "insert" in the URL while the javascript call is "insertJSONDocument". And for Find document by key value REST uses "findDocByKV" while the javascript call is "findDocumentByKeyValue"

There is not consistency belween the method calls used in the REST URLs vs the javascript API. Without documentation how am I supposed to know what the correct string is to use in the REST URL for each method?

related to an answer for: Follow up questions
asked May 28, 2015 in App42 Cloud API-BaaS by gjmcshea (10 points)

1 Answer

0 votes

Hello,

Every API in SDK has different URL and data signing keys. Our PHP SDK source code is open, please have a look at the SDK code to know about HTTP end point URL and data signing mechanism. If you face any issue, then let us know we are happy to serve you.

Thanks,

Himanshu Sharma

answered May 29, 2015 by hs00105 (2,005 points)
Also requesting you to put a new comment, if you have any further query related to this thread instead of creating a new one.

Thanks,
Himanshu Sharma
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...