SERVERLESS 101 Task 2 issue

Mission: SERVERLESS 101
Task: Invoke the API Service using generated client SDK

Hi!

I am doing API request (purchase) and getting “Cache Key must be provided and must be a string.” message…

Any ideas on what I am doign wrong? :slight_smile:

Thanks!

Hello,

What does the request body look like in the API service invocation?

Regards,
Mark

1 Like

Hi Mark,

You are fast! Thanks!

I am calling API from Adalo and it looks this way:

Hello @Dmytro_Potekhin

You did not provide a cartName in request body.

Regards,
Inna

Thanks, Inna!

Yes, I got it - What would the json be?

Thanks!

Regards,
Dmytro

You can try invoking the service through Backendless console and see how the request is structured:

Yes, this is what I did, but did not get how to send the cart name.
Can the cart name be sent via URL / JSON? How?
Thanks!

Just include the following in the request body:

“YourCartName”

1 Like

Worked with {“cartName”: “MyCart”}

Thanks!

Regards,
D