-
Notifications
You must be signed in to change notification settings - Fork 86
IBX-9058: Complete REST API Reference #2674
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Preview of modified Markdown: no Markdown change to preview. |
Preview of modified files: no change to preview. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for taking care of this!
@@ -0,0 +1,3 @@ | |||
<UserSegmentAssignInput> | |||
<segments>corporate_account</segments> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In JSON this part is an array, how to pass multiple segments in XML?
I've tried something like this:
<UserSegmentAssignInput>
<segments><segment>TestSegment4</segment><segment>TestSegment5</segment></segments>
</UserSegmentAssignInput>
and received:
<?xml version="1.0" encoding="UTF-8"?>
<ErrorMessage media-type="application/vnd.ibexa.api.ErrorMessage+xml">
<errorCode>406</errorCode>
<errorMessage>Not Acceptable</errorMessage>
<errorDescription>Argument 'segments[segment]' is invalid: expected a string</errorDescription>
<trace>#0 /Users/marek/Desktop/Sites/instance1/vendor/ibexa/rest/src/contracts/Input/ParsingDispatcher.php(111): Ibexa\Bundle\Segmentation\REST\Input\Parser\UserSegmentAssignInput->parse(Array, Object(Ibexa\Contracts\Rest\Input\ParsingDispatcher))
#1 /Users/marek/Desktop/Sites/instance1/vendor/ibexa/rest/src/contracts/Input/ParsingDispatcher.php(86): Ibexa\Contracts\Rest\Input\ParsingDispatcher->internalParse(Array, 'application/vnd...')
#2 /Users/marek/Desktop/Sites/instance1/vendor/ibexa/rest/src/lib/Input/Dispatcher.php(115): Ibexa\Contracts\Rest\Input\ParsingDispatcher->parse(Array, 'application/vnd...'
So maybe it's not possible?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea.
Complete REST API Reference entries in parallel with OpenAPI
Previews:
OpenAPI equivalents:
Related
Checklist