Mission: SERVERLESS
Task: Invoke the API Service
I just completed this module and wanted to give you guys a heads up that there were some discrepancies and bits missing in the downloaded files that I had to figure out how to fix manually. This might be part of the learning process but it seemed a bit more complex than usual so I thought that maybe you didn’t intend it to be this way.
Steps to reproduce:
- I clicked “Download Client SDK” and selected Javascript, as in the video.
-
controller.js
was missing so I needed to write it myself. -
CodelessShoppingCartService.html
was missing some lines:
<script type="text/javascript" src="./js/controller.js" ></script>
<a href="javascript:getInstructions()">Get Instructions</a>
<a href="javascript:addItem()">Add Item</a>
<a href="javascript:getItems()">Get Items</a>
<a href="javascript:purchase()">Purchase</a>
<div id="output">
</div>
On line 15 of CodelessShoppingCartService.js
I needed to replace Backendless.APIServices.CodelessShoppingCartService = {
with
this.CodelessShoppingCartService = {
…I think thats all.
Thanks for making this interesting series of learning modules, it has been really helpful with learning Backendless.