public class KeepApiInfo
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
KeepApiInfo.BodyType
List of body types we expect / process Currently we only need to distinguish between JSON (object/array) and other like buffer or mime
|
Modifier and Type | Method and Description |
---|---|
static KeepApiInfo |
create(java.lang.String path,
java.lang.String method,
io.vertx.core.json.JsonObject methodContent,
io.vertx.core.json.JsonArray paramsOnPathLevel,
java.lang.String version) |
static KeepApiInfo |
create(java.lang.String path,
java.lang.String method,
io.vertx.core.json.JsonObject methodContent,
java.lang.String version) |
boolean |
expectBody()
Does this API call expect a Body submission (any type) yes for POST, PUT, PATCH
|
boolean |
expectJsonBody()
Body check: must be there and must be JSON
|
java.lang.String |
getEventBusId()
The eventbusId is composed out of the associated Tag and the operationId This allows different OpenAPI implementations to reuse existing methods
|
java.util.Set<java.lang.String> |
getKnownParameterNames() |
java.lang.String |
getName() |
io.vertx.core.json.JsonObject |
getRawMethod() |
java.util.Set<java.lang.String> |
getRequestType()
MimeTypes only are relevant for POST, PUT, PATCH for GET, DELETE etc.
|
java.util.Set<java.lang.String> |
getRequiredParameterNames() |
java.util.Set<java.lang.String> |
getReturnType() |
java.util.Collection<java.lang.String> |
getTags() |
java.lang.String |
getVersion() |
boolean |
hasNoTags()
Checks if the method hasn’t any tags which would prevent it from getting loaded
|
boolean |
hasTag(java.lang.String tag)
Checks if a method holds a specific tag
|
boolean |
isJsonInOut()
Check if the method is the default case of Nothing or JSON in body and JSON as return type
|
boolean |
isRequestsAnArray() |
boolean |
isRequireBodyNotJson()
Returns true if the body is NOT in JSON format but a buffer of content
|
boolean |
isReturnsAnArray() |
boolean |
isUsesConfigAsDbParameter() |
public static KeepApiInfo create(@Nonnull java.lang.String path, @Nonnull java.lang.String method, @Nonnull io.vertx.core.json.JsonObject methodContent, @Nonnull io.vertx.core.json.JsonArray paramsOnPathLevel, @Nonnull java.lang.String version)
path
- method
- get, put, post, patch etc.methodContent
- paramsOnPathLevel
- version
- public static KeepApiInfo create(@Nonnull java.lang.String path, @Nonnull java.lang.String method, @Nonnull io.vertx.core.json.JsonObject methodContent, @Nonnull java.lang.String version)
method
- get, put, post, patch etc.methodContent
- version
- public boolean expectBody()
Does this API call expect a Body submission (any type) yes for POST, PUT, PATCH
public boolean expectJsonBody()
Body check: must be there and must be JSON
public java.lang.String getEventBusId()
The eventbusId is composed out of the associated Tag and the operationId This allows different OpenAPI implementations to reuse existing methods
public java.util.Set<java.lang.String> getKnownParameterNames()
public java.lang.String getName()
public java.util.Set<java.lang.String> getRequestType()
MimeTypes only are relevant for POST, PUT, PATCH for GET, DELETE etc. they are Void
public java.util.Set<java.lang.String> getRequiredParameterNames()
public java.util.Set<java.lang.String> getReturnType()
public java.util.Collection<java.lang.String> getTags()
public java.lang.String getVersion()
public boolean hasNoTags()
Checks if the method hasn’t any tags which would prevent it from getting loaded
public boolean hasTag(@Nonnull java.lang.String tag)
Checks if a method holds a specific tag
tag
- name of the tagpublic boolean isJsonInOut()
Check if the method is the default case of Nothing or JSON in body and JSON as return type
public boolean isRequestsAnArray()
public boolean isRequireBodyNotJson()
Returns true if the body is NOT in JSON format but a buffer of content
public boolean isReturnsAnArray()
public boolean isUsesConfigAsDbParameter()
public io.vertx.core.json.JsonObject getRawMethod()