public class SqlGatewayRestAPIDocGenerator extends Object
One HTML file is generated for each RestServerEndpoint
implementation that can be
embedded into .md files using {% include ${generated.docs.dir}/file.html %}
. Each file
contains a series of HTML tables, one for each REST call.
The generated table for each REST call looks like this:
---------------------------------------------------------- | URL | ---------------------------------------------------------- | Verb: verb (GET|POST|...) | Response code: responseCode| ---------------------------------------------------------- | Path parameters (if any are defined) | ---------------------------------------------------------- | - parameterName: description | | ... | ---------------------------------------------------------- | Query parameters (if any are defined) | ---------------------------------------------------------- | - parameterName (requisiteness): description | | ... | ---------------------------------------------------------- | Request json schema (a collapsible "Request" button) | ---------------------------------------------------------- | Response json schema (a collapsible "Response" button) | ----------------------------------------------------------
Constructor and Description |
---|
SqlGatewayRestAPIDocGenerator() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Generates the Sql Gateway REST API documentation.
|
public static void main(String[] args) throws IOException, ConfigurationException
args
- args[0] contains the directory into which the generated files are placedIOException
- if any file operation failedConfigurationException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.