Skip to content

Commit

Permalink
Merge pull request #12028 from nextcloud/bugfix/noid/make-route-opera…
Browse files Browse the repository at this point in the history
…tion-id-unique

fix(openapi): Make the operation-id unique
  • Loading branch information
nickvergessen authored Apr 9, 2024
2 parents fd09f89 + 4d17200 commit 949d1ca
Show file tree
Hide file tree
Showing 5 changed files with 127 additions and 5 deletions.
2 changes: 1 addition & 1 deletion appinfo/routes/routesRoomController.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
/** @see \OCA\Talk\Controller\RoomController::verifyDialInPin() */
['name' => 'Room#verifyDialInPin', 'url' => '/api/{apiVersion}/room/{token}/pin/{pin}', 'verb' => 'GET', 'requirements' => array_merge($requirementsWithToken, [
'pin' => '\d{7,32}',
])],
]), 'postfix' => 'deprecated'],
/** @see \OCA\Talk\Controller\RoomController::verifyDialInPin() */
['name' => 'Room#verifyDialInPin', 'url' => '/api/{apiVersion}/room/{token}/verify-dialin', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
/** @see \OCA\Talk\Controller\RoomController::verifyDialOutNumber() */
Expand Down
2 changes: 1 addition & 1 deletion openapi-backend-sipbridge.json
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@
},
"/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/pin/{pin}": {
"get": {
"operationId": "room-verify-dial-in-pin",
"operationId": "room-verify-dial-in-pin-deprecated",
"summary": "Verify a dial-in PIN (SIP bridge)",
"tags": [
"room"
Expand Down
2 changes: 1 addition & 1 deletion openapi-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -18314,7 +18314,7 @@
},
"/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/pin/{pin}": {
"get": {
"operationId": "room-verify-dial-in-pin",
"operationId": "room-verify-dial-in-pin-deprecated",
"summary": "Verify a dial-in PIN (SIP bridge)",
"tags": [
"room"
Expand Down
63 changes: 62 additions & 1 deletion src/types/openapi/openapi-backend-sipbridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type paths = {
};
"/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/pin/{pin}": {
/** Verify a dial-in PIN (SIP bridge) */
get: operations["room-verify-dial-in-pin"];
get: operations["room-verify-dial-in-pin-deprecated"];
};
"/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/verify-dialin": {
/** Verify a dial-in PIN (SIP bridge) */
Expand Down Expand Up @@ -327,6 +327,67 @@ export type operations = {
};
};
/** Verify a dial-in PIN (SIP bridge) */
"room-verify-dial-in-pin-deprecated": {
parameters: {
header: {
/** @description Required to be true for the API request to pass */
"OCS-APIRequest": boolean;
};
path: {
apiVersion: "v4";
token: string;
/** @description PIN the participant used to dial-in */
pin: string;
};
};
responses: {
/** @description Participant returned */
200: {
content: {
"application/json": {
ocs: {
meta: components["schemas"]["OCSMeta"];
data: components["schemas"]["Room"];
};
};
};
};
/** @description SIP request invalid */
401: {
content: {
"application/json": {
ocs: {
meta: components["schemas"]["OCSMeta"];
data: unknown;
};
};
};
};
/** @description Participant not found */
404: {
content: {
"application/json": {
ocs: {
meta: components["schemas"]["OCSMeta"];
data: unknown;
};
};
};
};
/** @description SIP dial-in is not configured */
501: {
content: {
"application/json": {
ocs: {
meta: components["schemas"]["OCSMeta"];
data: unknown;
};
};
};
};
};
};
/** Verify a dial-in PIN (SIP bridge) */
"room-verify-dial-in-pin": {
parameters: {
query: {
Expand Down
63 changes: 62 additions & 1 deletion src/types/openapi/openapi-full.ts
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ export type paths = {
};
"/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/pin/{pin}": {
/** Verify a dial-in PIN (SIP bridge) */
get: operations["room-verify-dial-in-pin"];
get: operations["room-verify-dial-in-pin-deprecated"];
};
"/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/verify-dialin": {
/** Verify a dial-in PIN (SIP bridge) */
Expand Down Expand Up @@ -6582,6 +6582,67 @@ export type operations = {
};
};
/** Verify a dial-in PIN (SIP bridge) */
"room-verify-dial-in-pin-deprecated": {
parameters: {
header: {
/** @description Required to be true for the API request to pass */
"OCS-APIRequest": boolean;
};
path: {
apiVersion: "v4";
token: string;
/** @description PIN the participant used to dial-in */
pin: string;
};
};
responses: {
/** @description Participant returned */
200: {
content: {
"application/json": {
ocs: {
meta: components["schemas"]["OCSMeta"];
data: components["schemas"]["Room"];
};
};
};
};
/** @description SIP request invalid */
401: {
content: {
"application/json": {
ocs: {
meta: components["schemas"]["OCSMeta"];
data: unknown;
};
};
};
};
/** @description Participant not found */
404: {
content: {
"application/json": {
ocs: {
meta: components["schemas"]["OCSMeta"];
data: unknown;
};
};
};
};
/** @description SIP dial-in is not configured */
501: {
content: {
"application/json": {
ocs: {
meta: components["schemas"]["OCSMeta"];
data: unknown;
};
};
};
};
};
};
/** Verify a dial-in PIN (SIP bridge) */
"room-verify-dial-in-pin": {
parameters: {
query: {
Expand Down

0 comments on commit 949d1ca

Please sign in to comment.