|
|
```
|
|
|
{
|
|
|
"consumes": [
|
|
|
"application/json"
|
|
|
],
|
|
|
"produces": [
|
|
|
"application/json"
|
|
|
],
|
|
|
"schemes": [
|
|
|
"https"
|
|
|
],
|
|
|
"swagger": "2.0",
|
|
|
"info": {
|
|
|
"description": "Manages messaging between datalake applications",
|
|
|
"title": "Messaging API",
|
|
|
"version": "1.0.0"
|
|
|
},
|
|
|
"host": "messaging-dot-evd-ddl-us-services.appspot.com",
|
|
|
"basePath": "/api/v1",
|
|
|
"security" : [
|
|
|
{
|
|
|
"Bearer" : [ ]
|
|
|
},
|
|
|
{
|
|
|
"google_id_token" : [ ]
|
|
|
},
|
|
|
{
|
|
|
"sauth_id_token" : [ ]
|
|
|
}
|
|
|
],
|
|
|
"x-google-allow": "all",
|
|
|
"x-google-endpoints": [
|
|
|
{
|
|
|
"name": "messaging-dot-evd-ddl-us-services.appspot.com",
|
|
|
"allowCors": "true"
|
|
|
}
|
|
|
],
|
|
|
"paths": {
|
|
|
"/subscriptions": {
|
|
|
"get": {
|
|
|
"description": "Gets all the active subscriptions",
|
|
|
"tags": [
|
|
|
"subscriptions"
|
|
|
],
|
|
|
"summary": "get all subscriptions",
|
|
|
"operationId": "getAllSubscriptions",
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "Slb-Account-Id",
|
|
|
"in": "header",
|
|
|
"description": "Users account e.g. SLB",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
},
|
|
|
{
|
|
|
"name": "Slb-On-Behalf-Of",
|
|
|
"in": "header",
|
|
|
"description": "User's email or auth token",
|
|
|
"required": false,
|
|
|
"type": "string"
|
|
|
}
|
|
|
],
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"$ref": "#/responses/SubscriptionListResponse"
|
|
|
},
|
|
|
"500": {
|
|
|
"$ref": "#/responses/ErrorResponse"
|
|
|
}
|
|
|
},
|
|
|
"security" : [
|
|
|
{
|
|
|
"Bearer" : [ ]
|
|
|
},
|
|
|
{
|
|
|
"google_id_token" : [ ]
|
|
|
},
|
|
|
{
|
|
|
"sauth_id_token" : [ ]
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"/subscriptions/{subscriptionName}": {
|
|
|
"get": {
|
|
|
"description": "Gets a subscription given a subscription name if the subscription exists",
|
|
|
"tags": [
|
|
|
"subscriptions"
|
|
|
],
|
|
|
"summary": "get subscription",
|
|
|
"operationId": "getSubscription",
|
|
|
"parameters": [
|
|
|
{
|
|
|
"type": "string",
|
|
|
"x-go-name": "SubscriptionName",
|
|
|
"name": "subscriptionName",
|
|
|
"in": "path",
|
|
|
"required": true
|
|
|
},
|
|
|
{
|
|
|
"name": "Slb-Account-Id",
|
|
|
"in": "header",
|
|
|
"description": "Users account e.g. SLB",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
},
|
|
|
{
|
|
|
"name": "Slb-On-Behalf-Of",
|
|
|
"in": "header",
|
|
|
"description": "User's email or auth token",
|
|
|
"required": false,
|
|
|
"type": "string"
|
|
|
}
|
|
|
],
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"$ref": "#/responses/SubscriptionResponse"
|
|
|
},
|
|
|
"404": {
|
|
|
"$ref": "#/responses/ErrorResponse"
|
|
|
},
|
|
|
"500": {
|
|
|
"$ref": "#/responses/ErrorResponse"
|
|
|
}
|
|
|
},
|
|
|
"security" : [
|
|
|
{
|
|
|
"Bearer" : [ ]
|
|
|
},
|
|
|
{
|
|
|
"google_id_token" : [ ]
|
|
|
},
|
|
|
{
|
|
|
"sauth_id_token" : [ ]
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
"put": {
|
|
|
"description": "Creates a subscription of the given name",
|
|
|
"tags": [
|
|
|
"subscriptions"
|
|
|
],
|
|
|
"summary": "create subscription",
|
|
|
"operationId": "createSubscription",
|
|
|
"parameters": [
|
|
|
{
|
|
|
"type": "string",
|
|
|
"x-go-name": "SubscriptionName",
|
|
|
"name": "subscriptionName",
|
|
|
"in": "path",
|
|
|
"required": true
|
|
|
},
|
|
|
{
|
|
|
"name": "Subscription",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/SubscriptionSpec"
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
"name": "Slb-Account-Id",
|
|
|
"in": "header",
|
|
|
"description": "Users account e.g. SLB",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
},
|
|
|
{
|
|
|
"name": "Slb-On-Behalf-Of",
|
|
|
"in": "header",
|
|
|
"description": "User's email or auth token",
|
|
|
"required": false,
|
|
|
"type": "string"
|
|
|
}
|
|
|
],
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"$ref": "#/responses/SubscriptionResponse"
|
|
|
},
|
|
|
"400": {
|
|
|
"$ref": "#/responses/ErrorResponse"
|
|
|
},
|
|
|
"409": {
|
|
|
"$ref": "#/responses/ErrorResponse"
|
|
|
},
|
|
|
"500": {
|
|
|
"$ref": "#/responses/ErrorResponse"
|
|
|
}
|
|
|
},
|
|
|
"security" : [
|
|
|
{
|
|
|
"Bearer" : [ ]
|
|
|
},
|
|
|
{
|
|
|
"google_id_token" : [ ]
|
|
|
},
|
|
|
{
|
|
|
"sauth_id_token" : [ ]
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
"delete": {
|
|
|
"description": "Deletes a subscription of the given name",
|
|
|
"tags": [
|
|
|
"subscriptions"
|
|
|
],
|
|
|
"summary": "delete subscription",
|
|
|
"operationId": "deleteSubscription",
|
|
|
"parameters": [
|
|
|
{
|
|
|
"type": "string",
|
|
|
"x-go-name": "SubscriptionName",
|
|
|
"name": "subscriptionName",
|
|
|
"in": "path",
|
|
|
"required": true
|
|
|
},
|
|
|
{
|
|
|
"name": "Slb-Account-Id",
|
|
|
"in": "header",
|
|
|
"description": "Users account e.g. SLB",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
},
|
|
|
{
|
|
|
"name": "Slb-On-Behalf-Of",
|
|
|
"in": "header",
|
|
|
"description": "User's email or auth token",
|
|
|
"required": false,
|
|
|
"type": "string"
|
|
|
}
|
|
|
],
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"$ref": "#/responses/NoResponse"
|
|
|
},
|
|
|
"500": {
|
|
|
"$ref": "#/responses/ErrorResponse"
|
|
|
}
|
|
|
},
|
|
|
"security" : [
|
|
|
{
|
|
|
"Bearer" : [ ]
|
|
|
},
|
|
|
{
|
|
|
"google_id_token" : [ ]
|
|
|
},
|
|
|
{
|
|
|
"sauth_id_token" : [ ]
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"/subscriptions/{subscriptionName}:modifyPushEndpoint": {
|
|
|
"post": {
|
|
|
"description": "Modifies the push endpoint of the given subscription",
|
|
|
"tags": [
|
|
|
"subscriptions"
|
|
|
],
|
|
|
"summary": "modify subscription",
|
|
|
"operationId": "modifySubscription",
|
|
|
"parameters": [
|
|
|
{
|
|
|
"type": "string",
|
|
|
"x-go-name": "SubscriptionName",
|
|
|
"name": "subscriptionName",
|
|
|
"in": "path",
|
|
|
"required": true
|
|
|
},
|
|
|
{
|
|
|
"x-go-name": "PushEndpoint",
|
|
|
"name": "pushEndpoint",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/Endpoint"
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
"name": "Slb-Account-Id",
|
|
|
"in": "header",
|
|
|
"description": "Users account e.g. SLB",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
},
|
|
|
{
|
|
|
"name": "Slb-On-Behalf-Of",
|
|
|
"in": "header",
|
|
|
"description": "User's email or auth token",
|
|
|
"required": false,
|
|
|
"type": "string"
|
|
|
}
|
|
|
],
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"$ref": "#/responses/NoResponse"
|
|
|
},
|
|
|
"400": {
|
|
|
"$ref": "#/responses/ErrorResponse"
|
|
|
},
|
|
|
"500": {
|
|
|
"$ref": "#/responses/ErrorResponse"
|
|
|
}
|
|
|
},
|
|
|
"security" : [
|
|
|
{
|
|
|
"Bearer" : [ ]
|
|
|
},
|
|
|
{
|
|
|
"google_id_token" : [ ]
|
|
|
},
|
|
|
{
|
|
|
"sauth_id_token" : [ ]
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"/topics": {
|
|
|
"get": {
|
|
|
"description": "Lists all the currently active topics",
|
|
|
"tags": [
|
|
|
"topics"
|
|
|
],
|
|
|
"summary": "list topics",
|
|
|
"operationId": "getAllTopics",
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "Slb-Account-Id",
|
|
|
"in": "header",
|
|
|
"description": "Users account e.g. SLB",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
},
|
|
|
{
|
|
|
"name": "Slb-On-Behalf-Of",
|
|
|
"in": "header",
|
|
|
"description": "User's email or auth token",
|
|
|
"required": false,
|
|
|
"type": "string"
|
|
|
}
|
|
|
],
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"$ref": "#/responses/TopicsListResponse"
|
|
|
},
|
|
|
"500": {
|
|
|
"$ref": "#/responses/ErrorResponse"
|
|
|
}
|
|
|
},
|
|
|
"security" : [
|
|
|
{
|
|
|
"Bearer" : [ ]
|
|
|
},
|
|
|
{
|
|
|
"google_id_token" : [ ]
|
|
|
},
|
|
|
{
|
|
|
"sauth_id_token" : [ ]
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
"delete": {
|
|
|
"description": "Deletes all the currently active topics",
|
|
|
"tags": [
|
|
|
"topics"
|
|
|
],
|
|
|
"summary": "delete all topics",
|
|
|
"operationId": "deleteAllTopics",
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "Slb-Account-Id",
|
|
|
"in": "header",
|
|
|
"description": "Users account e.g. SLB",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
},
|
|
|
{
|
|
|
"name": "Slb-On-Behalf-Of",
|
|
|
"in": "header",
|
|
|
"description": "User's email or auth token",
|
|
|
"required": false,
|
|
|
"type": "string"
|
|
|
}
|
|
|
],
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"$ref": "#/responses/NoResponse"
|
|
|
},
|
|
|
"500": {
|
|
|
"$ref": "#/responses/ErrorResponse"
|
|
|
}
|
|
|
},
|
|
|
"security" : [
|
|
|
{
|
|
|
"Bearer" : [ ]
|
|
|
},
|
|
|
{
|
|
|
"google_id_token" : [ ]
|
|
|
},
|
|
|
{
|
|
|
"sauth_id_token" : [ ]
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"/topics/{topicName}": {
|
|
|
"get": {
|
|
|
"description": "Gets a topic given a topic name if the topic exists",
|
|
|
"tags": [
|
|
|
"topics"
|
|
|
],
|
|
|
"summary": "get topic",
|
|
|
"operationId": "getTopic",
|
|
|
"parameters": [
|
|
|
{
|
|
|
"type": "string",
|
|
|
"x-go-name": "TopicName",
|
|
|
"name": "topicName",
|
|
|
"in": "path",
|
|
|
"required": true
|
|
|
},
|
|
|
{
|
|
|
"name": "Slb-Account-Id",
|
|
|
"in": "header",
|
|
|
"description": "Users account e.g. SLB",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
},
|
|
|
{
|
|
|
"name": "Slb-On-Behalf-Of",
|
|
|
"in": "header",
|
|
|
"description": "User's email or auth token",
|
|
|
"required": false,
|
|
|
"type": "string"
|
|
|
}
|
|
|
],
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"$ref": "#/responses/TopicResponse"
|
|
|
},
|
|
|
"404": {
|
|
|
"$ref": "#/responses/ErrorResponse"
|
|
|
},
|
|
|
"500": {
|
|
|
"$ref": "#/responses/ErrorResponse"
|
|
|
}
|
|
|
},
|
|
|
"security" : [
|
|
|
{
|
|
|
"Bearer" : [ ]
|
|
|
},
|
|
|
{
|
|
|
"google_id_token" : [ ]
|
|
|
},
|
|
|
{
|
|
|
"sauth_id_token" : [ ]
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
"put": {
|
|
|
"description": "Creates a topic with the given name",
|
|
|
"tags": [
|
|
|
"topics"
|
|
|
],
|
|
|
"summary": "create topic",
|
|
|
"operationId": "createTopic",
|
|
|
"parameters": [
|
|
|
{
|
|
|
"type": "string",
|
|
|
"x-go-name": "TopicName",
|
|
|
"name": "topicName",
|
|
|
"in": "path",
|
|
|
"required": true
|
|
|
},
|
|
|
{
|
|
|
"name": "Slb-Account-Id",
|
|
|
"in": "header",
|
|
|
"description": "Users account e.g. SLB",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
},
|
|
|
{
|
|
|
"name": "Slb-On-Behalf-Of",
|
|
|
"in": "header",
|
|
|
"description": "User's email or auth token",
|
|
|
"required": false,
|
|
|
"type": "string"
|
|
|
}
|
|
|
],
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"$ref": "#/responses/TopicResponse"
|
|
|
},
|
|
|
"400": {
|
|
|
"$ref": "#/responses/ErrorResponse"
|
|
|
}
|
|
|
},
|
|
|
"security" : [
|
|
|
{
|
|
|
"Bearer" : [ ]
|
|
|
},
|
|
|
{
|
|
|
"google_id_token" : [ ]
|
|
|
},
|
|
|
{
|
|
|
"sauth_id_token" : [ ]
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
"delete": {
|
|
|
"description": "Deletes a topic with the given name",
|
|
|
"tags": [
|
|
|
"topics"
|
|
|
],
|
|
|
"summary": "delete topic",
|
|
|
"operationId": "deleteTopic",
|
|
|
"parameters": [
|
|
|
{
|
|
|
"type": "string",
|
|
|
"x-go-name": "TopicName",
|
|
|
"name": "topicName",
|
|
|
"in": "path",
|
|
|
"required": true
|
|
|
},
|
|
|
{
|
|
|
"name": "Slb-Account-Id",
|
|
|
"in": "header",
|
|
|
"description": "Users account e.g. SLB",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
},
|
|
|
{
|
|
|
"name": "Slb-On-Behalf-Of",
|
|
|
"in": "header",
|
|
|
"description": "User's email or auth token",
|
|
|
"required": false,
|
|
|
"type": "string"
|
|
|
}
|
|
|
],
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"$ref": "#/responses/NoResponse"
|
|
|
},
|
|
|
"500": {
|
|
|
"$ref": "#/responses/ErrorResponse"
|
|
|
}
|
|
|
},
|
|
|
"security" : [
|
|
|
{
|
|
|
"Bearer" : [ ]
|
|
|
},
|
|
|
{
|
|
|
"google_id_token" : [ ]
|
|
|
},
|
|
|
{
|
|
|
"sauth_id_token" : [ ]
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"/topics/{topicName}/subscriptions": {
|
|
|
"get": {
|
|
|
"description": "Gets all the subscriptions for the given topic",
|
|
|
"tags": [
|
|
|
"topics"
|
|
|
],
|
|
|
"summary": "get topic subscriptions",
|
|
|
"operationId": "getTopicSubscriptions",
|
|
|
"parameters": [
|
|
|
{
|
|
|
"type": "string",
|
|
|
"x-go-name": "TopicName",
|
|
|
"name": "topicName",
|
|
|
"in": "path",
|
|
|
"required": true
|
|
|
},
|
|
|
{
|
|
|
"name": "Slb-Account-Id",
|
|
|
"in": "header",
|
|
|
"description": "Users account e.g. SLB",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
},
|
|
|
{
|
|
|
"name": "Slb-On-Behalf-Of",
|
|
|
"in": "header",
|
|
|
"description": "User's email or auth token",
|
|
|
"required": false,
|
|
|
"type": "string"
|
|
|
}
|
|
|
],
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"$ref": "#/responses/TopicSubscriptionListResponse"
|
|
|
},
|
|
|
"404": {
|
|
|
"$ref": "#/responses/ErrorResponse"
|
|
|
},
|
|
|
"500": {
|
|
|
"$ref": "#/responses/ErrorResponse"
|
|
|
}
|
|
|
},
|
|
|
"security" : [
|
|
|
{
|
|
|
"Bearer" : [ ]
|
|
|
},
|
|
|
{
|
|
|
"google_id_token" : [ ]
|
|
|
},
|
|
|
{
|
|
|
"sauth_id_token" : [ ]
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"definitions": {
|
|
|
"Endpoint": {
|
|
|
"description": "Endpoint is a destination URL\nthat will receive pub sub messages",
|
|
|
"type": "object",
|
|
|
"required": [
|
|
|
"pushEndpoint"
|
|
|
],
|
|
|
"properties": {
|
|
|
"pushEndpoint": {
|
|
|
"description": "Destination URL for pub sub messages",
|
|
|
"type": "string",
|
|
|
"x-go-name": "PushEndpoint"
|
|
|
}
|
|
|
},
|
|
|
"x-go-package": "messaging/app"
|
|
|
},
|
|
|
"ErrorMesssage": {
|
|
|
"description": "ErrorMesssage specifies the error message",
|
|
|
"type": "object",
|
|
|
"required": [
|
|
|
"msg"
|
|
|
],
|
|
|
"properties": {
|
|
|
"msg": {
|
|
|
"description": "The error message",
|
|
|
"type": "string",
|
|
|
"x-go-name": "Msg"
|
|
|
}
|
|
|
},
|
|
|
"x-go-package": "messaging/app"
|
|
|
},
|
|
|
"PubSubMessage": {
|
|
|
"description": "PubSubMessage implements the message envelope of\ngoogle cloud pub sub message",
|
|
|
"type": "object",
|
|
|
"required": [
|
|
|
"Data",
|
|
|
"MessageID"
|
|
|
],
|
|
|
"properties": {
|
|
|
"Attributes": {
|
|
|
"description": "Attributes attached to to the publish topic",
|
|
|
"type": "object",
|
|
|
"additionalProperties": {
|
|
|
"type": "string"
|
|
|
}
|
|
|
},
|
|
|
"Data": {
|
|
|
"description": "Data being published",
|
|
|
"type": "string"
|
|
|
},
|
|
|
"MessageID": {
|
|
|
"description": "Unique ID for the message",
|
|
|
"type": "string"
|
|
|
},
|
|
|
"PublishTime": {
|
|
|
"description": "Publish time for the message frm the pub sub server",
|
|
|
"type": "string"
|
|
|
}
|
|
|
},
|
|
|
"x-go-package": "messaging/app"
|
|
|
},
|
|
|
"PushPubSubMessage": {
|
|
|
"description": "PushPubSubMessage is a pubsubmessage wrapper\nthat a push endpoint will receive from google pubsub",
|
|
|
"type": "object",
|
|
|
"required": [
|
|
|
"Message",
|
|
|
"Subscription"
|
|
|
],
|
|
|
"properties": {
|
|
|
"Message": {
|
|
|
"$ref": "#/definitions/PubSubMessage"
|
|
|
},
|
|
|
"Subscription": {
|
|
|
"description": "Subscription name",
|
|
|
"type": "string"
|
|
|
}
|
|
|
},
|
|
|
"x-go-package": "messaging/app"
|
|
|
},
|
|
|
"Subscription": {
|
|
|
"description": "Subscription is a pubsub subscription",
|
|
|
"type": "object",
|
|
|
"required": [
|
|
|
"name",
|
|
|
"topic",
|
|
|
"pushEndpoint"
|
|
|
],
|
|
|
"properties": {
|
|
|
"filter": {
|
|
|
"description": "Optional filter to apply on messages",
|
|
|
"type": "object",
|
|
|
"x-go-name": "Filter"
|
|
|
},
|
|
|
"name": {
|
|
|
"description": "Name of the subscription",
|
|
|
"type": "string",
|
|
|
"x-go-name": "Name"
|
|
|
},
|
|
|
"pushEndpoint": {
|
|
|
"description": "Push endpoint for the subscription",
|
|
|
"type": "string",
|
|
|
"x-go-name": "PushEndpoint"
|
|
|
},
|
|
|
"topic": {
|
|
|
"description": "Topic for the subscription",
|
|
|
"type": "string",
|
|
|
"x-go-name": "Topic"
|
|
|
}
|
|
|
},
|
|
|
"x-go-package": "messaging/app"
|
|
|
},
|
|
|
"SubscriptionList": {
|
|
|
"description": "SubscriptionList contains a list of active subscriptions",
|
|
|
"type": "object",
|
|
|
"required": [
|
|
|
"subscriptions"
|
|
|
],
|
|
|
"properties": {
|
|
|
"subscriptions": {
|
|
|
"description": "The list of active subscriptions",
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/Subscription"
|
|
|
},
|
|
|
"x-go-name": "Subscriptions"
|
|
|
}
|
|
|
},
|
|
|
"x-go-package": "messaging/app"
|
|
|
},
|
|
|
"SubscriptionSpec": {
|
|
|
"description": "SubscriptionSpec is the subscription spec input from the user",
|
|
|
"type": "object",
|
|
|
"required": [
|
|
|
"topic",
|
|
|
"pushEndpoint"
|
|
|
],
|
|
|
"properties": {
|
|
|
"filter": {
|
|
|
"description": "Optional filter to apply on messages",
|
|
|
"type": "object",
|
|
|
"x-go-name": "Filter"
|
|
|
},
|
|
|
"pushEndpoint": {
|
|
|
"description": "Push endpoint for the subscription",
|
|
|
"type": "string",
|
|
|
"x-go-name": "PushEndpoint"
|
|
|
},
|
|
|
"topic": {
|
|
|
"description": "Topic for the subscription",
|
|
|
"type": "string",
|
|
|
"x-go-name": "Topic"
|
|
|
}
|
|
|
},
|
|
|
"x-go-package": "messaging/app"
|
|
|
},
|
|
|
"Topic": {
|
|
|
"description": "Topic denotes a single topic in the system",
|
|
|
"type": "object",
|
|
|
"required": [
|
|
|
"name"
|
|
|
],
|
|
|
"properties": {
|
|
|
"name": {
|
|
|
"description": "The name of the topic",
|
|
|
"type": "string",
|
|
|
"x-go-name": "Name"
|
|
|
}
|
|
|
},
|
|
|
"x-go-package": "messaging/app"
|
|
|
},
|
|
|
"TopicSubscriptionList": {
|
|
|
"description": "TopicSubscriptionList contains a list of subscriptions for a given topic",
|
|
|
"type": "object",
|
|
|
"required": [
|
|
|
"subscriptions"
|
|
|
],
|
|
|
"properties": {
|
|
|
"subscriptions": {
|
|
|
"description": "The list of topic subscriptions",
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
"x-go-name": "Subscriptions"
|
|
|
}
|
|
|
},
|
|
|
"x-go-package": "messaging/app"
|
|
|
},
|
|
|
"TopicsList": {
|
|
|
"description": "TopicsList contains a list of currently active topics",
|
|
|
"type": "object",
|
|
|
"required": [
|
|
|
"topics"
|
|
|
],
|
|
|
"properties": {
|
|
|
"topics": {
|
|
|
"description": "The list of topics",
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/Topic"
|
|
|
},
|
|
|
"x-go-name": "Topics"
|
|
|
}
|
|
|
},
|
|
|
"x-go-package": "messaging/app"
|
|
|
}
|
|
|
},
|
|
|
"responses": {
|
|
|
"ErrorResponse": {
|
|
|
"description": "ErrorResponse is the error response returned by the api",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/ErrorMesssage"
|
|
|
}
|
|
|
},
|
|
|
"NoResponse": {
|
|
|
"description": "NoResponse is an empty response"
|
|
|
},
|
|
|
"SubscriptionListResponse": {
|
|
|
"description": "SubscriptionListResponse is the response containing the list of active subscriptions",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/SubscriptionList"
|
|
|
}
|
|
|
},
|
|
|
"SubscriptionResponse": {
|
|
|
"description": "SubscriptionResponse is the response containing a subscription",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/Subscription"
|
|
|
}
|
|
|
},
|
|
|
"TopicResponse": {
|
|
|
"description": "TopicResponse is the response containing the name of an existing topic",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/Topic"
|
|
|
}
|
|
|
},
|
|
|
"TopicSubscriptionListResponse": {
|
|
|
"description": "TopicSubscriptionListResponse is the response containing the list of subscriptions for a given topic",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/TopicSubscriptionList"
|
|
|
}
|
|
|
},
|
|
|
"TopicsListResponse": {
|
|
|
"description": "TopicsListResponse is the response containing a list of topics",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/TopicsList"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"securityDefinitions": {
|
|
|
"Bearer": {
|
|
|
"type": "apiKey",
|
|
|
"name": "Authorization",
|
|
|
"in": "header"
|
|
|
},
|
|
|
"sauth_id_token": {
|
|
|
"authorizationUrl": "https://opsauth-dot-cfsauth-preview.appspot.com/v1/auth",
|
|
|
"flow": "implicit",
|
|
|
"type": "oauth2",
|
|
|
"x-google-issuer": "sauth-preview.slb.com",
|
|
|
"x-google-jwks_uri": "https://opsauth-dot-cfsauth-preview.appspot.com/v1/certs",
|
|
|
"x-google-audiences": "entitlement-datalake.slbservice.com,entitlement-datalake.slbclient.com,dev-slbdev-devportal.slbapp.com,test-slbdev-devportal.slbapp.com,discover-evd-csp-slb-com-dtwdev.slbapp.com,discover-evt-csp-slb-com-dtwcmz.slbapp.com,discover-evq-csp-slb-com-dtwstage.slbapp.com,fuse-evd-csp-slb-com-dtwdev.slbapp.com,fuse-evt-csp-slb-com-dtwcmz.slbapp.com,fuse-evq-csp-slb-com-dtwstage.slbapp.com,local-logstore.slbapp.com,localhost3000-dtwdev.slbapp.com,prod-logstoreproject.slbapp.com,prodanadarko-logstoreproject.slbapp.com,prodeu-logstoreproject.slbapp.com,local-logstore.slbapp.com,widget-catalogue-evd-csp-slb-com-dtwdev.slbapp.com,automation-test-svc-dtwdev.slbservice.com",
|
|
|
"scopes": {}
|
|
|
},
|
|
|
"google_id_token": {
|
|
|
"authorizationUrl": "",
|
|
|
"flow": "implicit",
|
|
|
"type": "oauth2",
|
|
|
"x-google-issuer": "https://accounts.google.com",
|
|
|
"x-google-jwks_uri": "https://www.googleapis.com/oauth2/v3/certs",
|
|
|
"x-google-audiences": "245464679631-ktfdfpl147m1mjpbutl00b3cmffissgq.apps.googleusercontent.com",
|
|
|
"scopes": {}
|
|
|
}
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |