add control for partner ship
This commit is contained in:
@@ -64,6 +64,57 @@ paths:
|
||||
description: ""
|
||||
schema:
|
||||
$ref: '#/definitions/models.peer'
|
||||
/{id}/blacklist:
|
||||
post:
|
||||
tags:
|
||||
- oc-peer/controllersPeerController
|
||||
description: |-
|
||||
add blacklist peer by peerid
|
||||
<br>
|
||||
operationId: PeerController.Blacklist
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the peer id you want to blacklist
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{peer} models.peer'
|
||||
/{id}/partner:
|
||||
post:
|
||||
tags:
|
||||
- oc-peer/controllersPeerController
|
||||
description: |-
|
||||
add partner peer by peerid
|
||||
<br>
|
||||
operationId: PeerController.Partner
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the peer id you want to partner
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{peer} models.peer'
|
||||
/{id}/undo_state:
|
||||
post:
|
||||
tags:
|
||||
- oc-peer/controllersPeerController
|
||||
description: |-
|
||||
delete state peer by peerid
|
||||
<br>
|
||||
operationId: PeerController.DeleteState
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the peer id you want to delete state
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{peer} models.peer'
|
||||
/search/{search}:
|
||||
get:
|
||||
tags:
|
||||
|
||||
Reference in New Issue
Block a user