public class RestSyncNamedV7 extends RestSyncV7 implements SwaggerListVariables, SwaggerResponses
PARAMETER_CLASS, PARAMETER_NEXT_URL_WITHOUT_PATHS, PARAMETER_PATHS| Constructor and Description |
|---|
RestSyncNamedV7() |
| Modifier and Type | Method and Description |
|---|---|
void |
describeResponse(WebClient client,
RestDefinition rd,
Method method,
JSONObject responses,
JSONObject operationObj,
java.lang.String restPath,
JSONObject definitions)
describe the response format.
|
protected DBClassConcrete |
findClass(RestDefinition rd,
WebClient client) |
protected java.lang.String |
getBaseURI(RestDefinition rd) |
protected RestDefinition |
getClassRD(RestDefinition restDefinition) |
DBResult<RestDefinitionVariable> |
listSwaggerVariables(Login login,
RestDefinition rd,
Method method,
int mandatoryPathVariableDepth) |
protected java.lang.String |
makeClassNames(WebClient client,
RestDefinition rd) |
protected java.lang.String |
makeNextUrlWithoutPaths(WebClient client,
RestDefinition rd) |
protected java.lang.String |
makePaths(WebClient client,
RestDefinition rd) |
java.lang.Object |
restRetrieve(WebClient client,
RestDefinition rd,
ReadOnlyDataSource rds)
HTTP GET calls the the Retrieval ReST service.
|
makeNext, restCreate, restDelete, restUpdate, swaggerFullListclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateArrayProperty, createBooleanProperty, createIntegerProperty, createNumberProperty, createObjectProperty, createStringProperty, getStandardProperty@CheckReturnValue public java.lang.Object restRetrieve(WebClient client, RestDefinition rd, ReadOnlyDataSource rds) throws java.lang.Exception
RestPluginProcessrestRetrieve in interface RestPluginProcessrestRetrieve in class RestSyncV7client - the client. Null means check only of opsrd - the definitionrds - the data source to usejava.lang.UnsupportedOperationException - if this method is NOT supported.java.lang.Exception - an error has occurred.@CheckReturnValue
@Nonnull
protected java.lang.String makePaths(@Nonnull
WebClient client,
@Nonnull
RestDefinition rd)
throws java.lang.Exception
makePaths in class RestSyncV7java.lang.Exception@CheckReturnValue
@Nonnull
protected java.lang.String makeClassNames(@Nonnull
WebClient client,
@Nonnull
RestDefinition rd)
throws java.lang.Exception
makeClassNames in class RestSyncV7java.lang.Exception@CheckReturnValue
@Nonnull
protected java.lang.String makeNextUrlWithoutPaths(@Nonnull
WebClient client,
@Nonnull
RestDefinition rd)
throws java.lang.Exception
makeNextUrlWithoutPaths in class RestSyncV7java.lang.Exceptionprotected java.lang.String getBaseURI(@Nonnull
RestDefinition rd)
getBaseURI in class RestSyncV7public DBResult<RestDefinitionVariable> listSwaggerVariables(@Nonnull Login login, @Nonnull RestDefinition rd, @Nonnull Method method, int mandatoryPathVariableDepth) throws java.lang.Exception
listSwaggerVariables in interface SwaggerListVariableslistSwaggerVariables in class RestSyncV7java.lang.Exceptionprotected RestDefinition getClassRD(@Nonnull RestDefinition restDefinition) throws java.lang.Exception
java.lang.Exceptionprotected DBClassConcrete findClass(@Nonnull RestDefinition rd, @Nullable WebClient client) throws ExceptionResponse
ExceptionResponsepublic void describeResponse(@Nonnull
WebClient client,
@Nonnull
RestDefinition rd,
@Nonnull
Method method,
@Nonnull
JSONObject responses,
@Nonnull
JSONObject operationObj,
@Nonnull
java.lang.String restPath,
@Nonnull
JSONObject definitions)
throws java.lang.Exception
SwaggerResponsesdescribe the response format. Check https://swagger.io/docs/specification/describing-responses/ for details
sample:
{
"200": {
"description": "successful operation",
"schema": {
"$ref": "#/definitions/class_v8_GET"
}
},
"404": {
"description": "Not found"
}
}
describeResponse in interface SwaggerResponsesdescribeResponse in class RestSyncV7client - web clientrd - rest definitionmethod - methodresponses - JSONObject that holds the responsesoperationObj - the operation json for this service, such as GET /v8/class/Person/{_key} and GET /v8/class/Person are two different operation jsonrestPath - rest path such as /v8/class/{className}/{_key}definitions - $ref definition JSONObjectjava.lang.Exception - a serious problem.stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.