docs: revise admin customization pages (#10297)

* docs: revise admin customization pages

* small re-iteration
This commit is contained in:
Shahed Nasser
2024-11-27 10:29:32 +02:00
committed by GitHub
parent b024c6c558
commit 0b5ebeaa30
3 changed files with 45 additions and 29 deletions
@@ -84,7 +84,7 @@ class BlogModuleService extends MedusaService({
export default BlogModuleService
```
Your module's service extends a class returned by the `MedusaService` utility function. The `MedusaService` function accepts an object of data models, and returns a class with generated methods for data-management Create, Read, Update, and Delete (CRUD) operations on those data models.
Your module's service extends a class returned by the `MedusaService` utility function. The `MedusaService` function accepts an object of data models, and returns a class with generated methods for data-management Create, Read, Update, and Delete (CRUD) operations on those data models. You can pass all data models in your module in this object.
For example, the `BlogModuleService` now has a `createPosts` method to create post records, and a `retrievePost` method to retrieve a post record. The suffix of each method (except for `retrieve`) is the pluralized name of the data model.