Skip to content

Commit c837c08

Browse files
committed
Fix rest types (#2444)
(cherry picked from commit a9b0a0e)
1 parent 9c26c52 commit c837c08

File tree

5 files changed

+614
-27
lines changed

5 files changed

+614
-27
lines changed
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
2-
"SectionInput": {
2+
"Section": {
3+
"_media-type": "application/vnd.ibexa.api.Section+json",
4+
"_href": "/api/ibexa/v2/content/sections/13",
5+
"sectionId": 13,
36
"identifier": "restricted",
47
"name": "Restricted"
58
}
6-
}
9+
}

docs/api/rest_api/rest_api_reference/input/examples/content/sections/POST/SectionInput.json.example

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
2-
"Section": {
3-
"_media-type": "application/vnd.ibexa.api.Section+json",
4-
"_href": "/api/ibexa/v2/content/sections/13",
5-
"sectionId": 13,
2+
"SectionInput": {
63
"identifier": "restricted",
74
"name": "Restricted"
85
}

docs/api/rest_api/rest_api_reference/input/ibexa-content-locations.raml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ get:
187187
body:
188188
application/vnd.ibexa.api.UrlAliasRefList+xml:
189189
type: UrlAliasRefList
190-
example: examples/content/locations/path/urlaliases/GET/UrlAliasRefList.xml.example
190+
example: !include examples/content/locations/path/urlaliases/GET/UrlAliasRefList.xml.example
191191
application/vnd.ibexa.api.UrlAliasRefList+json:
192192
type: UrlAliasRefList
193193
400:

docs/api/rest_api/rest_api_reference/input/ibexa-types.raml

Lines changed: 81 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ BookmarkList:
5353
description: 'List of bookmarked Locations.'
5454
type: object
5555
properties:
56-
totalCount:
56+
count:
5757
description: 'The total number of bookmarks.'
5858
type: integer
5959
items:
@@ -1858,8 +1858,8 @@ UrlAliasRefList:
18581858
description: 'List of URL alias in the Repository.'
18591859
type: BaseObject
18601860
properties:
1861-
URLAlias:
1862-
type: URLAlias[]
1861+
UrlAlias:
1862+
type: UrlAlias[]
18631863

18641864
UrlQuery:
18651865
description: 'This class is used to perform a URL query.'
@@ -2775,6 +2775,17 @@ ProductFilterList:
27752775
productFilters:
27762776
type: ProductFilter[]
27772777

2778+
ProductFilter:
2779+
type: object
2780+
properties:
2781+
name: string
2782+
2783+
ProductSortClause:
2784+
type: object
2785+
properties:
2786+
name:
2787+
type: string
2788+
27782789
ProductSortClauseList:
27792790
description: 'This class represents a product sort clause list.'
27802791
type: object
@@ -2786,6 +2797,8 @@ Currency:
27862797
description: 'This class represents currency.'
27872798
type: object
27882799
properties:
2800+
id:
2801+
type: integer
27892802
code:
27902803
type: string
27912804
subunits:
@@ -3098,6 +3111,16 @@ CurrencyViewInput:
30983111
CurrencyQuery:
30993112
type: object
31003113

3114+
AttributeAssignment:
3115+
type: object
3116+
properties:
3117+
is_required:
3118+
type: boolean
3119+
is_discriminator:
3120+
type: boolean
3121+
Attribute:
3122+
type: Attribute
3123+
31013124
ProductType:
31023125
description: 'This class represents a product type.'
31033126
type: object
@@ -3441,6 +3464,16 @@ TaxonomyEntryBulkRemove:
34413464
entries:
34423465
type: TaxonomyEntry[]
34433466

3467+
TaxonomyEntryMove:
3468+
type: object
3469+
properties:
3470+
entry:
3471+
type: integer
3472+
sibling:
3473+
type: integer
3474+
position:
3475+
type: string
3476+
34443477
TaxonomyEntryBulkMove:
34453478
description: 'This class is used to bulk move taxonomy entries.'
34463479
type: object
@@ -3522,6 +3555,43 @@ ContentMetadataUpdate:
35223555
name:
35233556
type: string
35243557

3558+
SummaryEntryNames:
3559+
type: object
3560+
properties:
3561+
value:
3562+
type: array
3563+
items:
3564+
type: object
3565+
properties:
3566+
_languageCode:
3567+
type: string
3568+
'#text':
3569+
type: string
3570+
3571+
SummaryEntry:
3572+
type: object
3573+
properties:
3574+
identifier:
3575+
type: string
3576+
id:
3577+
type: integer
3578+
names:
3579+
type: SummaryEntryNames
3580+
quantity:
3581+
type: integer
3582+
Price:
3583+
type: RestPrice
3584+
PriceInclVat:
3585+
type: RestPrice
3586+
SubtotalPrice:
3587+
type: RestPrice
3588+
SubtotalPriceInclVat:
3589+
type: RestPrice
3590+
VatCategory:
3591+
type: VatCategory
3592+
Product:
3593+
type: Product
3594+
35253595
SummaryEntryCollection:
35263596
description: 'This class represents a summary entry collection.'
35273597
type: object
@@ -3567,6 +3637,14 @@ CustomPrice:
35673637
custom_rule:
35683638
type: string
35693639

3640+
RestPrice:
3641+
type: object
3642+
properties:
3643+
Price:
3644+
type: Price
3645+
formatted:
3646+
type: string
3647+
35703648
PriceList:
35713649
description: 'This class represents a price list.'
35723650
type: object

0 commit comments

Comments
 (0)