chore: recommended meaningful oas fixes (#3159)
This commit is contained in:
@@ -31,7 +31,7 @@ import { FindParams } from "../../../../types/common"
|
||||
* const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })
|
||||
* // must be previously logged in or use api token
|
||||
* medusa.admin.productCategories.create({
|
||||
* name: 'App',
|
||||
* name: "Skinny Jeans",
|
||||
* })
|
||||
* .then(({ product_category }) => {
|
||||
* console.log(product_category.id);
|
||||
@@ -43,7 +43,7 @@ import { FindParams } from "../../../../types/common"
|
||||
* --header 'Authorization: Bearer {api_token}' \
|
||||
* --header 'Content-Type: application/json' \
|
||||
* --data-raw '{
|
||||
* "name": "Jeans",
|
||||
* "name": "Skinny Jeans",
|
||||
* }'
|
||||
* security:
|
||||
* - api_token: []
|
||||
|
||||
@@ -32,7 +32,7 @@ import { FindParams } from "../../../../types/common"
|
||||
* const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })
|
||||
* // must be previously logged in or use api token
|
||||
* medusa.admin.productCategories.update(product_category_id, {
|
||||
* name: 'App'
|
||||
* name: "Skinny Jeans"
|
||||
* })
|
||||
* .then(({ product_category }) => {
|
||||
* console.log(product_category.id);
|
||||
|
||||
@@ -25,10 +25,10 @@ import { defaultStoreScope } from "."
|
||||
* import Medusa from "@medusajs/medusa-js"
|
||||
* const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })
|
||||
* // must be previously logged in or use api token
|
||||
* medusa.productCategories.retrieve("pcat-id")
|
||||
* .then(({ productCategory }) => {
|
||||
* console.log(productCategory.id);
|
||||
* });
|
||||
* medusa.productCategories.retrieve(product_category_id)
|
||||
* .then(({ product_category }) => {
|
||||
* console.log(product_category.id);
|
||||
* });
|
||||
* - lang: Shell
|
||||
* label: cURL
|
||||
* source: |
|
||||
|
||||
Reference in New Issue
Block a user