All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.touk.nussknacker.openapi.enrichers.StandaloneSwaggerEnricher.scala Maven / Gradle / Ivy

package pl.touk.nussknacker.openapi.enrichers

import pl.touk.nussknacker.engine.standalone.utils.service.TimeMeasuringService
import pl.touk.nussknacker.openapi.SwaggerService
import sttp.client.SttpBackend

import java.net.URL
import scala.concurrent.{ExecutionContext, Future}

class StandaloneSwaggerEnricher(rootUrl: Option[URL], swaggerService: SwaggerService,
                           fixedParams: Map[String, () => AnyRef],
                           backendForEc: ExecutionContext => SttpBackend[Future, Nothing, Nothing])
  extends BaseSwaggerEnricher(rootUrl, swaggerService, fixedParams) with TimeMeasuringService {

  override implicit protected def httpBackendForEc(implicit ec: ExecutionContext): SttpBackend[Future, Nothing, Nothing] = backendForEc(ec)

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy