/** * 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/http4s_0_22 */ package com.catalystsquad.catalyst.squad.hello.world.example.api.v1.mock { class Client[F[_]: cats.Applicative] extends com.catalystsquad.catalyst.squad.hello.world.example.api.v1.interfaces.Client[F] { val baseUrl: org.http4s.Uri = org.http4s.Uri.unsafeFromString("http://mock.localhost") override def helloes: com.catalystsquad.catalyst.squad.hello.world.example.api.v1.Helloes[F] = new MockHelloes[F] } class MockHelloes[F[_]: cats.Applicative] extends com.catalystsquad.catalyst.squad.hello.world.example.api.v1.Helloes[F] { def get( requestHeaders: Seq[(String, String)] = Nil ): F[com.catalystsquad.catalyst.squad.hello.world.example.api.v1.models.Hello] = cats.Applicative[F].pure { com.catalystsquad.catalyst.squad.hello.world.example.api.v1.mock.Factories.makeHello() } def post( requestHeaders: Seq[(String, String)] = Nil ): F[com.catalystsquad.catalyst.squad.hello.world.example.api.v1.models.Hello] = cats.Applicative[F].pure { 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) ) } }