Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
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
Expand Up @@ -12,7 +12,7 @@
"Rooms"
],
"summary": "Creates a new room.",
"operationId": "Rooms_CreateRoom",
"operationId": "Rooms_Create",
"consumes": [
"application/json"
],
Expand Down Expand Up @@ -72,6 +72,42 @@
"$ref": "./examples/Rooms_CreateRoom.json"
}
}
},
"get": {
"tags": [
"Rooms"
],
"summary": "Retrieves all created rooms.",
"operationId": "Rooms_List",
"produces": [
"application/json"
],
"parameters": [],
"responses": {
"200": {
"description": "Request successful. The action returns a collection of rooms.",
"schema": {
"$ref": "#/definitions/RoomsCollection"
}
},
"default": {
"description": "Error response",
"schema": {
"$ref": "#/definitions/CommunicationErrorResponse"
},
"headers": {
"x-ms-error-code": {
"x-ms-client-name": "ErrorCode",
"type": "string"
}
}
}
},
"x-ms-examples": {
"List all rooms.": {
"$ref": "./examples/Rooms_ListRooms.json"
Comment thread
Mrayyan marked this conversation as resolved.
Outdated
}
}
}
},
"/rooms/{roomId}": {
Expand All @@ -80,7 +116,7 @@
"Rooms"
],
"summary": "Retrieves an existing room by id.",
"operationId": "Rooms_GetRoom",
"operationId": "Rooms_Get",
"produces": [
"application/json"
],
Expand Down Expand Up @@ -127,7 +163,7 @@
"Rooms"
],
"summary": "Update a room with given changes.",
"operationId": "Rooms_UpdateRoom",
"operationId": "Rooms_Update",
"consumes": [
"application/merge-patch+json"
],
Expand Down Expand Up @@ -186,7 +222,7 @@
"Rooms"
],
"summary": "Delete a room.",
"operationId": "Rooms_DeleteRoom",
"operationId": "Rooms_Delete",
"produces": [
"application/json"
],
Expand Down Expand Up @@ -232,7 +268,7 @@
"Participants"
],
"summary": "Get participants in a room.",
"operationId": "Rooms_GetParticipants",
"operationId": "Participants_Get",
Comment thread
Mrayyan marked this conversation as resolved.
Outdated
"produces": [
"application/json"
],
Expand Down Expand Up @@ -279,7 +315,7 @@
"Participants"
],
"summary": "Patch participants in a room.",
"operationId": "Rooms_PatchParticipants",
"operationId": "Participants_Patch",
"consumes": [
"application/merge-patch+json"
],
Expand Down Expand Up @@ -482,6 +518,26 @@
}
}
},
"RoomsCollection": {
"description": "A collection of rooms.",
"required": [
"value"
],
"type": "object",
"properties": {
"value": {
"description": "A collection of rooms",
"type": "array",
"items": {
"$ref": "#/definitions/RoomModel"
}
},
"nextLink": {
"description": "If there are more rooms that can be retrieved, the next link will be populated.",
"type": "string"
}
}
},
"RoomParticipant": {
"description": "A participant of the room.",
"required": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"endpoint": "https://contoso.communication.azure.com/",
"api-version": "2023-03-31-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "999126454",
"createdAt": "2021-09-06T05:55:41Z",
"validFrom": "2021-09-07T07:55:41Z",
"validUntil": "2021-09-08T15:55:41Z"
},
{
"id": "999126456",
"createdAt": "2021-10-06T05:55:41Z",
"validFrom": "2021-10-07T07:55:41Z",
"validUntil": "2021-10-08T15:55:41Z"
}
],
"nextLink": "string"
}
}
}
}