Skip to content

Commit fe83e25

Browse files
authored
feat: add IBM MQ template (#597)
1 parent e17325f commit fe83e25

File tree

3 files changed

+56
-2
lines changed

3 files changed

+56
-2
lines changed

src/components/Modals/NewFileModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const NewFileModal = create(() => {
4545

4646
toast.success(
4747
<div>
48-
<span className="block text-bold">Succesfully reused the {`"${selectedTemplate.title}"`} template.</span>
48+
<span className="block text-bold">Successfully reused the {`"${selectedTemplate.title}"`} template.</span>
4949
</div>
5050
);
5151
};

src/examples/ibmmq.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
asyncapi: 2.6.0
2+
info:
3+
title: Record Label Service
4+
version: 1.1.0
5+
description: This service is in charge of processing music
6+
license:
7+
name: Apache License 2.0
8+
url: https://www.apache.org/licenses/LICENSE-2.0
9+
servers:
10+
production:
11+
url: 'ibmmq://localhost:1414/QM1/DEV.APP.SVRCONN'
12+
protocol: ibmmq-secure
13+
description: Production Instance 1
14+
bindings:
15+
ibmmq:
16+
cipherSpec: ANY_TLS12
17+
channels:
18+
song/released:
19+
publish:
20+
operationId: publish
21+
message:
22+
$ref: '#/components/messages/song'
23+
subscribe:
24+
operationId: subscribe
25+
message:
26+
$ref: '#/components/messages/song'
27+
components:
28+
messages:
29+
song:
30+
payload:
31+
type: object
32+
properties:
33+
title:
34+
type: string
35+
description: Song title
36+
artist:
37+
type: string
38+
description: Song artist
39+
album:
40+
type: string
41+
description: Song album
42+
genre:
43+
type: string
44+
description: Primary song genre
45+
length:
46+
type: integer
47+
description: Track length in seconds

src/examples/index.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import kafka from './streetlights-kafka.yml';
55
import websocket from './websocket-gemini.yml';
66
import mqtt from './streetlights-mqtt.yml';
77
import simple from './simple.yml';
8+
import ibmmq from './ibmmq.yml';
89

910
// tutorial example
1011
import invalid from './tutorials/invalid.yml';
@@ -46,10 +47,16 @@ export default [
4647
},
4748
{
4849
title: 'MQTT',
49-
description: () => <>A protocol for fetching resources. It is the foundation of any data exchange on the Web and it is a client-server protocol.</>,
50+
description: () => <>An OASIS standard messaging protocol for the Internet of Things. Ideal for connecting remote devices with limited processing power and bandwidth.</>,
5051
template: mqtt,
5152
type: templateTypes.protocol
5253
},
54+
{
55+
title: 'IBM MQ',
56+
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.</>,
57+
template: ibmmq,
58+
type: templateTypes.protocol
59+
},
5360
{
5461
title: 'HTTP',
5562
description: () => <>A protocol for fetching resources. It is the foundation of any data exchange on the Web and it is a client-server protocol.</>,

0 commit comments

Comments
 (0)