chore(docs): Updated API Reference (automated) (#14470)
* chore(docs): Generated API Reference (automated) * fixes * fix locale header --------- Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com> Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
This commit is contained in:
committed by
GitHub
parent
76ff8dcca8
commit
1af99f8d5c
@@ -0,0 +1,16 @@
|
||||
import Medusa from "@medusajs/js-sdk"
|
||||
|
||||
export const sdk = new Medusa({
|
||||
baseUrl: import.meta.env.VITE_BACKEND_URL || "/",
|
||||
debug: import.meta.env.DEV,
|
||||
auth: {
|
||||
type: "session",
|
||||
},
|
||||
})
|
||||
|
||||
sdk.admin.translation.entities({
|
||||
type: "product"
|
||||
})
|
||||
.then(({ data, count, offset, limit }) => {
|
||||
console.log(data)
|
||||
})
|
||||
@@ -0,0 +1,2 @@
|
||||
curl '{backend_url}/admin/translations/entities' \
|
||||
-H 'Authorization: Bearer {access_token}'
|
||||
Reference in New Issue
Block a user