Add Group To Keto
This commit is contained in:
@@ -37,6 +37,180 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/group/": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"group"
|
||||
],
|
||||
"description": "find groups\n\u003cbr\u003e",
|
||||
"operationId": "GroupController.GetAll",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{group} string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/group/clear": {
|
||||
"delete": {
|
||||
"tags": [
|
||||
"group"
|
||||
],
|
||||
"description": "clear the group\n\u003cbr\u003e",
|
||||
"operationId": "GroupController.Clear",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{string} delete success!"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/group/user/{id}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"group"
|
||||
],
|
||||
"description": "find group by user id\n\u003cbr\u003e",
|
||||
"operationId": "GroupController.GetByUser",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "the id you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{auth} string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/group/{id}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"group"
|
||||
],
|
||||
"description": "find group by id\n\u003cbr\u003e",
|
||||
"operationId": "GroupController.Get",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "the id you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{group} string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"post": {
|
||||
"tags": [
|
||||
"group"
|
||||
],
|
||||
"description": "create group\n\u003cbr\u003e",
|
||||
"operationId": "GroupController.Create",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "the id you want to get",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{auth} create success!"
|
||||
}
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"tags": [
|
||||
"group"
|
||||
],
|
||||
"description": "delete the group\n\u003cbr\u003e",
|
||||
"operationId": "GroupController.Delete",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "The id you want to delete",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{string} delete success!"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/group/{user_id}/{group_id}": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"group"
|
||||
],
|
||||
"description": "bind the group to user\n\u003cbr\u003e",
|
||||
"operationId": "GroupController.Bind",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "user_id",
|
||||
"description": "The user_id you want to bind",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "path",
|
||||
"name": "group_id",
|
||||
"description": "The group_id you want to bind",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{string} bind success!"
|
||||
}
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"tags": [
|
||||
"group"
|
||||
],
|
||||
"description": "unbind the group to user\n\u003cbr\u003e",
|
||||
"operationId": "GroupController.UnBind",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "group_id",
|
||||
"description": "The group_id you want to unbind",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "path",
|
||||
"name": "group_id",
|
||||
"description": "The user_id you want to unbind",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{string} bind success!"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/introspect": {
|
||||
"get": {
|
||||
"tags": [
|
||||
@@ -518,6 +692,10 @@
|
||||
"name": "oc-auth/controllersOAuthController",
|
||||
"description": "Operations about auth\n"
|
||||
},
|
||||
{
|
||||
"name": "group",
|
||||
"description": "Operations about auth\n"
|
||||
},
|
||||
{
|
||||
"name": "role",
|
||||
"description": "Operations about auth\n"
|
||||
|
||||
@@ -28,6 +28,137 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: '{string}'
|
||||
/group/:
|
||||
get:
|
||||
tags:
|
||||
- group
|
||||
description: |-
|
||||
find groups
|
||||
<br>
|
||||
operationId: GroupController.GetAll
|
||||
responses:
|
||||
"200":
|
||||
description: '{group} string'
|
||||
/group/{id}:
|
||||
get:
|
||||
tags:
|
||||
- group
|
||||
description: |-
|
||||
find group by id
|
||||
<br>
|
||||
operationId: GroupController.Get
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the id you want to get
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{group} string'
|
||||
post:
|
||||
tags:
|
||||
- group
|
||||
description: |-
|
||||
create group
|
||||
<br>
|
||||
operationId: GroupController.Create
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the id you want to get
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{auth} create success!'
|
||||
delete:
|
||||
tags:
|
||||
- group
|
||||
description: |-
|
||||
delete the group
|
||||
<br>
|
||||
operationId: GroupController.Delete
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: The id you want to delete
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{string} delete success!'
|
||||
/group/{user_id}/{group_id}:
|
||||
post:
|
||||
tags:
|
||||
- group
|
||||
description: |-
|
||||
bind the group to user
|
||||
<br>
|
||||
operationId: GroupController.Bind
|
||||
parameters:
|
||||
- in: path
|
||||
name: user_id
|
||||
description: The user_id you want to bind
|
||||
required: true
|
||||
type: string
|
||||
- in: path
|
||||
name: group_id
|
||||
description: The group_id you want to bind
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{string} bind success!'
|
||||
delete:
|
||||
tags:
|
||||
- group
|
||||
description: |-
|
||||
unbind the group to user
|
||||
<br>
|
||||
operationId: GroupController.UnBind
|
||||
parameters:
|
||||
- in: path
|
||||
name: group_id
|
||||
description: The group_id you want to unbind
|
||||
required: true
|
||||
type: string
|
||||
- in: path
|
||||
name: group_id
|
||||
description: The user_id you want to unbind
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{string} bind success!'
|
||||
/group/clear:
|
||||
delete:
|
||||
tags:
|
||||
- group
|
||||
description: |-
|
||||
clear the group
|
||||
<br>
|
||||
operationId: GroupController.Clear
|
||||
responses:
|
||||
"200":
|
||||
description: '{string} delete success!'
|
||||
/group/user/{id}:
|
||||
get:
|
||||
tags:
|
||||
- group
|
||||
description: |-
|
||||
find group by user id
|
||||
<br>
|
||||
operationId: GroupController.GetByUser
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the id you want to get
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{auth} string'
|
||||
/introspect:
|
||||
get:
|
||||
tags:
|
||||
@@ -386,6 +517,9 @@ tags:
|
||||
- name: oc-auth/controllersOAuthController
|
||||
description: |
|
||||
Operations about auth
|
||||
- name: group
|
||||
description: |
|
||||
Operations about auth
|
||||
- name: role
|
||||
description: |
|
||||
Operations about auth
|
||||
|
||||
Reference in New Issue
Block a user