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