Resource

org.beangle.data.jsonapi.JsonAPI.Resource
class Resource(val id: String, `type`: String, path: String)

Resource Object

Value parameters

id

resource identifiers

type

typeName of resource

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def attr(name: String, value: Any): Resource
def field(pName: String, value: Any)(using context: Context): Resource
def linkSelf(url: String): Resource
def pathFor(name: String): String
def ref(name: String, value: Entity[_])(using context: Context): Resource
def refs(name: String, pValues: Iterable[Entity[_]])(using context: Context): Resource

Concrete fields

val `type`: String
var attributes: Properties
val id: String
var relationships: Properties