public String getMicroserviceName() { return schemaMeta.getMicroserviceName(); }
public String getMicroserviceName() { return schemaMeta.getMicroserviceName(); }
public void init(SchemaMeta schemaMeta, Method method, String operationPath, String httpMethod, Operation swaggerOperation) { this.schemaMeta = schemaMeta; schemaQualifiedName = schemaMeta.getSchemaId() + "." + method.getName(); microserviceQualifiedName = schemaMeta.getMicroserviceName() + "." + schemaQualifiedName; this.operationPath = operationPath; this.method = method; this.httpMethod = httpMethod.toUpperCase(Locale.US); this.swaggerOperation = swaggerOperation; executor = ExecutorManager.findExecutor(this); collectMethodType(); responsesMeta.init(schemaMeta.getMicroserviceMeta().getClassLoader(), schemaMeta.getPackageName(), schemaMeta.getSwagger(), swaggerOperation, method.getGenericReturnType()); }
public void addSchema(SchemaMeta schemaMeta) { if (isSchemaExists(schemaMeta.getSchemaId())) { return; } schemaIdSet.add(schemaMeta.getSchemaId()); for (OperationMeta operationMeta : schemaMeta.getOperations()) { RestOperationMeta restOperationMeta = new RestOperationMeta(); restOperationMeta.init(operationMeta); operationMeta.putExtData(RestConst.SWAGGER_REST_OPERATION, restOperationMeta); addResource(restOperationMeta); } LOGGER.info("add schema to service paths. {}:{}:{}.", schemaMeta.getMicroserviceMeta().getAppId(), schemaMeta.getMicroserviceName(), schemaMeta.getSchemaId()); }