Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
d6870f9
ibexa-payment-methods.raml: Rm trailing slash
adriendupuis Apr 23, 2024
76acd39
Add DELETE /shipments/{identifier}
adriendupuis Apr 23, 2024
11c2b9a
GET /shipments/{identifier} has no payload
adriendupuis Apr 23, 2024
d1614ea
Rebuid rest_api_reference.html
adriendupuis Apr 23, 2024
f8822f1
Fix ibexa-user-groups.raml
adriendupuis Apr 23, 2024
69b573f
*.raml Add and remove headers
adriendupuis Apr 23, 2024
09df776
Rebuid rest_api_reference.html
adriendupuis Apr 23, 2024
a76090d
*.raml: Fix few headers & types
adriendupuis Apr 24, 2024
171e127
*.raml: Fix few headers & types
adriendupuis Apr 24, 2024
0d79340
*.raml: Fix few headers & types
adriendupuis Apr 24, 2024
a377c70
ibexa-objectstategroups.raml: Fix indent
adriendupuis Apr 24, 2024
1effd91
*.raml: Fix few headers & types
adriendupuis Apr 24, 2024
7c14006
*.raml: Fix few headers & types
adriendupuis Apr 24, 2024
f2ea89f
ProductGet.json.example: Move comment to have valid JSON
adriendupuis Apr 24, 2024
75d7e4e
*.raml: Fix few headers & types
adriendupuis Apr 24, 2024
b5b536d
ibexa-product-producttypes.raml: Add/Fix ProductTypeListGet
adriendupuis Apr 24, 2024
a605013
ibexa-product-attributegroups.raml : Add/Fix AttributeGroupListGet
adriendupuis Apr 24, 2024
fe8ac27
ibexa-product-attributegroups.raml : Add/Fix AttributeGroupGet
adriendupuis Apr 24, 2024
4a7b074
*.raml: Fix few headers & types
adriendupuis Apr 24, 2024
bdcdf95
*.raml: Fix few headers & types
adriendupuis Apr 24, 2024
89e72f8
Valid JSON
adriendupuis Apr 24, 2024
70458ed
ibexa-cart.raml: Add missing CartMetadataUpdateStruct body
adriendupuis Apr 24, 2024
5f1790c
ibexa-cart.raml: EntryUpdateStruct → CartEntryUpdate
adriendupuis Apr 24, 2024
aec0ea1
ibexa-product-catalogs.raml: rm CatalogGet
adriendupuis Apr 24, 2024
6617c22
*.raml: Fix few headers & types
adriendupuis Apr 24, 2024
ffadd20
ibexa-product-catalogs.raml: CatalogFilters→ProductFilterList
adriendupuis Apr 24, 2024
7af7785
ibexa-product-catalogs.raml: CatalogSortClauses→ProductSortClauseList
adriendupuis Apr 24, 2024
3b3f7a0
*.raml: Fix few headers & types
adriendupuis Apr 24, 2024
fe64adc
*.raml: Fix few headers & types
adriendupuis Apr 24, 2024
cfc09aa
ibexa-calendar.raml: Fix typing
adriendupuis Apr 24, 2024
3194b7e
ibexa-calendar.raml: Details UnscheduleAction
adriendupuis Apr 24, 2024
55bb3e2
*.raml: Fix few headers & types
adriendupuis Apr 24, 2024
26fde1f
*.raml: Fix few headers & types
adriendupuis Apr 24, 2024
09cea85
Rebuid rest_api_reference.html
adriendupuis Apr 24, 2024
8eea4b2
*.raml: Fix few headers & types
adriendupuis Apr 25, 2024
efcc5f2
Rebuid rest_api_reference.html
adriendupuis Apr 25, 2024
55a58b3
Merge branch 'master' into fix-rest
adriendupuis Apr 26, 2024
16c108f
*.raml: Fix few headers & types
adriendupuis Apr 26, 2024
1d5dc71
ibexa-content-types.raml: media VS type
adriendupuis Apr 26, 2024
6b8c529
Rebuid rest_api_reference.html
adriendupuis Apr 26, 2024
d669fbb
Draft missing /segments & /segment_groups
adriendupuis Apr 26, 2024
b2f907d
Continue /segment_groups
adriendupuis Apr 29, 2024
4497a8d
Continue /segments
adriendupuis Apr 29, 2024
a5f1b96
Add /segment_groups output examples
adriendupuis Apr 29, 2024
fa3f918
segments/ segment_groups/ displayName
adriendupuis Apr 29, 2024
f37f62b
*.raml: uppercase "HTTP" in desc
adriendupuis Apr 29, 2024
5293a1b
ibexa-types.raml: Continue CartEntryUpdate
adriendupuis Apr 29, 2024
d604d7c
ibexa-types.raml: Continue CartEntryUpdate
adriendupuis Apr 29, 2024
af95145
Rebuid rest_api_reference.html
adriendupuis Apr 29, 2024
7cef199
Format ibexa-types.raml
adriendupuis Apr 29, 2024
96e15cf
ibexa-types.raml: Fix FieldDefinitions
adriendupuis Apr 29, 2024
f38976d
ibexa-types.raml: Ref===BaseObject MultilingualValue===Value
adriendupuis Apr 29, 2024
ff56422
ibexa-types.raml: Fix ContentCreate
adriendupuis Apr 29, 2024
a99f0f7
ibexa-types.raml: Fix PaymentMethodView.Result type
adriendupuis Apr 29, 2024
09e515f
Rebuid rest_api_reference.html
adriendupuis Apr 29, 2024
65dc9a9
ibexa-types.raml: Fix View.LocationQuery type
adriendupuis Apr 29, 2024
b1140aa
ObjectStateGroupCreateStruct → ObjectStateGroupCreate
adriendupuis Apr 29, 2024
fdb7799
ibexa-types.raml: Fix PHP class vs REST type
adriendupuis Apr 29, 2024
fb5a94d
Rebuid rest_api_reference.html
adriendupuis Apr 29, 2024
368de74
continue ibexa-types.raml
adriendupuis Apr 29, 2024
5238717
Rebuid rest_api_reference.html
adriendupuis Apr 29, 2024
560ec53
ibexa-types.raml: Continue CartView
adriendupuis Apr 29, 2024
fbfff8a
Rebuid rest_api_reference.html
adriendupuis Apr 29, 2024
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
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ObjectStateGroup": {
"ObjectStateGroupCreate": {
"identifier": "custom-states",
"defaultLanguageCode": "eng-GB",
"names": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
<descriptions>
<value languageCode="eng-GB">Custom Object state</value>
</descriptions>
</ObjectStateGroup>
</ObjectStateGroupCreate>
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//optional
{
"AttributeGroupGet": {
"languages": ["eng-GB"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//optional
{
"ProductGet": {
"languages": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"SegmentGroupList": {
"_media-type": "application\/vnd.ibexa.api.SegmentGroupList+json",
"_href": "\/api\/ibexa\/v2\/segment_groups",
"SegmentGroup": [
{
"_media-type": "application\/vnd.ibexa.api.SegmentGroup+json",
"_href": "\/api\/ibexa\/v2\/segment_groups\/corporate_accounts",
"id": 1,
"identifier": "corporate_accounts",
"name": "Corporate Accounts"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<SegmentGroupList media-type="application/vnd.ibexa.api.SegmentGroupList+xml" href="/api/ibexa/v2/segment_groups">
<SegmentGroup media-type="application/vnd.ibexa.api.SegmentGroup+xml" href="/api/ibexa/v2/segment_groups/corporate_accounts">
<id>1</id>
<identifier>corporate_accounts</identifier>
<name>Corporate Accounts</name>
</SegmentGroup>
</SegmentGroupList>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"SegmentGroup": {
"_media-type": "application\/vnd.ibexa.api.SegmentGroup+json",
"_href": "\/api\/ibexa\/v2\/segment_groups\/corporate_accounts",
"id": 1,
"identifier": "corporate_accounts",
"name": "Corporate Accounts"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<SegmentGroup media-type="application/vnd.ibexa.api.SegmentGroup+xml" href="/api/ibexa/v2/segment_groups/corporate_accounts">
<id>1</id>
<identifier>corporate_accounts</identifier>
<name>Corporate Accounts</name>
</SegmentGroup>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"SegmentList": {
"_media-type": "application\/vnd.ibexa.api.SegmentList+json",
"_href": "\/api\/ibexa\/v2\/segment_groups\/corporate_accounts\/segments",
"Segment": []
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<SegmentList media-type="application/vnd.ibexa.api.SegmentList+xml" href="/api/ibexa/v2/segment_groups/corporate_accounts/segments"/>
41 changes: 22 additions & 19 deletions docs/api/rest_api/rest_api_reference/input/ibexa-calendar.raml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ displayName: Calendar
Accept:
description: If set, the calendar event list is returned in XML or JSON format.
example: |
application/vnd.ibexa.api.ContentInfo+xml
application/vnd.ibexa.api.ContentInfo+json
application/vnd.ibexa.api.EventList+xml
application/vnd.ibexa.api.EventList+json
responses:
200:
body:
application/vnd.ibexa.api.ContentInfo+xml:
type: ContentInfo
example: !include examples/calendar/event/GET/ContentInfo.xml.example
application/vnd.ibexa.api.ContentInfo+json:
type: ContentInfo
example: !include examples/calendar/event/GET/ContentInfo.json.example
application/vnd.ibexa.api.EventList+xml:
type: EventList
example: !include examples/calendar/event/GET/EventList.xml.example
application/vnd.ibexa.api.EventList+json:
type: EventList
example: !include examples/calendar/event/GET/EventList.json.example
/grouped-by-day:
get:
displayName: Calendar list grouped by day
Expand Down Expand Up @@ -64,17 +64,17 @@ displayName: Calendar
Accept:
description: If set, the calendar event list grouped by day is returned in XML or JSON format.
example: |
application/vnd.ibexa.api.ScheduledVersion+xml
application/vnd.ibexa.api.ScheduledVersion+json
application/vnd.ibexa.api.EventGroupList+xml
application/vnd.ibexa.api.EventGroupList+json
responses:
200:
body:
application/vnd.ibexa.api.ContentInfo+xml:
type: ContentInfo
example: !include examples/calendar/event/grouped-by-day/GET/ContentInfo.xml.example
application/vnd.ibexa.api.ContentInfo+json:
type: ContentInfo
example: !include examples/calendar/event/grouped-by-day/GET/ContentInfo.json.example
application/vnd.ibexa.api.EventGroupList+xml:
type: EventGroupList
example: !include examples/calendar/event/grouped-by-day/GET/EventGroupList.xml.example
application/vnd.ibexa.api.EventGroupList+json:
type: EventGroupList
example: !include examples/calendar/event/grouped-by-day/GET/EventGroupList.json.example
/{eventType}:
post:
displayName: Calendar action
Expand All @@ -83,10 +83,13 @@ displayName: Calendar
Content-Type:
example: |
application/vnd.ibexa.api.calendar.future_publication.UnscheduleAction+json
application/vnd.ibexa.api.calendar.future_hide.UnscheduleAction+json
body:
application/vnd.ibexa.api.UnscheduleActionInput+json:
type: RoleAssignInput
example: !include examples/calendar/event/eventType/POST/UnscheduleActionInput.json.example
application/vnd.ibexa.api.calendar.future_publication.UnscheduleAction+json:
type: UnscheduleAction
example: !include examples/calendar/event/eventType/POST/future_publication.UnscheduleAction.json.example
application/vnd.ibexa.api.calendar.future_hide.UnscheduleAction+json:
type: UnscheduleAction
responses:
204:
description: No Content - the action has been unscheduled.
63 changes: 49 additions & 14 deletions docs/api/rest_api/rest_api_reference/input/ibexa-cart.raml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,22 @@ post:
example: |
application/vnd.ibexa.api.CartCreate+xml
application/vnd.ibexa.api.CartCreate+json
Accept:
description: If set, the created Cart is returned in XML or JSON format.
example: |
application/vnd.ibexa.api.Cart+xml
application/vnd.ibexa.api.Cart+json
body:
application/vnd.ibexa.api.CartCreate+xml:
type: CartCreate
application/vnd.ibexa.api.CartCreate+json:
type: CartCreate
example: !include examples/cart/POST/CartCreate.json.example
responses:
200:
body:
application/vnd.ibexa.api.Cart+xml:
type: Cart
application/vnd.ibexa.api.Cart+json:
type: Cart
example: !include examples/cart/POST/Cart.json.example
Expand All @@ -36,26 +45,38 @@ post:
application/vnd.ibexa.api.CartViewInput+xml
application/vnd.ibexa.api.CartViewInput+json
body:
application/vnd.ibexa.api.CartViewInput+xml:
type: CartViewInput
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:
body:
application/vnd.ibexa.api.CartView+xml:
type: CartView
application/vnd.ibexa.api.CartView+json:
type: CartView
/{identifier}:
get:
displayName: Get Cart
description: Gets Cart by its identifier.
headers:
Accept:
description: The Cart is returned in XML or JSON format.
example: |
application/vnd.ibexa.api.Cart+xml
application/vnd.ibexa.api.Cart+json
responses:
200:
description: OK - return the cart
#body:
# application/vnd.ibexa.api.Cart+json:
# type: Cart
# example: !include examples/cart/POST/Cart.json.example
body:
application/vnd.ibexa.api.Cart+xml:
type: Cart
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:
Expand All @@ -68,10 +89,15 @@ post:
description: Updates identified Cart's metadata from payload.
headers:
Content-Type:
description: The CartMetadataUpdateStruct schema encoded in XML or JSON format.
description: The CartMetadataUpdate schema encoded in XML or JSON format.
example: |
application/vnd.ibexa.api.CartMetadataUpdateStruct+xml
application/vnd.ibexa.api.CartMetadataUpdateStruct+json
application/vnd.ibexa.api.CartMetadataUpdate+xml
application/vnd.ibexa.api.CartMetadataUpdate+json
body:
application/vnd.ibexa.api.CartMetadataUpdate+xml:
type: CartMetadataUpdate
application/vnd.ibexa.api.CartMetadataUpdate+json:
type: CartMetadataUpdate
/entry:
post:
displayName: Add Entry to Cart
Expand All @@ -85,6 +111,8 @@ post:
body:
application/vnd.ibexa.api.CartEntryAdd+xml:
type: CartEntryAdd
application/vnd.ibexa.api.CartEntryAdd+json:
type: CartEntryAdd
example: !include examples/cart/entry/POST/CartEntryAdd.json.example
/{entryId}:
delete:
Expand All @@ -95,10 +123,15 @@ post:
description: Updates the given entry from the given Cart.
headers:
Content-Type:
description: The EntryUpdateStruct schema encoded in XML or JSON format.
description: The CartEntryUpdate schema encoded in XML or JSON format.
example: |
application/vnd.ibexa.api.EntryUpdateStruct+xml
application/vnd.ibexa.api.EntryUpdateStruct+json
application/vnd.ibexa.api.CartEntryUpdate+xml
application/vnd.ibexa.api.CartEntryUpdate+json
body:
application/vnd.ibexa.api.CartEntryUpdate+xml:
type: CartEntryUpdate
application/vnd.ibexa.api.CartEntryUpdate+json:
type: CartEntryUpdate
/empty:
post:
displayName: Empty Cart
Expand All @@ -123,7 +156,9 @@ post:
responses:
200:
body:
application/vnd.ibexa.api.CountriesLis+json:
application/vnd.ibexa.api.CartSummary+xml:
type: CartSummary
application/vnd.ibexa.api.CartSummary+json:
type: CartSummary
example: !include examples/cart/summary/CartSummary.json.example
401:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ displayName: content/binary/name
Accept:
description: If set, the image is returned in XML or JSON format.
example: |
application/vnd.ibexa.api.ImageVariation+xml
application/vnd.ibexa.api.ImageVariation+json
application/vnd.ibexa.api.ContentImageVariation+xml
application/vnd.ibexa.api.ContentImageVariation+json
responses:
200:
body:
application/vnd.ibexa.api.ImageVariation+xml:
application/vnd.ibexa.api.ContentImageVariation+xml:
type: ContentImageVariation
example: !include examples/content/binary/images/image_id/variations/variation_identifier/GET/ImageVariation.xml.example
application/vnd.ibexa.api.ContentImageVariation+json:
type: ContentImageVariation
401:
description: Error - the user is not authorized to read this content item.
404:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ get:
description: The remote ID of the Location. If present, the Location with the given remote ID is returned.
urlAlias:
description: One of the URL aliases of the Location. If present, the Location with given URL Alias is returned.
headers:
Accept:
example: |
application/vnd.ibexa.api.LocationList+xml
application/vnd.ibexa.api.LocationList+json
responses:
307:
description: Temporary redirect to the main resource URL.
Expand Down Expand Up @@ -156,6 +161,8 @@ get:
application/vnd.ibexa.api.LocationList+xml:
type: LocationList
example: !include examples/content/locations/path/children/GET/LocationList.xml.example
application/vnd.ibexa.api.LocationList+json:
type: LocationList
401:
description: Error - the user is not authorized to read this content item.
404:
Expand All @@ -180,7 +187,9 @@ get:
body:
application/vnd.ibexa.api.UrlAliasRefList+xml:
type: UrlAliasRefList
exammple: examples/content/locations/path/urlaliases/GET/UrlAliasRefList.xml.example
example: examples/content/locations/path/urlaliases/GET/UrlAliasRefList.xml.example
application/vnd.ibexa.api.UrlAliasRefList+json:
type: UrlAliasRefList
400:
description: Error - The user has no permission to read URL aliases.
401:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,11 @@ get:
application/vnd.ibexa.api.Content+json:
type: Content
example: !include examples/content/objects/content_id/GET/Content.json.example

application/vnd.ibexa.api.ContentInfo+xml:
type: ContentInfo
example: !include examples/content/objects/content_id/GET/ContentInfo.xml.example
application/vnd.ibexa.api.ContentInfo+json:
type: ContentInfo
401:
description: Error - the user is not authorized to read this object. This could also happen if there is no published version yet and another user owns a draft of this content item.
404:
Expand All @@ -107,12 +108,16 @@ get:
application/vnd.ibexa.api.ContentUpdate+xml:
type: ContentInfo
example: !include examples/content/objects/content_id/PATCH/ContentUpdate.xml.example
application/vnd.ibexa.api.ContentUpdate+json:
type: ContentInfo
responses:
200:
body:
application/vnd.ibexa.api.ContentInfo+xml:
type: ContentInfo
example: !include examples/content/objects/content_id/PATCH/ContentInfo.xml.example
application/vnd.ibexa.api.ContentInfo+json:
type: ContentInfo
400:
description: Error - the input does not match the input schema definition.
401:
Expand Down Expand Up @@ -286,12 +291,16 @@ get:
application/vnd.ibexa.api.VersionUpdate+xml:
type: VersionUpdate
example: !include examples/content/objects/content_id/versions/version_no/PATCH/VersionUpdate.xml.example
application/vnd.ibexa.api.VersionUpdate+json:
type: VersionUpdate
responses:
200:
body:
application/vnd.ibexa.api.Version+xml:
type: Version
example: !include examples/content/objects/content_id/versions/version_no/PATCH/Version.xml.example
application/vnd.ibexa.api.Version+json:
type: Version
400:
description: Error - the input does not match the input schema definition.
401:
Expand Down
Loading