Api

io.eezo.http.Api
See theApi companion trait
object Api

Attributes

Companion
trait
Source
Api.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Api.type

Members list

Value members

Concrete methods

def apply[A](using a: Api[A]): Api[A]

Attributes

Source
Api.scala
inline def derived[A](using m: ProductOf[A], serde: Serde[A], actions: Actions[A]): Api[A]

The model is read the way Resource.derived reads it, with the same two refusals naming this derivation, because create mints a key with Id.gen() here too and update reads one out of the path.

The model is read the way Resource.derived reads it, with the same two refusals naming this derivation, because create mints a key with Id.gen() here too and update reads one out of the path.

Attributes

Source
Api.scala
inline def routesOf[A](store: Store[A], guarded: Guarded[A] = ...): Seq[Route]

The routes of A if it has an Api, and nothing if it does not, which is what Derivations.routesOf asks after Resource.routesOf for every candidate model.

The routes of A if it has an Api, and nothing if it does not, which is what Derivations.routesOf asks after Resource.routesOf for every candidate model.

Unlike Resource.routesOf, nothing the declaration carries comes out in front. A guard's login page is where a refused browser is sent, and a program is never sent to a page: it is answered 401. So an application whose only guarded routes are API routes mounts no login page, which is the rule Guarded.mounting keeps for a handwritten API route.

Attributes

Source
Api.scala