peer change
This commit is contained in:
@@ -164,6 +164,100 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/organization": {
|
||||
"put": {
|
||||
"tags": [
|
||||
"oc-peer/controllersPeerController"
|
||||
],
|
||||
"description": "set organization data on self peer (only allowed when peer has no OrganizationMasterID)\n\u003cbr\u003e",
|
||||
"operationId": "PeerController.SetOrganization",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "body",
|
||||
"name": "data",
|
||||
"description": "organization data",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/json"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{peer} models.peer"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/organization_master/{id}": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"oc-peer/controllersPeerController"
|
||||
],
|
||||
"description": "request to become the organization master of a peer (send them an ORGANIZATION_MEMBER relation)\n\u003cbr\u003e",
|
||||
"operationId": "PeerController.OrganizationMasterRequest",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "the peer id to become member of our org",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{peer} models.peer"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/organization_member/{id}": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"oc-peer/controllersPeerController"
|
||||
],
|
||||
"description": "request to join a peer's organization as a member (send them an ORGANIZATION_MASTER relation)\n\u003cbr\u003e",
|
||||
"operationId": "PeerController.OrganizationMemberRequest",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "the peer id whose org we want to join",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{peer} models.peer"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/organization_partner/{id}": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"oc-peer/controllersPeerController"
|
||||
],
|
||||
"description": "request organization partner relation with a peer\n\u003cbr\u003e",
|
||||
"operationId": "PeerController.OrganizationPartner",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"description": "the peer id to set as organization partner",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{peer} models.peer"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/partner/{id}": {
|
||||
"post": {
|
||||
"tags": [
|
||||
|
||||
@@ -218,6 +218,75 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: '{peer} models.peer'
|
||||
/organization:
|
||||
put:
|
||||
tags:
|
||||
- oc-peer/controllersPeerController
|
||||
description: |-
|
||||
set organization data on self peer (only allowed when peer has no OrganizationMasterID)
|
||||
<br>
|
||||
operationId: PeerController.SetOrganization
|
||||
parameters:
|
||||
- in: body
|
||||
name: data
|
||||
description: organization data
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/json'
|
||||
responses:
|
||||
"200":
|
||||
description: '{peer} models.peer'
|
||||
/organization_master/{id}:
|
||||
post:
|
||||
tags:
|
||||
- oc-peer/controllersPeerController
|
||||
description: |-
|
||||
request to become the organization master of a peer (send them an ORGANIZATION_MEMBER relation)
|
||||
<br>
|
||||
operationId: PeerController.OrganizationMasterRequest
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the peer id to become member of our org
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{peer} models.peer'
|
||||
/organization_member/{id}:
|
||||
post:
|
||||
tags:
|
||||
- oc-peer/controllersPeerController
|
||||
description: |-
|
||||
request to join a peer's organization as a member (send them an ORGANIZATION_MASTER relation)
|
||||
<br>
|
||||
operationId: PeerController.OrganizationMemberRequest
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the peer id whose org we want to join
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{peer} models.peer'
|
||||
/organization_partner/{id}:
|
||||
post:
|
||||
tags:
|
||||
- oc-peer/controllersPeerController
|
||||
description: |-
|
||||
request organization partner relation with a peer
|
||||
<br>
|
||||
operationId: PeerController.OrganizationPartner
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the peer id to set as organization partner
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{peer} models.peer'
|
||||
/partner/{id}:
|
||||
post:
|
||||
tags:
|
||||
|
||||
Reference in New Issue
Block a user