Here is the simple example of calling server-side API functions that are written in JavaScript. The back-end team used Sequelize ORM package on Node.js. Also, we've created the client-side API that used Axios package to call server-side functions (from controllers).
1) Here is the screen shot of list component, which content we got by calling server-side API:
2) The code snippets:
- The part of code from client API (lines 12 and 24):
- The part of code from .vue list component (lines 4 and 18):
1) Here is the screen shot of list component, which content we got by calling server-side API:
2) The code snippets:
- The part of code from client API (lines 12 and 24):
- The part of code from .vue list component (lines 4 and 18):