docs: add loyalty plugin routes to OAS (#12811)

* generated OAS

* remove unused schemas

* generated specs

* add cloud badge for routes

* add to loyalty plugin page

* allow clicking the tooltip
This commit is contained in:
Shahed Nasser
2025-06-24 19:17:55 +03:00
committed by GitHub
parent 3826bde591
commit 93cf79cb0f
164 changed files with 16001 additions and 88 deletions

View File

@@ -0,0 +1,6 @@
curl -X DELETE '{backend_url}/store/carts/{id}/gift-cards' \
-H 'x-publishable-api-key: {your_publishable_api_key}' \
-H 'Content-Type: application/json' \
--data-raw '{
"code": "{value}"
}'

View File

@@ -0,0 +1,6 @@
curl -X POST '{backend_url}/store/carts/{id}/gift-cards' \
-H 'x-publishable-api-key: {your_publishable_api_key}' \
-H 'Content-Type: application/json' \
--data-raw '{
"code": "{value}"
}'

View File

@@ -0,0 +1,6 @@
curl -X POST '{backend_url}/store/carts/{id}/store-credits' \
-H 'x-publishable-api-key: {your_publishable_api_key}' \
-H 'Content-Type: application/json' \
--data-raw '{
"amount": 48
}'

View File

@@ -0,0 +1,2 @@
curl -X POST '{backend_url}/store/gift-card-invitations/{code}/accept' \
-H 'x-publishable-api-key: {your_publishable_api_key}'

View File

@@ -0,0 +1,2 @@
curl -X POST '{backend_url}/store/gift-card-invitations/{code}/reject' \
-H 'x-publishable-api-key: {your_publishable_api_key}'

View File

@@ -0,0 +1,2 @@
curl '{backend_url}/store/gift-cards' \
-H 'x-publishable-api-key: {your_publishable_api_key}'

View File

@@ -0,0 +1,2 @@
curl '{backend_url}/store/gift-cards/{id}' \
-H 'x-publishable-api-key: {your_publishable_api_key}'

View File

@@ -0,0 +1,6 @@
curl -X POST '{backend_url}/store/gift-cards/{id}/invitation' \
-H 'x-publishable-api-key: {your_publishable_api_key}' \
-H 'Content-Type: application/json' \
--data-raw '{
"email": "Morton61@hotmail.com"
}'

View File

@@ -0,0 +1,2 @@
curl -X POST '{backend_url}/store/gift-cards/{id}/redeem' \
-H 'x-publishable-api-key: {your_publishable_api_key}'

View File

@@ -0,0 +1,2 @@
curl '{backend_url}/store/store-credit-accounts' \
-H 'x-publishable-api-key: {your_publishable_api_key}'

View File

@@ -0,0 +1,2 @@
curl '{backend_url}/store/store-credit-accounts/{id}' \
-H 'x-publishable-api-key: {your_publishable_api_key}'