|
911 | 911 | }
|
912 | 912 | }
|
913 | 913 | },
|
| 914 | + "/api/v2/password-reset/request": { |
| 915 | + "post": { |
| 916 | + "tags": [ |
| 917 | + "password-reset" |
| 918 | + ], |
| 919 | + "summary": "Request a password reset.", |
| 920 | + "description": "Request a password reset token for an administrator account.", |
| 921 | + "operationId": "7725789cb52ab5de77489011d4c43928", |
| 922 | + "requestBody": { |
| 923 | + "description": "Administrator email", |
| 924 | + "required": true, |
| 925 | + "content": { |
| 926 | + "application/json": { |
| 927 | + "schema": { |
| 928 | + "required": [ |
| 929 | + "email" |
| 930 | + ], |
| 931 | + "properties": { |
| 932 | + "email": { |
| 933 | + "type": "string", |
| 934 | + "format": "email", |
| 935 | + |
| 936 | + } |
| 937 | + }, |
| 938 | + "type": "object" |
| 939 | + } |
| 940 | + } |
| 941 | + } |
| 942 | + }, |
| 943 | + "responses": { |
| 944 | + "204": { |
| 945 | + "description": "Password reset token generated" |
| 946 | + }, |
| 947 | + "400": { |
| 948 | + "description": "Failure", |
| 949 | + "content": { |
| 950 | + "application/json": { |
| 951 | + "schema": { |
| 952 | + "$ref": "#/components/schemas/BadRequestResponse" |
| 953 | + } |
| 954 | + } |
| 955 | + } |
| 956 | + }, |
| 957 | + "404": { |
| 958 | + "description": "Failure", |
| 959 | + "content": { |
| 960 | + "application/json": { |
| 961 | + "schema": { |
| 962 | + "$ref": "#/components/schemas/NotFoundErrorResponse" |
| 963 | + } |
| 964 | + } |
| 965 | + } |
| 966 | + } |
| 967 | + } |
| 968 | + } |
| 969 | + }, |
| 970 | + "/api/v2/password-reset/validate": { |
| 971 | + "post": { |
| 972 | + "tags": [ |
| 973 | + "password-reset" |
| 974 | + ], |
| 975 | + "summary": "Validate a password reset token.", |
| 976 | + "description": "Validate a password reset token.", |
| 977 | + "operationId": "336b157137fc4c4bd95714810f934ef8", |
| 978 | + "requestBody": { |
| 979 | + "description": "Password reset token", |
| 980 | + "required": true, |
| 981 | + "content": { |
| 982 | + "application/json": { |
| 983 | + "schema": { |
| 984 | + "required": [ |
| 985 | + "token" |
| 986 | + ], |
| 987 | + "properties": { |
| 988 | + "token": { |
| 989 | + "type": "string", |
| 990 | + "example": "a1b2c3d4e5f6" |
| 991 | + } |
| 992 | + }, |
| 993 | + "type": "object" |
| 994 | + } |
| 995 | + } |
| 996 | + } |
| 997 | + }, |
| 998 | + "responses": { |
| 999 | + "200": { |
| 1000 | + "description": "Success", |
| 1001 | + "content": { |
| 1002 | + "application/json": { |
| 1003 | + "schema": { |
| 1004 | + "properties": { |
| 1005 | + "valid": { |
| 1006 | + "type": "boolean", |
| 1007 | + "example": true |
| 1008 | + } |
| 1009 | + }, |
| 1010 | + "type": "object" |
| 1011 | + } |
| 1012 | + } |
| 1013 | + } |
| 1014 | + }, |
| 1015 | + "400": { |
| 1016 | + "description": "Failure", |
| 1017 | + "content": { |
| 1018 | + "application/json": { |
| 1019 | + "schema": { |
| 1020 | + "$ref": "#/components/schemas/BadRequestResponse" |
| 1021 | + } |
| 1022 | + } |
| 1023 | + } |
| 1024 | + } |
| 1025 | + } |
| 1026 | + } |
| 1027 | + }, |
| 1028 | + "/api/v2/password-reset/reset": { |
| 1029 | + "post": { |
| 1030 | + "tags": [ |
| 1031 | + "password-reset" |
| 1032 | + ], |
| 1033 | + "summary": "Reset password with token.", |
| 1034 | + "description": "Reset an administrator password using a token.", |
| 1035 | + "operationId": "19b7cbd6a10c9636a579b35028d1b1fc", |
| 1036 | + "requestBody": { |
| 1037 | + "description": "Password reset information", |
| 1038 | + "required": true, |
| 1039 | + "content": { |
| 1040 | + "application/json": { |
| 1041 | + "schema": { |
| 1042 | + "required": [ |
| 1043 | + "token", |
| 1044 | + "newPassword" |
| 1045 | + ], |
| 1046 | + "properties": { |
| 1047 | + "token": { |
| 1048 | + "type": "string", |
| 1049 | + "example": "a1b2c3d4e5f6" |
| 1050 | + }, |
| 1051 | + "newPassword": { |
| 1052 | + "type": "string", |
| 1053 | + "format": "password", |
| 1054 | + "example": "newSecurePassword123" |
| 1055 | + } |
| 1056 | + }, |
| 1057 | + "type": "object" |
| 1058 | + } |
| 1059 | + } |
| 1060 | + } |
| 1061 | + }, |
| 1062 | + "responses": { |
| 1063 | + "200": { |
| 1064 | + "description": "Success", |
| 1065 | + "content": { |
| 1066 | + "application/json": { |
| 1067 | + "schema": { |
| 1068 | + "properties": { |
| 1069 | + "message": { |
| 1070 | + "type": "string", |
| 1071 | + "example": "Password updated successfully" |
| 1072 | + } |
| 1073 | + }, |
| 1074 | + "type": "object" |
| 1075 | + } |
| 1076 | + } |
| 1077 | + } |
| 1078 | + }, |
| 1079 | + "400": { |
| 1080 | + "description": "Invalid or expired token", |
| 1081 | + "content": { |
| 1082 | + "application/json": { |
| 1083 | + "schema": { |
| 1084 | + "$ref": "#/components/schemas/BadRequestResponse" |
| 1085 | + } |
| 1086 | + } |
| 1087 | + } |
| 1088 | + } |
| 1089 | + } |
| 1090 | + } |
| 1091 | + }, |
914 | 1092 | "/api/v2/sessions": {
|
915 | 1093 | "post": {
|
916 | 1094 | "tags": [
|
|
5137 | 5315 | "name": "administrators",
|
5138 | 5316 | "description": "administrators"
|
5139 | 5317 | },
|
| 5318 | + { |
| 5319 | + "name": "password-reset", |
| 5320 | + "description": "password-reset" |
| 5321 | + }, |
5140 | 5322 | {
|
5141 | 5323 | "name": "sessions",
|
5142 | 5324 | "description": "sessions"
|
|
0 commit comments