Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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 @@ -69,7 +69,43 @@
},
"x-ms-examples": {
"Create a new meeting room.": {
"$ref": "./examples/Rooms_CreateRoom.json"
"$ref": "./examples/Rooms_Create.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_List.json"
}
}
}
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 @@ -118,7 +154,7 @@
},
"x-ms-examples": {
"Get meeting room.": {
"$ref": "./examples/Rooms_GetRoom.json"
"$ref": "./examples/Rooms_Get.json"
}
}
},
Expand All @@ -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 @@ -177,7 +213,7 @@
},
"x-ms-examples": {
"Update meeting room's properties.": {
"$ref": "./examples/Rooms_UpdateRoom.json"
"$ref": "./examples/Rooms_Update.json"
}
}
},
Expand All @@ -186,7 +222,7 @@
"Rooms"
],
"summary": "Delete a room.",
"operationId": "Rooms_DeleteRoom",
"operationId": "Rooms_Delete",
"produces": [
"application/json"
],
Expand Down Expand Up @@ -221,7 +257,7 @@
},
"x-ms-examples": {
"Delete a meeting room.": {
"$ref": "./examples/Rooms_DeleteRoom.json"
"$ref": "./examples/Rooms_Delete.json"
}
}
}
Expand All @@ -232,7 +268,7 @@
"Participants"
],
"summary": "Get participants in a room.",
"operationId": "Rooms_GetParticipants",
"operationId": "Participants_List",
"produces": [
"application/json"
],
Expand Down Expand Up @@ -270,7 +306,7 @@
},
"x-ms-examples": {
"Get participants": {
"$ref": "./examples/Rooms_GetParticipants.json"
"$ref": "./examples/Participants_List.json"
}
}
},
Expand All @@ -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 @@ -329,7 +365,7 @@
},
"x-ms-examples": {
"Patch participants": {
"$ref": "./examples/Rooms_PatchParticipants.json"
"$ref": "./examples/Participants_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"
}
}
}
}