|
795 | 795 | "content": {
|
796 | 796 | "application/json": {
|
797 | 797 | "schema": {
|
798 |
| - "properties": { |
799 |
| - "message": { |
800 |
| - "type": "string", |
801 |
| - "example": "There is no session with that ID." |
802 |
| - } |
803 |
| - }, |
804 |
| - "type": "object" |
| 798 | + "$ref": "#/components/schemas/NotFoundErrorResponse" |
805 | 799 | }
|
806 | 800 | }
|
807 | 801 | }
|
|
951 | 945 | }
|
952 | 946 | },
|
953 | 947 | "404": {
|
954 |
| - "description": "Not Found" |
| 948 | + "description": "Failure", |
| 949 | + "content": { |
| 950 | + "application/json": { |
| 951 | + "schema": { |
| 952 | + "$ref": "#/components/schemas/NotFoundErrorResponse" |
| 953 | + } |
| 954 | + } |
| 955 | + } |
955 | 956 | }
|
956 | 957 | }
|
957 | 958 | },
|
|
1055 | 1056 | }
|
1056 | 1057 | },
|
1057 | 1058 | "404": {
|
1058 |
| - "description": "Not Found" |
| 1059 | + "description": "Failure", |
| 1060 | + "content": { |
| 1061 | + "application/json": { |
| 1062 | + "schema": { |
| 1063 | + "$ref": "#/components/schemas/NotFoundErrorResponse" |
| 1064 | + } |
| 1065 | + } |
| 1066 | + } |
1059 | 1067 | }
|
1060 | 1068 | }
|
1061 | 1069 | },
|
|
1101 | 1109 | }
|
1102 | 1110 | },
|
1103 | 1111 | "404": {
|
1104 |
| - "description": "Not Found" |
| 1112 | + "description": "Failure", |
| 1113 | + "content": { |
| 1114 | + "application/json": { |
| 1115 | + "schema": { |
| 1116 | + "$ref": "#/components/schemas/NotFoundErrorResponse" |
| 1117 | + } |
| 1118 | + } |
| 1119 | + } |
1105 | 1120 | }
|
1106 | 1121 | }
|
1107 | 1122 | }
|
|
1157 | 1172 | }
|
1158 | 1173 | }
|
1159 | 1174 | }
|
| 1175 | + }, |
| 1176 | + "404": { |
| 1177 | + "description": "Failure", |
| 1178 | + "content": { |
| 1179 | + "application/json": { |
| 1180 | + "schema": { |
| 1181 | + "$ref": "#/components/schemas/NotFoundErrorResponse" |
| 1182 | + } |
| 1183 | + } |
| 1184 | + } |
1160 | 1185 | }
|
1161 | 1186 | }
|
1162 | 1187 | },
|
|
1228 | 1253 | }
|
1229 | 1254 | }
|
1230 | 1255 | },
|
| 1256 | + "400": { |
| 1257 | + "description": "Failure", |
| 1258 | + "content": { |
| 1259 | + "application/json": { |
| 1260 | + "schema": { |
| 1261 | + "$ref": "#/components/schemas/BadRequestResponse" |
| 1262 | + } |
| 1263 | + } |
| 1264 | + } |
| 1265 | + }, |
1231 | 1266 | "403": {
|
1232 | 1267 | "description": "Failure",
|
1233 | 1268 | "content": {
|
|
1238 | 1273 | }
|
1239 | 1274 | }
|
1240 | 1275 | },
|
1241 |
| - "400": { |
| 1276 | + "404": { |
1242 | 1277 | "description": "Failure",
|
1243 | 1278 | "content": {
|
1244 | 1279 | "application/json": {
|
1245 | 1280 | "schema": {
|
1246 |
| - "$ref": "#/components/schemas/BadRequestResponse" |
| 1281 | + "$ref": "#/components/schemas/NotFoundErrorResponse" |
1247 | 1282 | }
|
1248 | 1283 | }
|
1249 | 1284 | }
|
|
1321 | 1356 | }
|
1322 | 1357 | },
|
1323 | 1358 | "404": {
|
1324 |
| - "description": "Subscriber or subscription not found." |
| 1359 | + "description": "Failure", |
| 1360 | + "content": { |
| 1361 | + "application/json": { |
| 1362 | + "schema": { |
| 1363 | + "$ref": "#/components/schemas/NotFoundErrorResponse" |
| 1364 | + } |
| 1365 | + } |
| 1366 | + } |
1325 | 1367 | }
|
1326 | 1368 | }
|
1327 | 1369 | }
|
|
1580 | 1622 | }
|
1581 | 1623 | }
|
1582 | 1624 | }
|
| 1625 | + }, |
| 1626 | + "404": { |
| 1627 | + "description": "Failure", |
| 1628 | + "content": { |
| 1629 | + "application/json": { |
| 1630 | + "schema": { |
| 1631 | + "$ref": "#/components/schemas/NotFoundErrorResponse" |
| 1632 | + } |
| 1633 | + } |
| 1634 | + } |
| 1635 | + } |
| 1636 | + } |
| 1637 | + }, |
| 1638 | + "delete": { |
| 1639 | + "tags": [ |
| 1640 | + "templates" |
| 1641 | + ], |
| 1642 | + "summary": "Deletes a template.", |
| 1643 | + "description": "Deletes template by id.", |
| 1644 | + "operationId": "b0dc1b522ff76c9a1af1e4a714f30e6d", |
| 1645 | + "parameters": [ |
| 1646 | + { |
| 1647 | + "name": "session", |
| 1648 | + "in": "header", |
| 1649 | + "description": "Session ID", |
| 1650 | + "required": true, |
| 1651 | + "schema": { |
| 1652 | + "type": "string" |
| 1653 | + } |
| 1654 | + }, |
| 1655 | + { |
| 1656 | + "name": "templateId", |
| 1657 | + "in": "path", |
| 1658 | + "description": "Template ID", |
| 1659 | + "required": true, |
| 1660 | + "schema": { |
| 1661 | + "type": "string" |
| 1662 | + } |
| 1663 | + } |
| 1664 | + ], |
| 1665 | + "responses": { |
| 1666 | + "204": { |
| 1667 | + "description": "Success" |
| 1668 | + }, |
| 1669 | + "403": { |
| 1670 | + "description": "Failure", |
| 1671 | + "content": { |
| 1672 | + "application/json": { |
| 1673 | + "schema": { |
| 1674 | + "$ref": "#/components/schemas/UnauthorizedResponse" |
| 1675 | + } |
| 1676 | + } |
| 1677 | + } |
| 1678 | + }, |
| 1679 | + "404": { |
| 1680 | + "description": "Failure", |
| 1681 | + "content": { |
| 1682 | + "application/json": { |
| 1683 | + "schema": { |
| 1684 | + "$ref": "#/components/schemas/NotFoundErrorResponse" |
| 1685 | + } |
| 1686 | + } |
| 1687 | + } |
1583 | 1688 | }
|
1584 | 1689 | }
|
1585 | 1690 | }
|
|
0 commit comments