More docs
All checks were successful
the build was successful

This commit is contained in:
kolaente 2019-03-01 08:15:03 +01:00
parent 0f2a9d50a9
commit 79263841cc
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -68,11 +68,19 @@ Several request types are possible:
| `update` | `POST` |
| `delete` | `DELETE` |
Each method returns a promise.
Each method can take a model and optional url parameters as function parameters.
With the exception of `getAll()`, a model is always mandatory while parameters are not.
Each method returns a promise, so you can access a request result like so:
```javascript
service.getAll().then(result => {
// Do something with result
})
```
The result is a ready-to-use model returned by the model factory.
##### Loading
Each service has a `loading` property, provided by `AbstractModel`.