CompletableFuture<List<AggregatedHttpFile>> updateServices(List<ServiceConfig> services,
                                                                   Route docServiceRoute,
                                                                   Executor executor) {
            this.services = services;

            final CompletableFuture<ServiceSpecification> serviceSpecificationFuture =
                    generateServiceSpecification(executor, docServiceRoute);

            final List<CompletableFuture<AggregatedHttpFile>> files =
                    TARGET_PATHS.stream()
                                .map(path -> load(path, executor, serviceSpecificationFuture))
                                .collect(toImmutableList());
            return CompletableFutures.allAsList(files);
        }
Creates a new instance with example HTTP headers and example requests and injected scripts.
core/src/main/java/com/linecorp/armeria/server/docs/DocService.java