So, I've been working on using Drupal as a story archive (Fanfiction) since I found the project several years ago. ANd now I'm trying to create a module that takes all the configuration I would do for a page to present story related content and offer it up.
I of course want to keep the dependencies down, or keep the number of non-core dependecies to a minimum. Right now it's looking like I will absolutly have to have paragraphs, as I want to ensure a person can create a story with a full layout, or add illustrations to a page. Even have a few entries that are just comics.
I have coded some rest apis that are included in the folder src/Plugin/rest/resource/ . I have made a custom form where after selecting some options and clicking the submit button, I want to call the respective apis , so that the content get displayed.
I have looked for examples online, but I have not found anything helpful. Could you please let me know how can I go about this?