chore(docs): Updated API Reference (#3142)
* chore(docs): Generated API Reference * Update admin-spec3.json * Update admin-spec3.yaml * Update openapi.yaml --------- Co-authored-by: shahednasser <shahednasser@users.noreply.github.com> Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
This commit is contained in:
4 files changed
+6
-6
No files matched your search
@@ -3313,7 +3313,7 @@ paths:
|
|||||||
const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries:
|
const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries:
|
||||||
3 })
|
3 })
|
||||||
|
|
||||||
medusa.store.productTags.list()
|
medusa.productTags.list()
|
||||||
|
|
||||||
.then(({ product_tags }) => {
|
.then(({ product_tags }) => {
|
||||||
console.log(product_tags.length);
|
console.log(product_tags.length);
|
||||||
@@ -3463,7 +3463,7 @@ paths:
|
|||||||
|
|
||||||
// must be previously logged in or use api token
|
// must be previously logged in or use api token
|
||||||
|
|
||||||
medusa.store.productTypes.list()
|
medusa.productTypes.list()
|
||||||
|
|
||||||
.then(({ product_types }) => {
|
.then(({ product_types }) => {
|
||||||
console.log(product_types.length);
|
console.log(product_types.length);
|
||||||
|
|||||||
@@ -3313,7 +3313,7 @@ paths:
|
|||||||
const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries:
|
const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries:
|
||||||
3 })
|
3 })
|
||||||
|
|
||||||
medusa.store.productTags.list()
|
medusa.productTags.list()
|
||||||
|
|
||||||
.then(({ product_tags }) => {
|
.then(({ product_tags }) => {
|
||||||
console.log(product_tags.length);
|
console.log(product_tags.length);
|
||||||
@@ -3463,7 +3463,7 @@ paths:
|
|||||||
|
|
||||||
// must be previously logged in or use api token
|
// must be previously logged in or use api token
|
||||||
|
|
||||||
medusa.store.productTypes.list()
|
medusa.productTypes.list()
|
||||||
|
|
||||||
.then(({ product_types }) => {
|
.then(({ product_types }) => {
|
||||||
console.log(product_types.length);
|
console.log(product_types.length);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
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 })
|
||||||
medusa.store.productTags.list()
|
medusa.productTags.list()
|
||||||
.then(({ product_tags }) => {
|
.then(({ product_tags }) => {
|
||||||
console.log(product_tags.length);
|
console.log(product_tags.length);
|
||||||
});
|
});
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
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.store.productTypes.list()
|
medusa.productTypes.list()
|
||||||
.then(({ product_types }) => {
|
.then(({ product_types }) => {
|
||||||
console.log(product_types.length);
|
console.log(product_types.length);
|
||||||
});
|
});
|
||||||
Reference in new issue
Block a user