Skip to content

Kirby 4.2.0

Model

The API Model class can be wrapped around any kind of object. Each model defines a set of properties that are available in REST calls. Those properties are defined as simple Closures which are resolved on demand. This is inspired by GraphQLs architecture and makes it possible to load only the model data that is needed for the current API call.