Skip to content

Commit

Permalink
fix(docs): small error (medusajs#9868)
Browse files Browse the repository at this point in the history
* fix(docs): small error

* fix(docs): small typo error
  • Loading branch information
0xflotus authored Oct 30, 2024
1 parent ccec9b8 commit 7b51204
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ In this chapter, you'll learn how to validate request body parameters in your cu

## Example Scenario

Consider you're creating a `POST` API route at `/custom`. It accepts two paramters `a` and `b` that are required numbers, and returns their sum.
Consider you're creating a `POST` API route at `/custom`. It accepts two parameters `a` and `b` that are required numbers, and returns their sum.

The next steps explain how to add validation to this API route, as an example.

Expand Down
2 changes: 1 addition & 1 deletion www/apps/book/app/learn/basics/modules/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ In the snippet above, your module's service extends a class generated by the `Me

The `MedusaService` function accepts as a parameter 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.

For example, `HelloModuleService` now has a `createMyCustoms` method to create `MyCustom` records, and `retrieveMyCustom` to retrive a `MyCustom` record.
For example, `HelloModuleService` now has a `createMyCustoms` method to create `MyCustom` records, and `retrieveMyCustom` to retrieve a `MyCustom` record.

<Note title="Tip">

Expand Down

0 comments on commit 7b51204

Please sign in to comment.