9.2. Examples
This chapter provides links to example sections on different Medusa topics.
API Routes#
- Execute a workflow in an API route
- Extend an existing API route
- Override an existing API route
- Restrict HTTP Methods in a middleware
- Change response content to something other than JSON
- Retrieve logged-in customer's details
- Retrieve logged-in user's details
- Custom error handler
- Using Query in an API route
- Upload files in a custom API route
- Customize cart-completion API route
Modules#
- Create a Brand Module
- Create a Marketplace Module
- Create a Restaurant Module
- Create a Delivery Module
- Create a Subscription Module
- Create a Digital Product Module
- Create a link between a brand and a product
Services#
Subscribers#
Scheduled Jobs#
Workflows#
- Create a brand workflow
- Emit event in a workflow
- Sync data to a third-party system with a workflow
- Create a long-running workflow to handle delivery from placed to completed
- Access long-running workflow's status and result in an API route
Admin Customizations#
- Send a request to custom API routes from widgets or UI routes
- Create a Settings Page
- Link to another page in the admin dashboard
- Show table with pagination
Testing#
- Writing integration tests for API routes
- Writing integration tests for workflows
- Writing integration tests for modules
Storefront Development#
Commerce Modules#
Auth#
Cart#
Fulfillment#
Order#
Product#
Integrations#
Was this chapter helpful?