-
Notifications
You must be signed in to change notification settings - Fork 82
IBX-9058: Complete REST API Reference #2674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
9750d11
REST API: Continue user/users/{userId}/segments
adriendupuis fef7031
ibexa-user-users.raml: Fix typo
adriendupuis 9634e50
ibexa-user-users.raml: Fix typo
adriendupuis 6f9daa7
REST API: Continue user/users/{userId}/segments responses
adriendupuis f7fb81d
REST API: Continue user/users/{userId}/segments responses
adriendupuis 430b683
Regenerate REST API Reference's HTML
adriendupuis bc7f8b8
UserSegmentList.json.example: EOL@EOF
adriendupuis b82d11e
REST API Ref: Add responses to PATCH /cart/{identifier}
adriendupuis d9f10b7
REST API Ref: Add responses to POST /cart/{identifier}/entry
adriendupuis af79700
REST API Ref: Add responses to DELETE /cart/{identifier}/entry/{entryId}
adriendupuis 8dea518
Regenerate REST API Reference's HTML
adriendupuis a48a365
REST API Ref: Add responses to DELETE /cart/{identifier}/entry/{entryId}
adriendupuis b1f4c82
REST API Ref: Add responses to PATCH /cart/{identifier}/entry/{entryId}
adriendupuis c2f3f28
Regenerate REST API Reference's HTML
adriendupuis 1fd7b96
ibexa-types.raml: Fix LocationQuery
adriendupuis b152461
Regenerate REST API Reference's HTML
adriendupuis d03fbdc
Merge branch 'master' into complete-rest-api-ref
adriendupuis 394690c
Merge branch 'master' into complete-rest-api-ref
adriendupuis 27a2fa5
Fix /corporate/companies/{companyId}/members 400 description
adriendupuis 2214d68
rebuild rest_api_reference.html
adriendupuis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
..._reference/input/examples/user/users/user_id/segments/UserSegmentAssignInput.json.example
This file contains hidden or 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,5 @@ | ||
{ | ||
"UserSegmentAssignInput": { | ||
"segments": ["corporate_account"] | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...i_reference/input/examples/user/users/user_id/segments/UserSegmentAssignInput.xml.example
This file contains hidden or 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,3 @@ | ||
<UserSegmentAssignInput> | ||
<segments>corporate_account</segments> | ||
</UserSegmentAssignInput> |
22 changes: 22 additions & 0 deletions
22
...est_api_reference/input/examples/user/users/user_id/segments/UserSegmentList.json.example
This file contains hidden or 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,22 @@ | ||
{ | ||
"UserSegmentList": { | ||
"_media-type": "application\/vnd.ibexa.api.UserSegmentList+json", | ||
"_href": "\/api\/ibexa\/v2\/user\/users\/14\/segments", | ||
"UserSegment": [ | ||
{ | ||
"_media-type": "application\/vnd.ibexa.api.UserSegment+json", | ||
"id": 1, | ||
"identifier": "corporate_account", | ||
"name": "Corporate Account", | ||
"SegmentGroup": { | ||
"_media-type": "application\/vnd.ibexa.api.SegmentGroup+json", | ||
"_href": "\/api\/ibexa\/v2\/segment_groups\/corporate_accounts" | ||
}, | ||
"User": { | ||
"_media-type": "application\/vnd.ibexa.api.User+json", | ||
"_href": "\/api\/ibexa\/v2\/user\/users\/14" | ||
} | ||
} | ||
] | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...rest_api_reference/input/examples/user/users/user_id/segments/UserSegmentList.xml.example
This file contains hidden or 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,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<UserSegmentList media-type="application/vnd.ibexa.api.UserSegmentList+xml" href="/api/ibexa/v2/user/users/14/segments"> | ||
<UserSegment media-type="application/vnd.ibexa.api.UserSegment+xml"> | ||
<id>1</id> | ||
<identifier>corporate_account</identifier> | ||
<name>Corporate Account</name> | ||
<SegmentGroup media-type="application/vnd.ibexa.api.SegmentGroup+xml" href="/api/ibexa/v2/segment_groups/corporate_accounts"/> | ||
<User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> | ||
</UserSegment> | ||
</UserSegmentList> |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
and received:
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.