|
971 | 971 | "content": { |
972 | 972 | "application/json": { |
973 | 973 | "schema": { |
974 | | - "type": "object", |
975 | | - "required": [ |
976 | | - "invites", |
977 | | - "nextPageToken" |
978 | | - ], |
979 | | - "properties": { |
980 | | - "invites": { |
981 | | - "type": "array", |
982 | | - "items": { |
983 | | - "$ref": "#/components/schemas/InvitesGroup" |
984 | | - } |
985 | | - }, |
986 | | - "nextPageToken": { |
987 | | - "type": "integer", |
988 | | - "format": "uint32" |
989 | | - } |
990 | | - } |
| 974 | + "$ref": "#/components/schemas/UsersAndPagination" |
991 | 975 | } |
992 | 976 | } |
993 | 977 | } |
|
1255 | 1239 | "format": "int32" |
1256 | 1240 | }, |
1257 | 1241 | "required": true |
| 1242 | + }, |
| 1243 | + { |
| 1244 | + "in": "query", |
| 1245 | + "name": "name", |
| 1246 | + "schema": { |
| 1247 | + "type": "string" |
| 1248 | + }, |
| 1249 | + "required": false |
| 1250 | + }, |
| 1251 | + { |
| 1252 | + "in": "query", |
| 1253 | + "name": "email", |
| 1254 | + "schema": { |
| 1255 | + "type": "string" |
| 1256 | + }, |
| 1257 | + "required": false |
1258 | 1258 | } |
1259 | 1259 | ], |
1260 | 1260 | "responses": { |
|
1418 | 1418 | "/api/reschedule/requests/me": { |
1419 | 1419 | "get": { |
1420 | 1420 | "operationId": "GetAPIRescheduleRequestsMe", |
1421 | | - "summary": "Get all reschedule requests for current user.", |
| 1421 | + "summary": "Get all reschedule requests for the meetings where the current user is the owner.", |
1422 | 1422 | "responses": { |
1423 | 1423 | "200": { |
1424 | 1424 | "$ref": "#/components/responses/RescheduleRequests" |
|
1596 | 1596 | } |
1597 | 1597 | } |
1598 | 1598 | }, |
| 1599 | + "/api/reschedule/request/{requestID}/complete": { |
| 1600 | + "post": { |
| 1601 | + "operationId": "PostAPIRescheduleRequestRequestIDComplete", |
| 1602 | + "summary": "Create a new calendar event after request response.", |
| 1603 | + "parameters": [ |
| 1604 | + { |
| 1605 | + "in": "path", |
| 1606 | + "name": "requestID", |
| 1607 | + "schema": { |
| 1608 | + "type": "integer", |
| 1609 | + "format": "uint32" |
| 1610 | + }, |
| 1611 | + "required": true, |
| 1612 | + "description": "Numeric ID of the reschedule request to get" |
| 1613 | + } |
| 1614 | + ], |
| 1615 | + "requestBody": { |
| 1616 | + "required": true, |
| 1617 | + "content": { |
| 1618 | + "application/json": { |
| 1619 | + "schema": { |
| 1620 | + "$ref": "#/components/schemas/CalendarEvent" |
| 1621 | + } |
| 1622 | + } |
| 1623 | + } |
| 1624 | + }, |
| 1625 | + "responses": { |
| 1626 | + "201": { |
| 1627 | + "description": "Event successfully created", |
| 1628 | + "content": { |
| 1629 | + "application/json": { |
| 1630 | + "schema": { |
| 1631 | + "$ref": "#/components/schemas/CalendarEvent" |
| 1632 | + } |
| 1633 | + } |
| 1634 | + } |
| 1635 | + }, |
| 1636 | + "400": { |
| 1637 | + "description": "Bad request" |
| 1638 | + }, |
| 1639 | + "401": { |
| 1640 | + "$ref": "#/components/responses/UnauthorizedError" |
| 1641 | + }, |
| 1642 | + "500": { |
| 1643 | + "description": "Something went wrong internally", |
| 1644 | + "content": { |
| 1645 | + "application/json": { |
| 1646 | + "schema": { |
| 1647 | + "type": "string" |
| 1648 | + } |
| 1649 | + } |
| 1650 | + } |
| 1651 | + }, |
| 1652 | + "502": { |
| 1653 | + "description": "Something went wrong with an external API", |
| 1654 | + "content": { |
| 1655 | + "application/json": { |
| 1656 | + "schema": { |
| 1657 | + "type": "string" |
| 1658 | + } |
| 1659 | + } |
| 1660 | + } |
| 1661 | + } |
| 1662 | + } |
| 1663 | + } |
| 1664 | + }, |
| 1665 | + "/api/reschedule/request/{requestID}/close": { |
| 1666 | + "get": { |
| 1667 | + "operationId": "GetAPIRescheduleRequestRequestIDClose", |
| 1668 | + "summary": "Delete the request", |
| 1669 | + "parameters": [ |
| 1670 | + { |
| 1671 | + "in": "path", |
| 1672 | + "name": "requestID", |
| 1673 | + "schema": { |
| 1674 | + "type": "integer", |
| 1675 | + "format": "uint32" |
| 1676 | + }, |
| 1677 | + "required": true, |
| 1678 | + "description": "Numeric ID of the reschedule request to get" |
| 1679 | + } |
| 1680 | + ], |
| 1681 | + "responses": { |
| 1682 | + "200": { |
| 1683 | + "description": "Request closes", |
| 1684 | + "content": { |
| 1685 | + "application/json": { |
| 1686 | + "schema": { |
| 1687 | + "type": "string" |
| 1688 | + } |
| 1689 | + } |
| 1690 | + } |
| 1691 | + }, |
| 1692 | + "400": { |
| 1693 | + "description": "Bad request" |
| 1694 | + }, |
| 1695 | + "401": { |
| 1696 | + "$ref": "#/components/responses/UnauthorizedError" |
| 1697 | + }, |
| 1698 | + "500": { |
| 1699 | + "description": "Something went wrong internally", |
| 1700 | + "content": { |
| 1701 | + "application/json": { |
| 1702 | + "schema": { |
| 1703 | + "type": "string" |
| 1704 | + } |
| 1705 | + } |
| 1706 | + } |
| 1707 | + }, |
| 1708 | + "502": { |
| 1709 | + "description": "Something went wrong with an external API", |
| 1710 | + "content": { |
| 1711 | + "application/json": { |
| 1712 | + "schema": { |
| 1713 | + "type": "string" |
| 1714 | + } |
| 1715 | + } |
| 1716 | + } |
| 1717 | + } |
| 1718 | + } |
| 1719 | + } |
| 1720 | + }, |
1599 | 1721 | "/api/reschedule/request/replace": { |
1600 | 1722 | "post": { |
1601 | 1723 | "operationId": "PostAPIRescheduleRequestReplace", |
|
2146 | 2268 | "content": { |
2147 | 2269 | "application/json": { |
2148 | 2270 | "schema": { |
2149 | | - "type": "array", |
2150 | | - "items": { |
2151 | | - "$ref": "#/components/schemas/RescheduleRequest" |
| 2271 | + "type": "object", |
| 2272 | + "required": [ |
| 2273 | + "pending", |
| 2274 | + "responses" |
| 2275 | + ], |
| 2276 | + "properties": { |
| 2277 | + "pending": { |
| 2278 | + "type": "array", |
| 2279 | + "items": { |
| 2280 | + "$ref": "#/components/schemas/RescheduleRequest" |
| 2281 | + } |
| 2282 | + }, |
| 2283 | + "responses": { |
| 2284 | + "type": "array", |
| 2285 | + "items": { |
| 2286 | + "$ref": "#/components/schemas/RescheduleRequest" |
| 2287 | + } |
| 2288 | + } |
2152 | 2289 | } |
2153 | 2290 | } |
2154 | 2291 | } |
|
2238 | 2375 | "type": "object", |
2239 | 2376 | "required": [ |
2240 | 2377 | "msftMeetingID", |
2241 | | - "meetingId" |
| 2378 | + "meetingId", |
| 2379 | + "meetingStartTime", |
| 2380 | + "timeRangeStart", |
| 2381 | + "timeRangeEnd" |
2242 | 2382 | ], |
2243 | 2383 | "properties": { |
2244 | 2384 | "msftMeetingID": { |
|
2249 | 2389 | "type": "integer", |
2250 | 2390 | "format": "uint32", |
2251 | 2391 | "description": "The meeting ID of the old meeting" |
| 2392 | + }, |
| 2393 | + "meetingStartTime": { |
| 2394 | + "type": "string", |
| 2395 | + "format": "date-time", |
| 2396 | + "description": "The start of the meeting denoted in *ISO 8601* format In the format: yyyy-mm-ddThh:mm:ssZ Where lowercase letters are replaced by their numerical values\n" |
| 2397 | + }, |
| 2398 | + "timeRangeStart": { |
| 2399 | + "type": "string", |
| 2400 | + "format": "date-time", |
| 2401 | + "description": "The start of the meeting denoted in *ISO 8601* format In the format: yyyy-mm-ddThh:mm:ssZ Where lowercase letters are replaced by their numerical values\n" |
| 2402 | + }, |
| 2403 | + "timeRangeEnd": { |
| 2404 | + "type": "string", |
| 2405 | + "format": "date-time", |
| 2406 | + "description": "The start of the meeting denoted in *ISO 8601* format In the format: yyyy-mm-ddThh:mm:ssZ Where lowercase letters are replaced by their numerical values\n" |
2252 | 2407 | } |
2253 | 2408 | } |
2254 | 2409 | }, |
|
2259 | 2414 | "meetingDuration", |
2260 | 2415 | "startTime", |
2261 | 2416 | "endTime", |
2262 | | - "location" |
| 2417 | + "location", |
| 2418 | + "attendees" |
2263 | 2419 | ], |
2264 | 2420 | "properties": { |
2265 | 2421 | "title": { |
|
2284 | 2440 | "location": { |
2285 | 2441 | "type": "string", |
2286 | 2442 | "description": "The location of the meeting" |
| 2443 | + }, |
| 2444 | + "attendees": { |
| 2445 | + "type": "array", |
| 2446 | + "items": { |
| 2447 | + "type": "integer", |
| 2448 | + "format": "uint32", |
| 2449 | + "description": "The user ID of the person" |
| 2450 | + } |
2287 | 2451 | } |
2288 | 2452 | } |
2289 | 2453 | }, |
|
2415 | 2579 | "msftMeetingID": { |
2416 | 2580 | "type": "string", |
2417 | 2581 | "description": "The microsoft meeting ID of the old meeting" |
2418 | | - }, |
2419 | | - "meetingStartTime": { |
2420 | | - "type": "string", |
2421 | | - "format": "date-time", |
2422 | | - "description": "The start of the meeting denoted in *ISO 8601* format" |
2423 | | - }, |
2424 | | - "meetingOwner": { |
2425 | | - "type": "integer", |
2426 | | - "description": "Meeting owner ID" |
2427 | 2582 | } |
2428 | 2583 | } |
2429 | 2584 | } |
|
3117 | 3272 | "email", |
3118 | 3273 | "name" |
3119 | 3274 | ] |
| 3275 | + }, |
| 3276 | + "UsersAndPagination": { |
| 3277 | + "type": "object", |
| 3278 | + "required": [ |
| 3279 | + "users", |
| 3280 | + "nextPageToken" |
| 3281 | + ], |
| 3282 | + "properties": { |
| 3283 | + "users": { |
| 3284 | + "type": "array", |
| 3285 | + "items": { |
| 3286 | + "$ref": "#/components/schemas/User" |
| 3287 | + } |
| 3288 | + }, |
| 3289 | + "nextPageToken": { |
| 3290 | + "type": "integer", |
| 3291 | + "format": "uint32" |
| 3292 | + } |
| 3293 | + } |
3120 | 3294 | } |
3121 | 3295 | } |
3122 | 3296 | } |
|
0 commit comments