Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
567ded9
ez_original.raml: Add /content/objects/{contentId}/hide and /reveal
adriendupuis Dec 28, 2022
932fb63
Move new content from ez_original.raml to ez-content-object.raml
adriendupuis Dec 28, 2022
a920e95
ez-content-types.raml: Unique displayName for unique navigation anchor
adriendupuis Dec 29, 2022
db27c8e
ez-content-types.raml: Add GET /fieldDefinitions responses
adriendupuis Dec 29, 2022
1606da7
ez-product-productvariants.raml: /view → /view/{baseProductCode}
adriendupuis Jan 5, 2023
c433181
Add ez-product-attributetypes.raml
adriendupuis Jan 5, 2023
3249ecb
ez-commerce.raml: Add DELETE /commerce/basket/{basketId}
adriendupuis Jan 5, 2023
c7f4801
ez-user-groups.raml: Add POST /user/groups/subgroups
adriendupuis Jan 5, 2023
3a0f69b
ez-user-groups.raml: Complete POST /user/groups/subgroups
adriendupuis Jan 5, 2023
57cde90
ez-taxonomy.raml: Add several routes
adriendupuis Jan 6, 2023
d99cdd8
ez-user-groups.raml: Fix /{path}
adriendupuis Jan 6, 2023
6026cc8
ez-product-regions.raml: Add /product/catalog/regions/{identifier}
adriendupuis Jan 6, 2023
df17706
ez-commerce.raml: Fix /commerce/common/check_sku_file/{mode}
adriendupuis Jan 6, 2023
fe71bea
ez-product-attributes.raml: Full recommenced route in deprecated one'…
adriendupuis Jan 9, 2023
506b324
ez-product-attributes.raml: Fix /product/catalog/attributes/view body…
adriendupuis Jan 9, 2023
cd112e7
ez-product-product*.raml: Reword deprecated
adriendupuis Jan 9, 2023
b002fea
ez-product-attributes.raml: Fix /product/catalog/product*/view bodies…
adriendupuis Jan 9, 2023
f5e6617
ez-product-attributegroups.raml: Reword deprecated
adriendupuis Jan 9, 2023
1450ebc
ez-product-attributegroups.raml: Fix /product/catalog/attribute_group…
adriendupuis Jan 9, 2023
a47e71e
ez-user-users.raml: Add GET /user/users/{userId}/drafts
adriendupuis Jan 9, 2023
10dc38c
REST API ref: Merge /user/groups/{id}/ into /user/groups/{path}/ (#1843)
adriendupuis Jan 9, 2023
023b72a
ez-content-views.raml: Unify "deprecated" flag with others.
adriendupuis Jan 19, 2023
8956a24
Draft ez-cart.raml with /cart/{identifier}
adriendupuis Jan 19, 2023
1066457
ez-commerce.raml: rewrite "deprecated" flags
adriendupuis Jan 19, 2023
13a8c67
Continue ez-cart.raml with /cart and /cart/{identifier} other methods
adriendupuis Jan 19, 2023
93fd64d
ez-commerce.raml: Continue linking /commerce/basket/ to /cart/
adriendupuis Jan 19, 2023
00d8dce
*.raml: Remove shorten substitute from displayName
adriendupuis Jan 19, 2023
0c3882f
Continue ez-cart.raml with /cart/{identifier}/entry routes
adriendupuis Jan 20, 2023
54b2aa0
ez-commerce.raml: Substitute for /country; ez-services.raml: Fix typo
adriendupuis Jan 20, 2023
2dd4155
Draft CartSummary.json.example
adriendupuis Jan 20, 2023
57ad9b6
Add GET /user/current
adriendupuis Jan 20, 2023
3d9251e
ez-product-*.raml: Fix RAML syntax in few response bodies
adriendupuis Jan 20, 2023
acdea73
ez-raml: Move /cart closer to removed /commerce
adriendupuis Jan 20, 2023
f3f62d3
ez-commerce.raml: Remove removal time from navigation
adriendupuis Jan 20, 2023
d4f035f
ez-cart.raml: Add section displayName
adriendupuis Jan 20, 2023
d25ea2e
ez-user-users.raml: Add /user/users/segments
adriendupuis Jan 20, 2023
8164fe1
Rename few *.raml to correspond w/ their routes
adriendupuis Jan 23, 2023
3ad597b
ez-content-objects.raml: Add …/versions/{versionNo}/schedule
adriendupuis Jan 23, 2023
ce3ea5e
ez-content-objects.raml: Remove …/versions/{versionNo}/schedule
adriendupuis Jan 23, 2023
e081529
Complete CartSummary.json.example with a real example
adriendupuis Jan 24, 2023
1f4bbd2
Continue ez-cart.raml
adriendupuis Jan 24, 2023
a1f7db6
ez-content-types.raml: Add GET /content/types/{contentTypeId}/draft
adriendupuis Jan 24, 2023
0dfa2e6
ez-cart.raml: Fix missing CartViewInput type
adriendupuis Jan 24, 2023
3fa993b
ez.raml & ez-views.raml: Comment w/ routes kept for another latter PR
adriendupuis Jan 24, 2023
0b99680
ez-cart.raml: eCommerce → Commerce
adriendupuis Feb 3, 2023
74a8238
tools/raml2html/themes/default: Fix skipped methods bug
adriendupuis Jan 23, 2023
567e4ff
Regenerate rest_api_reference.html
adriendupuis Feb 17, 2023
58fb083
(minor) index.html.twig: Format code
adriendupuis Feb 17, 2023
5d552b8
Merge branch 'master' into update-rest-api-ref
adriendupuis Feb 17, 2023
2aca123
Regenerate rest_api_reference.html
adriendupuis Feb 17, 2023
4aceca6
resource-endpoints.html.twig: Fix `isFirstLevel` usage
adriendupuis Feb 17, 2023
9c9568b
resource-endpoints.html.twig: Fix `<h3>` condition
adriendupuis Feb 17, 2023
fd6e802
Merge branch 'master' into update-rest-api-ref
adriendupuis Mar 2, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"CartViewInput": {
"identifier": "loadUserCarts",
"CartQuery": {
"offset": 0,
"limit": 10,
"ownerId": 123
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
{
"EntryAssignmentCollection": {
"_media-type": "application/vnd.ibexa.api.EntryAssignmentCollection+json",
"content": {
"_media-type": "application/vnd.ibexa.api.Content+json",
"Content": {
"_media-type": "application/vnd.ibexa.api.ContentInfo+json",
"_href": "/api/ibexa/v2/content/objects/1",
"_remoteId": "9459d3c29e15006e45197295722c7ade",
"_id": 1,
"ContentType": {
"_media-type": "application/vnd.ibexa.api.ContentType+json",
"_href": "/api/ibexa/v2/content/types/1"
},
"Name": "Ibexa Platform",
"TranslatedName": "Ibexa Platform",
"Versions": {
"_media-type": "application/vnd.ibexa.api.VersionList+json",
"_href": "/api/ibexa/v2/content/objects/1/versions"
},
"CurrentVersion": {
"_media-type": "application/vnd.ibexa.api.Version+json",
"_href": "/api/ibexa/v2/content/objects/1/currentversion"
},
"Section": {
"_media-type": "application/vnd.ibexa.api.Section+json",
"_href": "/api/ibexa/v2/content/sections/1"
},
"Locations": {
"_media-type": "application/vnd.ibexa.api.LocationList+json",
"_href": "/api/ibexa/v2/content/objects/1/locations"
},
"Owner": {
"_media-type": "application/vnd.ibexa.api.User+json",
"_href": "/api/ibexa/v2/user/users/14"
},
"lastModificationDate": "2023-01-01T00:00:00+00:00",
"publishedDate": "2015-11-30T13:10:46+00:00",
"mainLanguageCode": "eng-GB",
"currentVersionNo": 10,
"alwaysAvailable": true,
"isHidden": false,
"status": "PUBLISHED",
"ObjectStates": {
"_media-type": "application/vnd.ibexa.api.ContentObjectStates+json",
"_href": "/api/ibexa/v2/content/objects/1/objectstates"
}
}
},
"assignments": [
{
"_media-type": "application/vnd.ibexa.api.TaxonomyEntryAssignment+json",
"id": 1,
"content": {
"_media-type": "application/vnd.ibexa.api.Content+json",
"Content": {
"_media-type": "application/vnd.ibexa.api.ContentInfo+json",
"_href": "/api/ibexa/v2/content/objects/1",
"_remoteId": "9459d3c29e15006e45197295722c7ade",
"_id": 1,
"ContentType": {
"_media-type": "application/vnd.ibexa.api.ContentType+json",
"_href": "/api/ibexa/v2/content/types/1"
},
"Name": "Ibexa Platform",
"TranslatedName": "Ibexa Platform",
"Versions": {
"_media-type": "application/vnd.ibexa.api.VersionList+json",
"_href": "/api/ibexa/v2/content/objects/1/versions"
},
"CurrentVersion": {
"_media-type": "application/vnd.ibexa.api.Version+json",
"_href": "/api/ibexa/v2/content/objects/1/currentversion"
},
"Section": {
"_media-type": "application/vnd.ibexa.api.Section+json",
"_href": "/api/ibexa/v2/content/sections/1"
},
"Locations": {
"_media-type": "application/vnd.ibexa.api.LocationList+json",
"_href": "/api/ibexa/v2/content/objects/1/locations"
},
"Owner": {
"_media-type": "application/vnd.ibexa.api.User+json",
"_href": "/api/ibexa/v2/user/users/14"
},
"lastModificationDate": "2023-01-01T00:00:00+00:00",
"publishedDate": "2015-11-30T13:10:46+00:00",
"mainLanguageCode": "eng-GB",
"currentVersionNo": 10,
"alwaysAvailable": true,
"isHidden": false,
"status": "PUBLISHED",
"ObjectStates": {
"_media-type": "application/vnd.ibexa.api.ContentObjectStates+json",
"_href": "/api/ibexa/v2/content/objects/1/objectstates"
}
}
},
"entry": {
"_media-type": "application/vnd.ibexa.api.TaxonomyEntry+json",
"TaxonomyEntry": {
"_media-type": "application/vnd.ibexa.api.TaxonomyEntry+json",
"id": 3,
"identifier": "example",
"name": "Example",
"contentId": 65,
"content": {
"_media-type": "application/vnd.ibexa.api.Content+json",
"_href": "/api/ibexa/v2/content/objects/65"
},
"taxonomy": "tags"
}
}
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<EntryAssignmentCollection media-type="application/vnd.ibexa.api.EntryAssignmentCollection+xml">
<content media-type="application/vnd.ibexa.api.Content+xml">
<Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/1" remoteId="9459d3c29e15006e45197295722c7ade" id="1">
<ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/1"/>
<Name>Ibexa Platform</Name>
<TranslatedName>Ibexa Platform</TranslatedName>
<Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/1/versions"/>
<CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/1/currentversion"/>
<Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/1"/>
<Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/1/locations"/>
<Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/>
<lastModificationDate>2023-01-01T00:00:00+00:00</lastModificationDate>
<publishedDate>2015-11-30T13:10:46+00:00</publishedDate>
<mainLanguageCode>eng-GB</mainLanguageCode>
<currentVersionNo>10</currentVersionNo>
<alwaysAvailable>true</alwaysAvailable>
<isHidden>false</isHidden>
<status>PUBLISHED</status>
<ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" href="/api/ibexa/v2/content/objects/1/objectstates"/>
</Content>
</content>
<TaxonomyEntryAssignment media-type="application/vnd.ibexa.api.TaxonomyEntryAssignment+xml">
<id>1</id>
<content media-type="application/vnd.ibexa.api.Content+xml">
<Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/1" remoteId="9459d3c29e15006e45197295722c7ade" id="1">
<ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/1"/>
<Name>Ibexa Platform</Name>
<TranslatedName>Ibexa Platform</TranslatedName>
<Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/1/versions"/>
<CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/1/currentversion"/>
<Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/1"/>
<Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/1/locations"/>
<Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/>
<lastModificationDate>2023-01-01T00:00:00+00:00</lastModificationDate>
<publishedDate>2015-11-30T13:10:46+00:00</publishedDate>
<mainLanguageCode>eng-GB</mainLanguageCode>
<currentVersionNo>10</currentVersionNo>
<alwaysAvailable>true</alwaysAvailable>
<isHidden>false</isHidden>
<status>PUBLISHED</status>
<ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" href="/api/ibexa/v2/content/objects/1/objectstates"/>
</Content>
</content>
<entry media-type="application/vnd.ibexa.api.TaxonomyEntry+xml">
<TaxonomyEntry media-type="application/vnd.ibexa.api.TaxonomyEntry+xml">
<id>3</id>
<identifier>example</identifier>
<name>Example</name>
<contentId>65</contentId>
<content media-type="application/vnd.ibexa.api.Content+xml" href="/api/ibexa/v2/content/objects/65"/>
<taxonomy>tags</taxonomy>
</TaxonomyEntry>
</entry>
</TaxonomyEntryAssignment>
</EntryAssignmentCollection>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"TaxonomyEntryBulkRemove": {
"entries": [ 2, 3 ]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"TaxonomyEntryBulkMove": {
"entries": [
[
entry: 2,
sibling: 1,
position: 'next'
],
[
entry: 3,
sibling: 1,
position: 'prev'
],
]
}
}
132 changes: 132 additions & 0 deletions docs/api/rest_api/rest_api_reference/input/ez-cart.raml
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
displayName: Managing Commerce carts
post:
displayName: Create Cart
description: Creates Cart from payload.
headers:
Content-Type:
description: The CartCreateStruct schema encoded in XML or JSON format.
example: |
application/vnd.ibexa.api.CartCreateStruct+xml
application/vnd.ibexa.api.CartCreateStruct+json
#body:
# application/vnd.ibexa.api.CartCreateStruct+xml:
# type: CartCreateStruct
# example: !include examples/cart/POST/CartCreateStruct.json.example
#responses:
# 200:
# body:
# application/vnd.ibexa.api.Cart+json:
# type: Cart
# example: !include examples/cart/POST/Cart.json.example
# 400:
# description: Error - The input does not match the input schema definition.
/view:
post:
displayName: Filter carts
description: Executes a query and returns a View including the results.
headers:
Accept:
description: The CartView schema is returned in XML or JSON format.
example: |
application/vnd.ibexa.api.CartView+xml
application/vnd.ibexa.api.CartView+json
Content-Type:
description: The CartViewInput schema is posted in XML or JSON format.
example: |
application/vnd.ibexa.api.CartViewInput+xml
application/vnd.ibexa.api.CartViewInput+json
body:
application/vnd.ibexa.api.CartViewInput+json:
type: CartViewInput
example: !include examples/cart/view/CartViewInput.json.example
responses:
200:
description: OK - returns a view and its results
#body:
# application/vnd.ibexa.api.CartView+xml:
# application/vnd.ibexa.api.CartView+json:
/{identifier}:
get:
displayName: Get Cart
description: Gets Cart by its identifier.
responses:
200:
description: OK - return the cart
#body:
# application/vnd.ibexa.api.Cart+json:
# type: Cart
# example: !include examples/cart/POST/Cart.json.example
401:
description: Error - the user is not authorized to get this cart.
404:
description: Error - The identifier do not match any Cart.
delete:
displayName: Delete Cart
description: Deletes Cart by its identifier.
patch:
displayName: Update Cart's metadata
description: Updates identified Cart's metadata from payload.
headers:
Content-Type:
description: The CartMetadataUpdateStruct schema encoded in XML or JSON format.
example: |
application/vnd.ibexa.api.CartMetadataUpdateStruct+xml
application/vnd.ibexa.api.CartMetadataUpdateStruct+json
/entry:
post:
displayName: Add Entry to Cart
description: Adds an the posted entry to the cart passed by identifier
headers:
Content-Type:
description: The EntryAddStruct schema encoded in XML or JSON format.
example: |
application/vnd.ibexa.api.EntryAddStruct+xml
application/vnd.ibexa.api.EntryAddStruct+json
#body:
# application/vnd.ibexa.api.EntryAddStruct+xml:
# type: EntryAddStruct
# example: !include examples/cart/entry/POST/EntryAddStruct.json.example
/{entryId}:
delete:
displayName: Remove Entry from Cart
description: Removes the given entry from the given Cart.
patch:
displayName: Update Entry from Cart
description: Updates the given entry from the given Cart.
headers:
Content-Type:
description: The EntryUpdateStruct schema encoded in XML or JSON format.
example: |
application/vnd.ibexa.api.EntryUpdateStruct+xml
application/vnd.ibexa.api.EntryUpdateStruct+json
/empty:
post:
displayName: Empty Cart
description: Empties the given Cart.
responses:
204:
description: No Content - Cart emptied.
401:
description: Error - The user is not authorized to empty this Cart.
404:
description: Error - Cart not found.
/summary:
get:
displayName: Cart Summary
description: Gets a summary of the given Cart.
headers:
Accept:
description: If set, the Cart Summary is returned in XML or JSON format.
example: |
application/vnd.ibexa.api.CartSummary+xml
application/vnd.ibexa.api.CartSummary+json
responses:
200:
body:
application/vnd.ibexa.api.CountriesLis+json:
type: CartSummary
example: !include examples/cart/summary/CartSummary.json.example
401:
description: Error - The user is not authorized to read this Cart.
404:
description: Error - Cart not found.
Loading