/** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.4-dev * User agent: apibuilder app.apibuilder.io/michal/playground-api/0.0.4-dev/play_2_8_mock_client */ package io.github.mkows.playground.api.v0.mock { trait Client extends io.github.mkows.playground.api.v0.interfaces.Client { val baseUrl: String = "http://mock.localhost" override def healthchecks: io.github.mkows.playground.api.v0.Healthchecks = MockHealthchecksImpl } object MockHealthchecksImpl extends MockHealthchecks trait MockHealthchecks extends io.github.mkows.playground.api.v0.Healthchecks { def get( requestHeaders: Seq[(String, String)] = Nil )(implicit ec: scala.concurrent.ExecutionContext): scala.concurrent.Future[io.github.mkows.playground.api.v0.models.Healthcheck] = scala.concurrent.Future.successful { io.github.mkows.playground.api.v0.mock.Factories.makeHealthcheck() } def postTestFormParamsJson( param1: String, requestHeaders: Seq[(String, String)] = Nil )(implicit ec: scala.concurrent.ExecutionContext): scala.concurrent.Future[Unit] = scala.concurrent.Future.successful { // unit type } def getById( id: Int, requestHeaders: Seq[(String, String)] = Nil )(implicit ec: scala.concurrent.ExecutionContext): scala.concurrent.Future[io.github.mkows.playground.api.v0.models.Healthcheck] = scala.concurrent.Future.successful { io.github.mkows.playground.api.v0.mock.Factories.makeHealthcheck() } } object Factories { def randomString(length: Int = 24): String = { _root_.scala.util.Random.alphanumeric.take(length).mkString } def makeItemStateFailedCause(): io.github.mkows.playground.api.v0.models.ItemStateFailedCause = io.github.mkows.playground.api.v0.models.ItemStateFailedCause.ErrorCause1 def makeItemStateProgress(): io.github.mkows.playground.api.v0.models.ItemStateProgress = io.github.mkows.playground.api.v0.models.ItemStateProgress.Init def makeError(): io.github.mkows.playground.api.v0.models.Error = io.github.mkows.playground.api.v0.models.Error( code = 1, message = Factories.randomString(12), messageCode = Factories.randomString(2), messageLengthy = Factories.randomString(30), details = None ) def makeHealthcheck(): io.github.mkows.playground.api.v0.models.Healthcheck = io.github.mkows.playground.api.v0.models.Healthcheck( status = Factories.randomString(24), createdAt = _root_.org.joda.time.DateTime.now ) def makeItemState(): io.github.mkows.playground.api.v0.models.ItemState = io.github.mkows.playground.api.v0.mock.Factories.makeItemStateProgress() } }