mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 19:04:38 +00:00
Grammar and punctuation of services.md
Signed-off-by: Bart Duisters <bartduisters@bartduisters.com>
This commit is contained in:
parent
4a49510d2d
commit
75ea7c51f0
@ -6,17 +6,17 @@ Services are a set of reusable functions. They are particularly useful to respec
|
|||||||
|
|
||||||
## Core services
|
## Core services
|
||||||
|
|
||||||
When you create a new Content type or a new model. You will see a new empty service has been created. It is because Strapi builds a generic service for your models by default and allows you to override and extend it in the generated files.
|
When you create a new `Content Type` or a new model. You will see a new empty service has been created. It is because Strapi builds a generic service for your models by default and allows you to override and extend it in the generated files.
|
||||||
|
|
||||||
### Extending a Model Service
|
### Extending a Model Service
|
||||||
|
|
||||||
Here are the core methods (and their current implementation).
|
Here are the core methods (and their current implementation).
|
||||||
You can simply copy and paste this code to your own service file to customize the methods.
|
You can simply copy and paste this code to your own service file to customize the methods.
|
||||||
|
|
||||||
You can read about `strapi.query` calls [here](./queries.md)
|
You can read about `strapi.query` calls [here](./queries.md).
|
||||||
|
|
||||||
::: tip
|
::: tip
|
||||||
In the following example your controller, service and model is named `restaurant`
|
In the following example your controller, service and model are named `restaurant`.
|
||||||
:::
|
:::
|
||||||
|
|
||||||
:::: tabs
|
:::: tabs
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user