|
| 1 | +/collaboration/session/{sessionID}/participant/list: |
| 2 | + get: |
| 3 | + displayName: Load participant list |
| 4 | + description: Load participant list. |
| 5 | + queryParameters: |
| 6 | + sessionId: |
| 7 | + description: Retrieves the participant list for a given collaboration session ID (e.g. GET /collaboration/session/1234). |
| 8 | + headers: |
| 9 | + Accept: |
| 10 | + description: ParticipantList - If set, the participant list is returned in XML or JSON format. |
| 11 | + application/vnd.ibexa.api.ParticipantList+xml |
| 12 | + application/vnd.ibexa.api.ParticipantList+json |
| 13 | + responses: |
| 14 | + 200: |
| 15 | + description: OK - Loads participants for a given collaboration session ID. |
| 16 | + body: |
| 17 | + application/vnd.ibexa.api.ParticipantList+xml: |
| 18 | + type: ParticipantList |
| 19 | + example: !include examples/collaborative_editing/participant/list/GET/ParticipantList.xml.example |
| 20 | + application/vnd.ibexa.api.ParticipantList+json: |
| 21 | + type: ParticipantList |
| 22 | + example: !include examples/collaborative_editing/participant/list/GET/ParticipantList.json.example |
| 23 | + 404: |
| 24 | + description: If there are no visibile participants matching the filter. |
| 25 | + |
| 26 | +/collaboration/session/{sessionId}/participant/add: |
| 27 | + post: |
| 28 | + displayName: Add participant |
| 29 | + description: Adds new participant. |
| 30 | + headers: |
| 31 | + Accept: |
| 32 | + description: If set, the new participant is returned in XML or JSON format. |
| 33 | + example: |
| 34 | + application/vnd.ibexa.api.ParticipantList+json |
| 35 | + Content-Type: |
| 36 | + description: The participant schema encoded in XML or JSON format. |
| 37 | + example: |
| 38 | + application/vnd.ibexa.api.ParticipantListCreate+xml |
| 39 | + body: |
| 40 | + application/vnd.ibexa.api.ParticipantList+json: |
| 41 | + type: ProductList |
| 42 | + example: !include examples/collaborative_editing/participant/add/PATCH/ParticipantListCreate.json.example |
| 43 | + responses: |
| 44 | + 201: |
| 45 | + body: |
| 46 | + application/vnd.ibexa.api.ParticipantList+json: |
| 47 | + type: ProductList |
| 48 | + example: !include examples/ |
| 49 | + 400: |
| 50 | + description: Error - the input does not match the input schema definition. |
| 51 | + 401: |
| 52 | + description: Error - the user is not authorized to update this product. |
| 53 | + 403: |
| 54 | + description: Error - a participant with the same name already exists. |
| 55 | + 404: |
| 56 | + description: Error - no participant with the given ID exists. |
| 57 | + |
| 58 | +/collaboration/session/{sessionId}/participant/{participantId}/update |
| 59 | + patch: |
| 60 | + displayName: Update participant |
| 61 | + description: Updates a participant. |
| 62 | + headers: |
| 63 | + Accept: |
| 64 | + description: If set, the updated participant is returned in XML or JSON format. |
| 65 | + example: | |
| 66 | + application/vnd.ibexa.api.<Discriminator>Participant+json |
| 67 | + application/vnd.ibexa.api.<Discriminator>Participant+xml |
| 68 | + Content-Type: |
| 69 | + description: The ParticipantUpdate schema encoded in XML or JSON format. |
| 70 | + example: | |
| 71 | + application/vnd.ibexa.api.<Discriminator>ParticipantUpdate+json |
| 72 | + application/vnd.ibexa.api.<Discriminator>ParticipantUpdate+xml |
| 73 | + If-Match: |
| 74 | + description: Performs a PATCH only if the specified ETag is the current one. |
| 75 | + example: ETag |
| 76 | + body: |
| 77 | + application/vnd.ibexa.api.ParticipantUpdate+xml: |
| 78 | + type: ParticipantUpdate |
| 79 | + example: !include examples/ |
| 80 | + responses: |
| 81 | + 200: |
| 82 | + description: OK - participant updated. |
| 83 | + body: |
| 84 | + application/vnd.ibexa.api.participant+xml: |
| 85 | + type: Participant |
| 86 | + example: !include examples/ |
| 87 | + 400: |
| 88 | + description: Error - the input does not match the input schema definition. |
| 89 | + 401: |
| 90 | + description: Error - the user is not authorized to update the User. |
| 91 | + 404: |
| 92 | + description: Error - the User does not exist. |
| 93 | + 412: |
| 94 | + description: Error - the current ETag does not match with the provided one in the If-Match header. |
| 95 | + |
| 96 | +/collaboration/session/{sessionId}/participant/{participantId}/remove: |
| 97 | + delete: |
| 98 | + displayName: Delete participant |
| 99 | + description: Deletes the given participant. |
| 100 | + responses: |
| 101 | + 204: |
| 102 | + description: No Content. |
| 103 | + 401: |
| 104 | + description: Error - the user is not authorized to delete this participant. |
| 105 | + 403: |
| 106 | + description: Error - the user is the same as the authenticated participant. |
| 107 | + 404: |
| 108 | + description: Error - the participant does not exist. |
| 109 | + |
0 commit comments