Skip to content

Instantly share code, notes, and snippets.

@maximmass
Created July 9, 2018 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maximmass/243f7fc8dd99bb9db9a2ae30a453421c to your computer and use it in GitHub Desktop.
Save maximmass/243f7fc8dd99bb9db9a2ae30a453421c to your computer and use it in GitHub Desktop.
{
"paths": {
"/events": {
"post": {
"responses": {
"201": {
"description": "",
"schema": {
"$ref": "#/definitions/event"
}
}
},
"operationId": "PostEvents",
"parameters": [
{
"in": "body",
"name": "body",
"schema": {
"$ref": "#/definitions/event"
}
}
]
}
},
"/subscriptions": {
"post": {
"responses": {
"201": {
"description": "",
"schema": {
"$ref": "#/definitions/subscription"
}
}
},
"operationId": "PostSubscription",
"parameters": [
{
"in": "body",
"name": "body",
"schema": {
"$ref": "#/definitions/subscription"
}
}
]
},
"get": {
"responses": {
"200": {
"description": "",
"schema": {
"type": "object",
"properties": {}
}
}
},
"operationId": "GetSubscriptions"
}
},
"/subscriptiondeliverytargets": {
"post": {
"responses": {
"200": {
"description": "",
"schema": {
"type": "object",
"properties": {
"aws-sns-topic": {
"type": "object",
"properties": {
"accesskeyid": {
"type": "string"
},
"topic-arn": {
"type": "string"
}
}
},
"aws-sqs-queue": {
"type": "object",
"properties": {
"accesskeyid": {
"type": "string"
},
"queue-arn": {
"type": "string"
}
}
},
"name": {
"type": "string"
}
}
}
}
},
"operationId": "PostSubscriptionDeliveryTargets",
"summary": "Creates a notification delivery endpoint that may be used for multiple subscriptions",
"parameters": [
{
"in": "body",
"name": "body",
"schema": {
"type": "object",
"properties": {
"aws-sns-topic": {
"type": "object",
"properties": {
"accesskeyid": {
"type": "string"
},
"secretaccesskey": {
"type": "string"
},
"topic-arn": {
"type": "string"
}
}
},
"aws-sqs-queue": {
"type": "object",
"properties": {
"accesskeyid": {
"type": "string"
},
"secretaccesskey": {
"type": "string"
},
"queue-arn": {
"type": "string"
}
}
},
"name": {
"type": "string"
}
},
"required": [
"name"
]
}
}
]
},
"get": {
"responses": {
"200": {
"description": "",
"schema": {
"type": "object",
"properties": {}
}
}
},
"operationId": "GetSubscriptionDeliveryTargets"
}
}
},
"definitions": {
"event": {
"type": "object",
"title": "Event",
"properties": {
"namespace": {
"type": "string"
},
"topic": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"contenttype": {
"type": "string"
},
"content": {
"type": "object"
}
}
},
"subscription": {
"title": "Subscription",
"type": "object",
"properties": {
"namespace": {
"type": "string"
},
"topic": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"DeliveryTarget": {
"type": "object",
"properties": {
"": {
"type": "string"
}
}
}
},
"info": {
"title": "NotificationsService",
"version": "1.0.0"
},
"basePath": "/v1",
"schemes": [
"https",
"http"
],
"swagger": "2.0",
"consumes": [
"application/json"
],
"produces": [
"application/json"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment