/** * Generated by API Builder - https://www.apibuilder.io * Service version: 1.0.1 * User agent: apibuilder app.apibuilder.io/catalystsquad/catalyst-squad-hello-world-example-api/1.0.1/play_2_8_mock_client */ package com.catalystsquad.catalyst.squad.hello.world.example.api.v1.mock { trait Client extends com.catalystsquad.catalyst.squad.hello.world.example.api.v1.interfaces.Client { val baseUrl: String = "http://mock.localhost" override def helloes: com.catalystsquad.catalyst.squad.hello.world.example.api.v1.Helloes = MockHelloesImpl } object MockHelloesImpl extends MockHelloes trait MockHelloes extends com.catalystsquad.catalyst.squad.hello.world.example.api.v1.Helloes { def get( requestHeaders: Seq[(String, String)] = Nil )(implicit ec: scala.concurrent.ExecutionContext): scala.concurrent.Future[com.catalystsquad.catalyst.squad.hello.world.example.api.v1.models.Hello] = scala.concurrent.Future.successful { com.catalystsquad.catalyst.squad.hello.world.example.api.v1.mock.Factories.makeHello() } def post( requestHeaders: Seq[(String, String)] = Nil )(implicit ec: scala.concurrent.ExecutionContext): scala.concurrent.Future[com.catalystsquad.catalyst.squad.hello.world.example.api.v1.models.Hello] = scala.concurrent.Future.successful { com.catalystsquad.catalyst.squad.hello.world.example.api.v1.mock.Factories.makeHello() } } object Factories { def randomString(length: Int = 24): String = { _root_.scala.util.Random.alphanumeric.take(length).mkString } def makeHello(): com.catalystsquad.catalyst.squad.hello.world.example.api.v1.models.Hello = com.catalystsquad.catalyst.squad.hello.world.example.api.v1.models.Hello( id = _root_.java.util.UUID.randomUUID, name = Factories.randomString(24) ) def makeNewhello(): com.catalystsquad.catalyst.squad.hello.world.example.api.v1.models.Newhello = com.catalystsquad.catalyst.squad.hello.world.example.api.v1.models.Newhello( name = Factories.randomString(24) ) } }