-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: spec v3 support (update examples to v3.0.0) (#549)
Co-authored-by: Khuda Dad Nomani <[email protected]>
- Loading branch information
1 parent
827101c
commit d8e3bd7
Showing
11 changed files
with
188 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Anime-HTTP | ||
|
||
This application is a dummy application showcasing the use of HTTP adapter in Glee. This application makes and `GET` call to a third-party REST API to fetch the list of famous Anime. | ||
|
||
|
||
## Prerequisites | ||
|
||
- Node.js (version 12 or higher) | ||
|
||
## How to run the Application | ||
|
||
The application is divided into a `server` and a `client` which needs to be run simultaneously. | ||
|
||
**To run Server** | ||
|
||
```sh | ||
cd server | ||
npm run dev | ||
``` | ||
|
||
**To run Client** | ||
|
||
```sh | ||
cd client | ||
npm run dev | ||
``` | ||
|
||
|
||
The Server needs to run first and then the client application. The server fetches the data from the third-party REST API when the client makes a `GET` API call to the server. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,45 @@ | ||
asyncapi: 2.4.0 | ||
asyncapi: 3.0.0 | ||
info: | ||
title: Kafka test | ||
version: '1' | ||
servers: | ||
mykafka: | ||
url: kafka://pkc-6ojv2.us-west4.gcp.confluent.cloud:9092 | ||
host: 'pkc-6ojv2.us-west4.gcp.confluent.cloud:9092' | ||
protocol: kafka-secure | ||
security: | ||
- saslScramExample: [] | ||
- $ref: '#/components/securitySchemes/saslScramExample' | ||
channels: | ||
test: | ||
publish: | ||
operationId: onTest | ||
message: | ||
address: test | ||
messages: | ||
testMessage: | ||
$ref: '#/components/messages/testMessage' | ||
produce: | ||
subscribe: | ||
message: | ||
address: produce | ||
messages: | ||
testMessage: | ||
$ref: '#/components/messages/testMessage' | ||
operations: | ||
onTest: | ||
action: receive | ||
channel: | ||
$ref: '#/channels/test' | ||
messages: | ||
- $ref: '#/components/messages/testMessage' | ||
sendMessage: | ||
action: send | ||
channel: | ||
$ref: '#/channels/produce' | ||
messages: | ||
- $ref: '#/components/messages/testMessage' | ||
components: | ||
messages: | ||
testMessage: | ||
payload: | ||
type: object | ||
properties: | ||
test: | ||
type: string | ||
type: string | ||
securitySchemes: | ||
saslScramExample: | ||
type: scramSha256 | ||
saslScramExample: | ||
type: scramSha256 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
21 changes: 13 additions & 8 deletions
21
examples/social-network/notifications-service/asyncapi.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
asyncapi: 2.2.0 | ||
asyncapi: 3.0.0 | ||
info: | ||
title: Notifications Service | ||
version: 0.1.0 | ||
|
||
servers: | ||
mosquitto: | ||
url: mqtt://test.mosquitto.org | ||
host: test.mosquitto.org | ||
protocol: mqtt | ||
bindings: | ||
mqtt: | ||
clientId: notifications-service | ||
|
||
channels: | ||
post/liked: | ||
publish: | ||
operationId: onPostLiked | ||
message: | ||
postLiked: | ||
address: post/liked | ||
messages: | ||
onPostLikedMmessage: | ||
$ref: '../websocket-server/asyncapi.yaml#/components/messages/notifyPostLiked' | ||
operations: | ||
onPostLiked: | ||
action: receive | ||
channel: | ||
$ref: '#/channels/postLiked' | ||
messages: | ||
- $ref: '#/channels/post~1liked/messages/onPostLikedMessage' |
Oops, something went wrong.