-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
/api/ibexa/v2/cart/{identifier}/validate /api/ibexa/v2/cart/authorize --------- Co-authored-by: Marek Nocoń <[email protected]>
- Loading branch information
1 parent
c636be4
commit 50b28fb
Showing
14 changed files
with
1,751 additions
and
259 deletions.
There are no files selected for viewing
21 changes: 12 additions & 9 deletions
21
docs/api/rest_api/rest_api_reference/input/examples/cart/POST/Cart.json.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
{ | ||
"Cart": { | ||
"_media-type": "application/vnd.ibexa.api.Cart+json", | ||
"id": 12, | ||
"identifier": "fafccc4b-cce1-40d7-8d23-29ad41638581", | ||
"_media-type": "application\/vnd.ibexa.api.Cart+json", | ||
"id": 1, | ||
"identifier": "e79b5dba-c701-4c64-8032-73719a513e50", | ||
"name": "Default", | ||
"createdAt": "2023-10-12T10:02:51+00:00", | ||
"updatedAt": "2023-10-12T10:02:51+00:00", | ||
"createdAt": "2024-09-26T09:16:56+00:00", | ||
"updatedAt": "2024-09-26T09:16:56+00:00", | ||
"owner": { | ||
"_media-type": "application/vnd.ibexa.api.User+json", | ||
"_href": "/api/ibexa/v2/user/users/14" | ||
"_media-type": "application\/vnd.ibexa.api.User+json", | ||
"_href": "\/api\/ibexa\/v2\/user\/users\/10" | ||
}, | ||
"Currency": { | ||
"_media-type": "application/vnd.ibexa.api.Currency+json", | ||
"_media-type": "application\/vnd.ibexa.api.Currency+json", | ||
"id": 2, | ||
"code": "EUR", | ||
"subunits": 2, | ||
"enabled": true | ||
}, | ||
"entries": [] | ||
"entries": [], | ||
"context": { | ||
"foo": "bar" | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
docs/api/rest_api/rest_api_reference/input/examples/cart/POST/Cart.xml.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Cart media-type="application/vnd.ibexa.api.Cart+xml"> | ||
<id>1</id> | ||
<identifier>e67d8f4c-95b5-423f-89d8-b2b81c37609b</identifier> | ||
<name>Default</name> | ||
<createdAt>2024-09-26T09:16:56+00:00</createdAt> | ||
<updatedAt>2024-09-26T09:16:56+00:00</updatedAt> | ||
<owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/10"/> | ||
<Currency media-type="application/vnd.ibexa.api.Currency+xml"> | ||
<id>2</id> | ||
<code>EUR</code> | ||
<subunits>2</subunits> | ||
<enabled>1</enabled> | ||
</Currency> | ||
</Cart> |
4 changes: 4 additions & 0 deletions
4
docs/api/rest_api/rest_api_reference/input/examples/cart/POST/CartCreate.xml.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<CartCreate> | ||
<name>Default</name> | ||
<currencyCode>EUR</currencyCode> | ||
</CartCreate> |
6 changes: 6 additions & 0 deletions
6
docs/api/rest_api/rest_api_reference/input/examples/cart/authorize/Token.json.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"Token": { | ||
"_media-type": "application\/vnd.ibexa.api.Token+json", | ||
"value": "7b19308.RiDPaorwmJRyQoGajJiLMp843r30WaW-PH1CeH4oQyU.dkOXWOuFrvBfDPXY1t27YMx0hvyFH8fPUwoDNRl_D0sWDb4O3bb-20Q32A" | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
docs/api/rest_api/rest_api_reference/input/examples/cart/authorize/Token.xml.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Token media-type="application/vnd.ibexa.api.Token+xml"> | ||
<value>eff5.w9r2Ws_zpjcopNJ8FRNVaplGlx19y4Mp2QP-eQWZDKc.-pe4Pam133xKzKQZLCdiIMkj2EgQ5rMdtlGTEEPPaOyHv6Y1iKTsZ2_OtQ</value> | ||
</Token> |
6 changes: 6 additions & 0 deletions
6
...eference/input/examples/cart/identifier/validate/CartConstraintViolationList.json.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"CartConstraintViolationList": { | ||
"_media-type": "application\/vnd.ibexa.api.CartConstraintViolationList+json", | ||
"violations": [] | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
...reference/input/examples/cart/identifier/validate/CartConstraintViolationList.xml.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CartConstraintViolationList media-type="application/vnd.ibexa.api.CartConstraintViolationList+xml"/> |
38 changes: 38 additions & 0 deletions
38
docs/api/rest_api/rest_api_reference/input/examples/cart/view/CartView.json.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"CartView": { | ||
"_media-type": "application\/vnd.ibexa.api.CartView+json", | ||
"identifier": "loadUserCarts", | ||
"Result": { | ||
"_media-type": "application\/vnd.ibexa.api.ViewResult+json", | ||
"count": 1, | ||
"CartList": { | ||
"_media-type": "application\/vnd.ibexa.api.CartList+json", | ||
"Cart": [ | ||
{ | ||
"_media-type": "application\/vnd.ibexa.api.Cart+json", | ||
"id": 1, | ||
"identifier": "e79b5dba-c701-4c64-8032-73719a513e50", | ||
"name": "Default", | ||
"createdAt": "2024-09-26T09:16:56+00:00", | ||
"updatedAt": "2024-09-26T09:16:56+00:00", | ||
"owner": { | ||
"_media-type": "application\/vnd.ibexa.api.User+json", | ||
"_href": "\/api\/ibexa\/v2\/user\/users\/10" | ||
}, | ||
"Currency": { | ||
"_media-type": "application\/vnd.ibexa.api.Currency+json", | ||
"id": 2, | ||
"code": "EUR", | ||
"subunits": 2, | ||
"enabled": true | ||
}, | ||
"entries": [], | ||
"context": { | ||
"foo": "bar" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
docs/api/rest_api/rest_api_reference/input/examples/cart/view/CartView.xml.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CartView media-type="application/vnd.ibexa.api.CartView+xml"> | ||
<identifier>loadUserCarts</identifier> | ||
<Result media-type="application/vnd.ibexa.api.ViewResult+xml"> | ||
<count>1</count> | ||
<CartList media-type="application/vnd.ibexa.api.CartList+xml"> | ||
<Cart media-type="application/vnd.ibexa.api.Cart+xml"> | ||
<id>1</id> | ||
<identifier>e67d8f4c-95b5-423f-89d8-b2b81c37609b</identifier> | ||
<name>Default</name> | ||
<createdAt>2024-09-26T09:16:56+00:00</createdAt> | ||
<updatedAt>2024-09-26T09:16:56+00:00</updatedAt> | ||
<owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/10"/> | ||
<Currency media-type="application/vnd.ibexa.api.Currency+xml"> | ||
<id>2</id> | ||
<code>EUR</code> | ||
<subunits>2</subunits> | ||
<enabled>1</enabled> | ||
</Currency> | ||
</Cart> | ||
</CartList> | ||
</Result> | ||
</CartView> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"CartQuery": { | ||
"offset": 0, | ||
"limit": 10, | ||
"ownerId": 123 | ||
"ownerId": 10 | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
docs/api/rest_api/rest_api_reference/input/examples/cart/view/CartViewInput.xml.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<CartViewInput> | ||
<identifier>loadUserCarts</identifier> | ||
<CartQuery> | ||
<offset>0</offset> | ||
<limit>10</limit> | ||
<ownerId>10</ownerId> | ||
</CartQuery> | ||
</CartViewInput> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.