Skip to content

Commit

Permalink
feat: add IBM MQ template (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-r authored Apr 19, 2023
1 parent e17325f commit fe83e25
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Modals/NewFileModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const NewFileModal = create(() => {

toast.success(
<div>
<span className="block text-bold">Succesfully reused the {`"${selectedTemplate.title}"`} template.</span>
<span className="block text-bold">Successfully reused the {`"${selectedTemplate.title}"`} template.</span>
</div>
);
};
Expand Down
47 changes: 47 additions & 0 deletions src/examples/ibmmq.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
asyncapi: 2.6.0
info:
title: Record Label Service
version: 1.1.0
description: This service is in charge of processing music
license:
name: Apache License 2.0
url: https://www.apache.org/licenses/LICENSE-2.0
servers:
production:
url: 'ibmmq://localhost:1414/QM1/DEV.APP.SVRCONN'
protocol: ibmmq-secure
description: Production Instance 1
bindings:
ibmmq:
cipherSpec: ANY_TLS12
channels:
song/released:
publish:
operationId: publish
message:
$ref: '#/components/messages/song'
subscribe:
operationId: subscribe
message:
$ref: '#/components/messages/song'
components:
messages:
song:
payload:
type: object
properties:
title:
type: string
description: Song title
artist:
type: string
description: Song artist
album:
type: string
description: Song album
genre:
type: string
description: Primary song genre
length:
type: integer
description: Track length in seconds
9 changes: 8 additions & 1 deletion src/examples/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import kafka from './streetlights-kafka.yml';
import websocket from './websocket-gemini.yml';
import mqtt from './streetlights-mqtt.yml';
import simple from './simple.yml';
import ibmmq from './ibmmq.yml';

// tutorial example
import invalid from './tutorials/invalid.yml';
Expand Down Expand Up @@ -46,10 +47,16 @@ export default [
},
{
title: 'MQTT',
description: () => <>A protocol for fetching resources. It is the foundation of any data exchange on the Web and it is a client-server protocol.</>,
description: () => <>An OASIS standard messaging protocol for the Internet of Things. Ideal for connecting remote devices with limited processing power and bandwidth.</>,
template: mqtt,
type: templateTypes.protocol
},
{
title: 'IBM MQ',
description: () => <>A robust, reliable, and secure messaging solution. IBM MQ simplifies and accelerates the integration of different applications across multiple platforms and supports a wide range of APIs and languages.</>,
template: ibmmq,
type: templateTypes.protocol
},
{
title: 'HTTP',
description: () => <>A protocol for fetching resources. It is the foundation of any data exchange on the Web and it is a client-server protocol.</>,
Expand Down

0 comments on commit fe83e25

Please sign in to comment.