From 69ec97e35733d6b5ce75cf6e3ccaacff9ef08713 Mon Sep 17 00:00:00 2001 From: Keith Hazelton Date: Fri, 14 Aug 2020 12:07:18 -0500 Subject: [PATCH] Update fed-mgr-msg.json --- fm/fed-mgr-msg.json | 237 +++++++++++++++++++++----------------------- 1 file changed, 114 insertions(+), 123 deletions(-) diff --git a/fm/fed-mgr-msg.json b/fm/fed-mgr-msg.json index ed9029c..cbe4534 100644 --- a/fm/fed-mgr-msg.json +++ b/fm/fed-mgr-msg.json @@ -1,129 +1,120 @@ { - "asyncapi": "2.0.0", - - "info": { - "title": "AsyncAPI Sample App", - "description": "Draft 00: Specification of the Async API for TAP-ICP Federation Manager Messaging", - "termsOfService": "http://asyncapi.org/terms/", - "contact": { - "name": "API Support", - "url": "http://www.asyncapi.org/support", - "email": "support@asyncapi.org" - }, - + "asyncapi": "2.0.0", + "info": { + "title": "AsyncAPI Sample App", + "description": "Draft 00: Specification of the Async API for TAP-ICP Federation Manager Messaging", + "termsOfService": "http://asyncapi.org/terms/", + "contact": { + "name": "API Support", + "url": "http://www.asyncapi.org/support", + "email": "support@asyncapi.org" + }, "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.html" } }, - - "servers": { - "development": { - "url": "development.gigantic-server.com", - "description": "Development server", - "protocol": "mqtt" - }, - "staging": { - "url": "staging.gigantic-server.com", - "description": "Staging server", - "protocol": "secure-mqtt" - }, - "production": { - "url": "api.gigantic-server.com", - "description": "Production server", - "protocol": "secure-mqtt" - } - }, - - "channels": { - "FMpersonCreated": { - }, - "publish": { - "operationId": "create", - "message": { - "$ref": "#/components/messages/CRUD" - } - } - }, - - "components": { - "schemas": { - "email": { - "type": "string", - "format": "email" - }, - "sentAt": { - "type": "string", - "format": "datetime" - }, - "address": { - "type": "object", - "properties": { - "street": { - "type": "string" - }, - "postalCode": { - "type": "string" - }, - "city": { - "type": "string" - }, - "region": { - "type": "string" - }, - "country": { - "type": "string" - } - } - } - }, - - "messages": { - "CRUD": { - "summary": "Person new to FM added to FM.", - "description": "Multiline description of what this action does.\nHere you have another line.\n", - "tags": [{ - "name": "FMperson" - }, - { - "name": "created" - } - ], - - "bindings": { - "mqtt": { - "cleanSession": false, - "clientId": "myApp" - } - }, - - "headers": { - "type": "object", - "properties": { - "myAppHeader": { - "type": "string" - } - } - }, - - "payload": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "email": { - "$ref": "#/components/schemas/email" - }, - "address": { - "$ref": "#/components/schemas/address" - }, - "sentAt": { - "$ref": "#/components/schemas/sentAt" - } - } - } - } - } - } - } + "servers": { + "development": { + "url": "development.gigantic-server.com", + "description": "Development server", + "protocol": "mqtt" + }, + "staging": { + "url": "staging.gigantic-server.com", + "description": "Staging server", + "protocol": "secure-mqtt" + }, + "production": { + "url": "api.gigantic-server.com", + "description": "Production server", + "protocol": "secure-mqtt" + } + }, + "channels": { + "FMpersonCreated": {}, + "publish": { + "operationId": "create", + "message": { + "$ref": "#/components/messages/CRUD" + } + } + }, + "components": { + "schemas": { + "email": { + "type": "string", + "format": "email" + }, + "sentAt": { + "type": "string", + "format": "datetime" + }, + "address": { + "type": "object", + "properties": { + "street": { + "type": "string" + }, + "postalCode": { + "type": "string" + }, + "city": { + "type": "string" + }, + "region": { + "type": "string" + }, + "country": { + "type": "string" + } + } + } + }, + "messages": { + "CRUD": { + "summary": "Person new to FM added to FM.", + "description": "Multiline description of what this action does.\nHere you have another line.\n", + "tags": [ + { + "name": "FMperson" + }, + { + "name": "created" + } + ], + "bindings": { + "mqtt": { + "cleanSession": false, + "clientId": "myApp" + } + }, + "headers": { + "type": "object", + "properties": { + "myAppHeader": { + "type": "string" + } + } + }, + "payload": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "email": { + "$ref": "#/components/schemas/email" + }, + "address": { + "$ref": "#/components/schemas/address" + }, + "sentAt": { + "$ref": "#/components/schemas/sentAt" + } + } + } + } + } + } +}