docs: change configurations to make v2 the main docs (#9729)

* docs: change configurations to make v2 the main docs

* move api routes to top level

* remove api prefix

* update opengraph images

* show v1 link

* add redirect to v1
This commit is contained in:
Shahed Nasser authored and GitHub committed 2024-10-24 14:49:58 +03:00
1 parent 471f7e4a10
commit 88f2d17a24
40 files changed
+115 -128

No files matched your search

@@ -14,7 +14,7 @@ This chapter covers how to extend the Create Product API route to link a product
## Additional Data in API Routes
Some API routes, including the [Create Product API route](https://docs.medusajs.com/v2/api/admin#products_postproducts), accept an `additional_data` request body parameter.
Some API routes, including the [Create Product API route](!api!/admin#products_postproducts), accept an `additional_data` request body parameter.
It's useful when you want to pass custom data, such as the brand ID, then perform an action based on this data, such as link the brand to the product.