Notes
- The
/demo file renders the current number and loads the client-side scripts.
- The
/demo file also contains an int32 attribute named value that contains the latest value.
- The
/demo/jquery-3.6.0.js file is the jQuery library that runs in the browser.
- The
/demo/script.js file contains our client-side code that calls the /demo/api API endpoint upon clicking the button.
- The
/demo/api file contains our API implementation that runs on the server side, that increments the value stored in the /demo file, in its int32 attribute named value and returns the current value. (You can visit the /demo/api file in the browser and it will also increment the number.)