@industrialists/app-core
v3.6.5
Published
> TODO: description
Downloads
11
Readme
app core
Basic api module which contains main structure about
- models
- collections
- api responses
- api request
- webtoken
Models
In order to create a model we need to extend and implement the AbstractModel
.
Predefined Models
- ErrorModel
Factory
In order to create a factory we need to extend and implement the ModelFactoryAbstract
.
Predefined Factories
- ErrorFactory
Collection
We can create collections using the ModelFactoryCollection.create<T>(data,factory)
static method
Api responses
In oder to handle the response we need to use the api/Response
class.
On class creation we need to decleare the adapter and the webtoken class which we want to use.
Webtoken
Use WebTokenAbstract