How to create a plugin with backend API calls to populate composer while drafting?

Here’s another piece that seems to be pretty important, as it describes how frontend and backend are glued together via routes: