1
0
mirror of https://github.com/bitwarden/docs synced 2025-12-06 01:33:19 +00:00

update spec

This commit is contained in:
Kyle Spearrin
2019-03-13 17:35:23 -04:00
parent 10171fd74e
commit 384fc86df9

View File

@@ -346,6 +346,100 @@
}
}
},
"/public/groups/{id}/member-ids": {
"get": {
"tags": [
"Groups"
],
"summary": "Retrieve a groups's member ids",
"description": "Retrieves the unique identifiers for all members that are associated with this group. You need only\r\nsupply the unique group identifier that was returned upon group creation.",
"operationId": "GetMemberIds",
"consumes": [],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"description": "The identifier of the group to be retrieved.",
"required": true,
"type": "string",
"format": "uuid"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"uniqueItems": true,
"type": "array",
"items": {
"format": "uuid",
"type": "string"
}
}
},
"404": {
"description": "Not Found"
}
}
},
"put": {
"tags": [
"Groups"
],
"summary": "Update a group's members.",
"description": "Updates the specified group's member associations.",
"operationId": "PutMemberIds",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"description": "The identifier of the group to be updated.",
"required": true,
"type": "string",
"format": "uuid"
},
{
"name": "model",
"in": "body",
"description": "The request model.",
"required": false,
"schema": {
"$ref": "#/definitions/UpdateMemberIdsRequestModel"
}
}
],
"responses": {
"200": {
"description": "Success"
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/ErrorResponseModel"
}
},
"404": {
"description": "Not Found"
}
}
}
},
"/public/groups": {
"get": {
"tags": [
@@ -535,6 +629,100 @@
}
}
},
"/public/members/{id}/group-ids": {
"get": {
"tags": [
"Members"
],
"summary": "Retrieve a member's group ids",
"description": "Retrieves the unique identifiers for all groups that are associated with this member. You need only\r\nsupply the unique member identifier that was returned upon member creation.",
"operationId": "GetGroupIds",
"consumes": [],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"description": "The identifier of the member to be retrieved.",
"required": true,
"type": "string",
"format": "uuid"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"uniqueItems": true,
"type": "array",
"items": {
"format": "uuid",
"type": "string"
}
}
},
"404": {
"description": "Not Found"
}
}
},
"put": {
"tags": [
"Members"
],
"summary": "Update a member's groups.",
"description": "Updates the specified member's group associations.",
"operationId": "PutGroupIds",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"description": "The identifier of the member to be updated.",
"required": true,
"type": "string",
"format": "uuid"
},
{
"name": "model",
"in": "body",
"description": "The request model.",
"required": false,
"schema": {
"$ref": "#/definitions/UpdateGroupIdsRequestModel"
}
}
],
"responses": {
"200": {
"description": "Success"
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/ErrorResponseModel"
}
},
"404": {
"description": "Not Found"
}
}
}
},
"/public/members": {
"get": {
"tags": [
@@ -990,6 +1178,20 @@
}
}
},
"UpdateMemberIdsRequestModel": {
"type": "object",
"properties": {
"memberIds": {
"description": "The associated member ids that have access to this object.",
"uniqueItems": false,
"type": "array",
"items": {
"format": "uuid",
"type": "string"
}
}
}
},
"ListResponseModel[GroupResponseModel]": {
"required": [
"object",
@@ -1137,6 +1339,20 @@
}
}
},
"UpdateGroupIdsRequestModel": {
"type": "object",
"properties": {
"groupIds": {
"description": "The associated group ids that this object can access.",
"uniqueItems": false,
"type": "array",
"items": {
"format": "uuid",
"type": "string"
}
}
}
},
"ListResponseModel[MemberResponseModel]": {
"required": [
"object",