Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 998 Bytes

step5.md

File metadata and controls

24 lines (13 loc) · 998 Bytes

Step 5 - Exposing backend functionality via web methods

So we've created a unique API key for each of our users. Now it's time to show it on the front end. We will expose a backend function that the client can call as if it was a regular async function without the hassle of issuing a network request. We call these functions Web Modules.

  • Drag a text field to the stage.
  • Create a new .jsw file and expose the API key of the user
  • Call it from the front end and change the text of the text field.

All Done?

If so your site should look similar to

site

Let's continue to Step 6 - Monitoring a service and exposing REST API

Having Troubles?

Take a look at: