public class OpenAPIAction<A extends OpenAPIAction> extends FileAction<A>
Rule.RuleMatcher| Modifier and Type | Field and Description |
|---|---|
protected boolean |
copyToOutputDirInDevMode |
protected java.lang.String |
outputBaseDir |
protected java.lang.String |
patchesBaseDir |
protected java.lang.String |
templateBaseDir |
protected OpenAPISpecWriter |
writer |
baseDir, filesALL_METHODS, configMap, description, excludeMatchers, excludeOn, includeMatchers, includeOn, log, name, order, params| Constructor and Description |
|---|
OpenAPIAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
doGet(Request req,
Response res)
Handle an HTTP GET.
|
io.inversion.json.JSList |
findPatches(Request req) |
java.lang.String |
findTemplate(Request req) |
io.swagger.v3.oas.models.OpenAPI |
generateOpenApi(Request req) |
java.lang.String |
getOutputBaseDir() |
java.lang.String |
getPatchesBaseDir() |
java.lang.String |
getTemplateBaseDir() |
OpenAPISpecWriter |
getWriter() |
void |
serveOpenApi(Request req,
Response res,
java.lang.String file) |
OpenAPIAction |
withOutputBaseDir(java.lang.String outputBaseDir) |
OpenAPIAction |
withPatchesBaseDir(java.lang.String patchesBaseDir) |
OpenAPIAction |
withTemplateBaseDir(java.lang.String templateBaseDir) |
OpenAPIAction |
withWriter(OpenAPISpecWriter writer) |
io.inversion.json.JSNode |
writeOpenAPI(Request req,
io.swagger.v3.oas.models.OpenAPI openApi)
Override me to manually edit the OpenAPI pojo before it is serialized to JSON
OR to edit the JSNode model after it has been serialized.
|
canServe, findStream, getBaseDir, getFiles, serveFile, serveFile, withBaseDir, withFilesconfigureOp, doDelete, doPatch, doPost, doPut, getFullIncludePaths, getIncludePaths, isDecoration, joinPaths, joinPaths0, run, run0, withDecorationafterWiringComplete, checkLazyConfig, compareTo, doLazyConfig, getAllExcludePaths, getAllIncludeMethods, getAllIncludePaths, getDefaultIncludeMatchers, getDescription, getExcludeMatchers, getIncludeMatchers, getName, getOrder, getParams, match, match, matches, matches, toString, withDescription, withExcludeOn, withExcludeOn, withIncludeOn, withIncludeOn, withName, withOrder, withParam, withParamsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddResponse, addResponse, beautifyTag, buildOperation, documentOpDelete, documentOperationSchema, documentOpFind, documentOpGet, documentOpPatch, documentOpPost, documentOpPut, documentOpRelated, documentParam, documentQueryParams, documentRequestSchema, documentResourceSchema, documentResponseSchema, findOp, getDescription, getSchemaRef, hasParam, hook_documentOp, newComponentRefSchema, newHrefSchema, newTypeSchema, removeReadOnlyPropertiesprotected java.lang.String templateBaseDir
protected java.lang.String patchesBaseDir
protected java.lang.String outputBaseDir
protected OpenAPISpecWriter writer
protected boolean copyToOutputDirInDevMode
public void doGet(Request req, Response res) throws ApiException
ActionOverride run() to handle all requests or override this method with your business logic specifically for a GET request
doGet in class FileAction<A extends OpenAPIAction>req - the request to runres - the response to populateApiExceptionpublic io.inversion.json.JSNode writeOpenAPI(Request req, io.swagger.v3.oas.models.OpenAPI openApi)
openApi - public io.swagger.v3.oas.models.OpenAPI generateOpenApi(Request req)
public java.lang.String findTemplate(Request req)
public io.inversion.json.JSList findPatches(Request req)
public java.lang.String getTemplateBaseDir()
public OpenAPIAction withTemplateBaseDir(java.lang.String templateBaseDir)
public java.lang.String getPatchesBaseDir()
public OpenAPIAction withPatchesBaseDir(java.lang.String patchesBaseDir)
public java.lang.String getOutputBaseDir()
public OpenAPIAction withOutputBaseDir(java.lang.String outputBaseDir)
public OpenAPISpecWriter getWriter()
public OpenAPIAction withWriter(OpenAPISpecWriter writer)
Copyright © 2023 Rocket Partners, LLC. All rights reserved.