Skip to content

Commit

Permalink
Merge branch 'develop' into feat/nested-category-update-endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
riqwan authored Jan 11, 2023
2 parents f36e5c9 + 6dafb51 commit ddefcab
Show file tree
Hide file tree
Showing 83 changed files with 1,216 additions and 394 deletions.
4 changes: 0 additions & 4 deletions .changeset/calm-pandas-bake.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/clean-tigers-teach.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/empty-flowers-walk.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gentle-islands-arrive.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/honest-guests-wash.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/hungry-starfishes-count.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/light-cars-smile.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lovely-hats-cough.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/lovely-knives-own.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/mighty-cars-rescue.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/mighty-cups-cheer.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/moody-eyes-judge.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/olive-dots-whisper.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pretty-flies-juggle.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/quiet-lobsters-search.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/real-ways-jog.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silent-spiders-battle.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/slimy-candles-wait.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/spotty-queens-look.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/stupid-impalas-add.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/swift-kiwis-relate.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/thirty-parents-design.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/twelve-bears-try.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wet-snakes-hide.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/wise-mangos-design.md

This file was deleted.

4 changes: 0 additions & 4 deletions .changeset/young-parents-pump.md

This file was deleted.

78 changes: 42 additions & 36 deletions docs/api/admin-spec3.json
Original file line number Diff line number Diff line change
Expand Up @@ -12314,7 +12314,7 @@ paths:

// must be previously logged in or use api token

medusa.admin.publishableApiKeys.addSalesChannels(publishableApiKeyId,
medusa.admin.publishableApiKeys.addSalesChannelsBatch(publishableApiKeyId,
{
sales_channel_ids: [
{
Expand All @@ -12330,7 +12330,7 @@ paths:
label: cURL
source: >
curl --location --request POST
'https://medusa-url.com/admin/publishable-api-keys/afasf/batch' \
'https://medusa-url.com/admin/publishable-api-keys/{pak_id}/batch' \

--header 'Authorization: Bearer {api_token}' \

Expand Down Expand Up @@ -12398,7 +12398,7 @@ paths:

// must be previously logged in or use api token

medusa.admin.publishableApiKeys.removeSalesChannels(publishableApiKeyId,
medusa.admin.publishableApiKeys.deleteSalesChannelsBatch(publishableApiKeyId,
{
sales_channel_ids: [
{
Expand All @@ -12414,7 +12414,7 @@ paths:
label: cURL
source: >
curl --location --request DELETE
'https://medusa-url.com/admin/publishable-api-keys/afasf/batch' \
'https://medusa-url.com/admin/publishable-api-keys/{pka_id}/batch' \

--header 'Authorization: Bearer {api_token}' \

Expand Down Expand Up @@ -12475,19 +12475,26 @@ paths:

// must be previously logged in or use api token

medusa.admin.publishableApiKey.create()
.then(({ publishable_api_key }) => {
console.log(publishable_api_key.id)
})
medusa.admin.publishableApiKeys.create({
title
})

.then(({ publishable_api_key }) => {
console.log(publishable_api_key.id)
})
- lang: Shell
label: cURL
source: >
curl --location --request POST
'https://medusa-url.com/admin/publishable-api-keys' \

--header 'Authorization: Bearer {api_token}'
--header 'Authorization: Bearer {api_token}' \

-d '{ "created_by": "user_123" }'
--header 'Content-Type: application/json' \

--data-raw '{
"title": "Web API Key"
}'
security:
- api_token: []
- cookie_auth: []
Expand Down Expand Up @@ -12560,7 +12567,7 @@ paths:
// must be previously logged in or use api token

medusa.admin.publishableApiKeys.list()
.then(({ publishable_api_keys }) => {
.then(({ publishable_api_keys, count, limit, offset }) => {
console.log(publishable_api_keys)
})
- lang: Shell
Expand Down Expand Up @@ -12622,15 +12629,16 @@ paths:

// must be previously logged in or use api token

medusa.admin.publishableApiKey.delete(key_id)
.then(({ id, object, deleted }) => {
console.log(id)
})
medusa.admin.publishableApiKeys.delete(publishableApiKeyId)

.then(({ id, object, deleted }) => {
console.log(id)
})
- lang: Shell
label: cURL
source: >
curl --location --request DELETE
'https://medusa-url.com/admin/publishable-api-key/{id}' \
'https://medusa-url.com/admin/publishable-api-key/{pka_id}' \

--header 'Authorization: Bearer {api_token}'
security:
Expand Down Expand Up @@ -12682,19 +12690,18 @@ paths:

// must be previously logged in or use api token

medusa.admin.publishableApiKey.retrieve(pubKeyId)
.then(({ publishable_api_key }) => {
console.log(publishable_api_key.id)
})
medusa.admin.publishableApiKeys.retrieve(publishableApiKeyId)

.then(({ publishable_api_key }) => {
console.log(publishable_api_key.id)
})
- lang: Shell
label: cURL
source: >
curl --location --request GET
'https://medusa-url.com/admin/publishable-api-keys/pubkey_123' \
'https://medusa-url.com/admin/publishable-api-keys/{pka_id}' \

--header 'Authorization: Bearer {api_token}'

-d '{ "created_by": "user_123" }'
security:
- api_token: []
- cookie_auth: []
Expand Down Expand Up @@ -12752,14 +12759,14 @@ paths:
// must be previously logged in or use api token

medusa.admin.publishableApiKeys.listSalesChannels()
.then(({ sales_channels, limit, offset, count }) => {
console.log(sales_channels)
.then(({ sales_channels }) => {
console.log(sales_channels.length)
})
- lang: Shell
label: cURL
source: >
curl --location --request GET
'https://medusa-url.com/admin/publishable-api-keys/pk_123/sales-channels'
'https://medusa-url.com/admin/publishable-api-keys/{pka_id}/sales-channels'
\

--header 'Authorization: Bearer {api_token}'
Expand Down Expand Up @@ -12815,20 +12822,18 @@ paths:

// must be previously logged in or use api token

medusa.admin.publishableApiKey.revoke()
medusa.admin.publishableApiKeys.revoke(publishableApiKeyId)
.then(({ publishable_api_key }) => {
console.log(publishable_api_key.id)
})
- lang: Shell
label: cURL
source: >
curl --location --request POST
'https://medusa-url.com/admin/publishable-api-keys/pubkey_123/revoke'
'https://medusa-url.com/admin/publishable-api-keys/{pka_id}/revoke'
\

--header 'Authorization: Bearer {api_token}'

-d '{ "created_by": "user_123", "revoked_by": "user_123" }'
security:
- api_token: []
- cookie_auth: []
Expand Down Expand Up @@ -12886,24 +12891,25 @@ paths:

// must be previously logged in or use api token

medusa.admin.publishableApiKey.update(publishable_key_id, {
medusa.admin.publishableApiKeys.update(publishableApiKeyId, {
title: "new title"
})
.then(({ publishable_api_key }) => {
console.log(publishable_api_key.id)
})

.then(({ publishable_api_key }) => {
console.log(publishable_api_key.id)
})
- lang: Shell
label: cURL
source: >
curl --location --request POST
'https://medusa-url.com/admin/publishable-api-key/{id}' \
'https://medusa-url.com/admin/publishable-api-key/{pka_id}' \

--header 'Authorization: Bearer {api_token}' \

--header 'Content-Type: application/json' \

--data-raw '{
"title": "updated title"
"title": "new title"
}'
security:
- api_token: []
Expand Down
Loading

0 comments on commit ddefcab

Please sign in to comment.