mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 10:45:47 +08:00
feat: add the missing userId param docs for get-user API (#1698)
* Add roles to SAML response * Fix: Add back missing get-user userId param doc. Signed-off-by: zzjin <tczzjin@gmail.com> * Update user.go --------- Signed-off-by: zzjin <tczzjin@gmail.com> Co-authored-by: Yang Luo <hsluoyz@qq.com>
This commit is contained in:
parent
aaa56d3354
commit
9c8ea027ef
@ -84,6 +84,7 @@ func (c *ApiController) GetUsers() {
|
|||||||
// @Param owner query string false "The owner of the user"
|
// @Param owner query string false "The owner of the user"
|
||||||
// @Param email query string false "The email of the user"
|
// @Param email query string false "The email of the user"
|
||||||
// @Param phone query string false "The phone of the user"
|
// @Param phone query string false "The phone of the user"
|
||||||
|
// @Param userId query string false "The userId of the user"
|
||||||
// @Success 200 {object} object.User The Response object
|
// @Success 200 {object} object.User The Response object
|
||||||
// @router /get-user [get]
|
// @router /get-user [get]
|
||||||
func (c *ApiController) GetUser() {
|
func (c *ApiController) GetUser() {
|
||||||
|
@ -2171,6 +2171,12 @@
|
|||||||
"name": "phone",
|
"name": "phone",
|
||||||
"description": "The phone of the user",
|
"description": "The phone of the user",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"in": "query",
|
||||||
|
"name": "userId",
|
||||||
|
"description": "The userId of the user",
|
||||||
|
"type": "string"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
@ -3638,11 +3644,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"2306.0xc0000a7410.false": {
|
"2306.0xc0003a4480.false": {
|
||||||
"title": "false",
|
"title": "false",
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"2340.0xc0000a7440.false": {
|
"2340.0xc0003a44b0.false": {
|
||||||
"title": "false",
|
"title": "false",
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
@ -3776,10 +3782,10 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"data": {
|
"data": {
|
||||||
"$ref": "#/definitions/2306.0xc0000a7410.false"
|
"$ref": "#/definitions/2306.0xc0003a4480.false"
|
||||||
},
|
},
|
||||||
"data2": {
|
"data2": {
|
||||||
"$ref": "#/definitions/2340.0xc0000a7440.false"
|
"$ref": "#/definitions/2340.0xc0003a44b0.false"
|
||||||
},
|
},
|
||||||
"msg": {
|
"msg": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
@ -1417,6 +1417,10 @@ paths:
|
|||||||
name: phone
|
name: phone
|
||||||
description: The phone of the user
|
description: The phone of the user
|
||||||
type: string
|
type: string
|
||||||
|
- in: query
|
||||||
|
name: userId
|
||||||
|
description: The userId of the user
|
||||||
|
type: string
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: The Response object
|
description: The Response object
|
||||||
@ -2381,10 +2385,10 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/definitions/Response'
|
$ref: '#/definitions/Response'
|
||||||
definitions:
|
definitions:
|
||||||
2306.0xc0000a7410.false:
|
2306.0xc0003a4480.false:
|
||||||
title: "false"
|
title: "false"
|
||||||
type: object
|
type: object
|
||||||
2340.0xc0000a7440.false:
|
2340.0xc0003a44b0.false:
|
||||||
title: "false"
|
title: "false"
|
||||||
type: object
|
type: object
|
||||||
LaravelResponse:
|
LaravelResponse:
|
||||||
@ -2476,9 +2480,9 @@ definitions:
|
|||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
data:
|
data:
|
||||||
$ref: '#/definitions/2306.0xc0000a7410.false'
|
$ref: '#/definitions/2306.0xc0003a4480.false'
|
||||||
data2:
|
data2:
|
||||||
$ref: '#/definitions/2340.0xc0000a7440.false'
|
$ref: '#/definitions/2340.0xc0003a44b0.false'
|
||||||
msg:
|
msg:
|
||||||
type: string
|
type: string
|
||||||
name:
|
name:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user