mirror of
https://github.com/openziti/zrok.git
synced 2025-08-17 19:31:12 +02:00
api polish for register endpoint (#834)
This commit is contained in:
@ -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": {
|
||||
|
Reference in New Issue
Block a user