2016-03-25 22:50:01 +01:00
|
|
|
# strapi-generate-service
|
|
|
|
|
|
|
|
[](https://www.npmjs.org/package/strapi-generate-service)
|
|
|
|
[](https://www.npmjs.org/package/strapi-generate-service)
|
2016-08-10 11:31:27 +02:00
|
|
|
[](https://david-dm.org/strapi/strapi-generate-service)
|
|
|
|
[](https://travis-ci.org/strapi/strapi-generate-service)
|
2021-01-26 17:06:25 +01:00
|
|
|
[](https://slack.strapi.io)
|
2016-03-25 22:50:01 +01:00
|
|
|
|
|
|
|
This Strapi generator contains the default files for a service.
|
|
|
|
|
|
|
|
This generator can be called with:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ strapi generate:service serviceName apiName
|
|
|
|
```
|
|
|
|
|
|
|
|
For example if you want to generate a `sendEmail` service for the `email` API:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ strapi generate:service sendEmail email
|
|
|
|
```
|
|
|
|
|
|
|
|
## Resources
|
|
|
|
|
2020-07-20 18:07:48 +02:00
|
|
|
- [License](LICENSE)
|
2016-03-25 22:50:01 +01:00
|
|
|
|
|
|
|
## Links
|
|
|
|
|
2021-01-26 17:06:25 +01:00
|
|
|
- [Strapi website](https://strapi.io/)
|
|
|
|
- [Strapi community on Slack](https://slack.strapi.io)
|
2016-03-25 22:50:01 +01:00
|
|
|
- [Strapi news on Twitter](https://twitter.com/strapijs)
|