- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
2. Your First Customizations
In this chapter, you’ll build your first customizations with Medusa.
You'll create a GET
API route at the path /hello-world
. An API route exposes your application's commerce features to frontend clients, such as the admin dashboard or a storefront.
Medusa has Store and Admin API routes, and you can create custom API routes for your custom features.
1. Create API Route#
API Routes expose business logic through REST APIs. You can create custom API routes to expose custom business logic.
To create an API route, create the file src/api/hello-world/route.ts
with the following content:
2. Test Customizations#
To test out your customizations:
- Start the Medusa application:
- Send a
GET
request to/hello-world
:
In the response, you’ll receive the following object:
Next Steps#
Congratulations, you’ve made your first customization with Medusa!
You can now start your in-depth learning journey to become an expert.