メインコンテンツまでスキップ

Lobby Friends Events 0.1.0 documentation

備考

In this document, PUB means "publish" and SUB means "subscribe". This refers to the "publish/subscribe" (pub/sub) messaging framework, where "publish" means that the service sends data to Kafka topics, and "subscribe" means the service acts as a consumer that subscribes to specific Kafka topics to receive data.

  • Specification ID: http://lobby-friends-service
  • Protobuf File Spec: friends.proto

Table of Contents

Operations

PUB friendRequests Operation

Accepts one of the following messages:

Message friendRequestSent

Payload
NameTypeDescriptionValueConstraintsNotes
(root)object allOf---additional properties are allowed
payloadobject---additional properties are allowed
payload.relationobject---additional properties are allowed
payload.relation.userIdstring--format (uuid)-
payload.relation.friendIdstring--format (uuid)-
0 (allOf item)object---additional properties are allowed
idstring----
versioninteger----
namestring----
namespacestring----
parentNamespacestring----
timestampstring--format (date-time)-
clientIdstring----
userIdstringUserId of the operator for this event (optional)---
traceIdstring----
sessionIdstring----
spanContextstring----

Examples of payload (generated)

{
"payload": {
"relation": {
"userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
"friendId": "4bd6e55f-1d02-40eb-85a5-4e8b566403a4"
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string",
"spanContext": "string"
}

Message friendRequestCancelled

Payload
NameTypeDescriptionValueConstraintsNotes
(root)object allOf---additional properties are allowed
payloadobject---additional properties are allowed
payload.relationobject---additional properties are allowed
payload.relation.userIdstring--format (uuid)-
payload.relation.friendIdstring--format (uuid)-
0 (allOf item)object---additional properties are allowed
idstring----
versioninteger----
namestring----
namespacestring----
parentNamespacestring----
timestampstring--format (date-time)-
clientIdstring----
userIdstringUserId of the operator for this event (optional)---
traceIdstring----
sessionIdstring----
spanContextstring----

Examples of payload (generated)

{
"payload": {
"relation": {
"userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
"friendId": "4bd6e55f-1d02-40eb-85a5-4e8b566403a4"
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string",
"spanContext": "string"
}

Message friendRemoved

Payload
NameTypeDescriptionValueConstraintsNotes
(root)object allOf---additional properties are allowed
payloadobject---additional properties are allowed
payload.relationobject---additional properties are allowed
payload.relation.userIdstring--format (uuid)-
payload.relation.friendIdstring--format (uuid)-
0 (allOf item)object---additional properties are allowed
idstring----
versioninteger----
namestring----
namespacestring----
parentNamespacestring----
timestampstring--format (date-time)-
clientIdstring----
userIdstringUserId of the operator for this event (optional)---
traceIdstring----
sessionIdstring----
spanContextstring----

Examples of payload (generated)

{
"payload": {
"relation": {
"userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
"friendId": "4bd6e55f-1d02-40eb-85a5-4e8b566403a4"
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string",
"spanContext": "string"
}

Message friendAddedBulk

Payload
NameTypeDescriptionValueConstraintsNotes
(root)object allOf---additional properties are allowed
payloadobject---additional properties are allowed
payload.relationobject---additional properties are allowed
payload.relation.userIdstring--format (uuid)-
payload.relation.friendIdstring--format (uuid)-
0 (allOf item)object---additional properties are allowed
idstring----
versioninteger----
namestring----
namespacestring----
parentNamespacestring----
timestampstring--format (date-time)-
clientIdstring----
userIdstringUserId of the operator for this event (optional)---
traceIdstring----
sessionIdstring----
spanContextstring----

Examples of payload (generated)

{
"payload": {
"relation": {
"userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
"friendId": "4bd6e55f-1d02-40eb-85a5-4e8b566403a4"
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string",
"spanContext": "string"
}

PUB incomingFriendRequests Operation

Accepts one of the following messages:

Message friendRequestAccepted

Payload
NameTypeDescriptionValueConstraintsNotes
(root)object allOf---additional properties are allowed
payloadobject---additional properties are allowed
payload.relationobject---additional properties are allowed
payload.relation.userIdstring--format (uuid)-
payload.relation.friendIdstring--format (uuid)-
0 (allOf item)object---additional properties are allowed
idstring----
versioninteger----
namestring----
namespacestring----
parentNamespacestring----
timestampstring--format (date-time)-
clientIdstring----
userIdstringUserId of the operator for this event (optional)---
traceIdstring----
sessionIdstring----
spanContextstring----

Examples of payload (generated)

{
"payload": {
"relation": {
"userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
"friendId": "4bd6e55f-1d02-40eb-85a5-4e8b566403a4"
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string",
"spanContext": "string"
}

Message friendRequestRejected

Payload
NameTypeDescriptionValueConstraintsNotes
(root)object allOf---additional properties are allowed
payloadobject---additional properties are allowed
payload.relationobject---additional properties are allowed
payload.relation.userIdstring--format (uuid)-
payload.relation.friendIdstring--format (uuid)-
0 (allOf item)object---additional properties are allowed
idstring----
versioninteger----
namestring----
namespacestring----
parentNamespacestring----
timestampstring--format (date-time)-
clientIdstring----
userIdstringUserId of the operator for this event (optional)---
traceIdstring----
sessionIdstring----
spanContextstring----

Examples of payload (generated)

{
"payload": {
"relation": {
"userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
"friendId": "4bd6e55f-1d02-40eb-85a5-4e8b566403a4"
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string",
"spanContext": "string"
}