Trying to generate a JSON spec for my API that I can import into Swagger. This module works great for entity bases services and also works for getting the basic spec generated for a non entity API using REST.
But my issue is generating the parameters and model for custom API in swagger. Is it possible to create a hook to customize the generation of the spec and have the ability to add your own parameter definitions and such ?

If not this might be a good feature to add.

attached is a screen shot of the section (from an existing order entity API) i'm trying to populate for a non entity API

CommentFileSizeAuthor
Selection_079.png25.49 KBmdupree

Comments

mdupree created an issue. See original summary.

tedbow’s picture

Are you using this REST I assume?

mdupree’s picture

@tedbow Yes, were are using REST

mdupree’s picture

Issue summary: View changes
mycw1991’s picture

@tedbow is there a follow up for this feature request?

richgerdes’s picture

At this point no work has been done to implement this by either @tedbow or I.

I just committed the patch for #2874877: Refactor OpenApiController. The patch makes the generator system plugin based, which will make the implementation of other api docs much similar.

If you are willing to make an attempt at a plugin for implementing the other rest endpoints, or extending the existing one to include them. I would be willing to review the patch and help get it merged

mycw1991’s picture

@richgerdes

Thank you for your work! I have not yet had the chance to go over the refactor patch.
I will be keep my eyes this module so that I might contribute.

HibaAbdulmonem’s picture

any updates on supporting rest views???