api polish for register endpoint (#834)

This commit is contained in:
Michael Quigley
2025-02-03 11:53:33 -05:00
parent 3f0d36e755
commit 164fb96b73
18 changed files with 360 additions and 105 deletions

View File

@ -1337,7 +1337,14 @@ func init() {
"name": "body",
"in": "body",
"schema": {
"$ref": "#/definitions/registerRequest"
"properties": {
"password": {
"type": "string"
},
"token": {
"type": "string"
}
}
}
}
],
@ -1345,7 +1352,11 @@ func init() {
"200": {
"description": "account created",
"schema": {
"$ref": "#/definitions/registerResponse"
"properties": {
"token": {
"type": "string"
}
}
}
},
"404": {
@ -2029,25 +2040,6 @@ func init() {
"$ref": "#/definitions/publicFrontend"
}
},
"registerRequest": {
"type": "object",
"properties": {
"password": {
"type": "string"
},
"token": {
"type": "string"
}
}
},
"registerResponse": {
"type": "object",
"properties": {
"token": {
"type": "string"
}
}
},
"resetPasswordRequest": {
"type": "object",
"properties": {
@ -3600,7 +3592,14 @@ func init() {
"name": "body",
"in": "body",
"schema": {
"$ref": "#/definitions/registerRequest"
"properties": {
"password": {
"type": "string"
},
"token": {
"type": "string"
}
}
}
}
],
@ -3608,7 +3607,11 @@ func init() {
"200": {
"description": "account created",
"schema": {
"$ref": "#/definitions/registerResponse"
"properties": {
"token": {
"type": "string"
}
}
}
},
"404": {
@ -4325,25 +4328,6 @@ func init() {
"$ref": "#/definitions/publicFrontend"
}
},
"registerRequest": {
"type": "object",
"properties": {
"password": {
"type": "string"
},
"token": {
"type": "string"
}
}
},
"registerResponse": {
"type": "object",
"properties": {
"token": {
"type": "string"
}
}
},
"resetPasswordRequest": {
"type": "object",
"properties": {