Skip to content

Commit

Permalink
review addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmohona committed Feb 25, 2024
1 parent af257ec commit 3a08dd5
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions 100-level-AsyncAPI-Intro/step3.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ When Chan has to go back to his planet, he wants to keep talking to Eve. Eve is

Chan begins by setting up his space message plan.

```
```yaml
asyncapi: 3.0.0
info:
title: Sending Signal to Eve
Expand Down Expand Up @@ -35,25 +35,38 @@ channels:
minimum: 18
```

## Send message

Last, Chan sends the message via the `spaceMessage` channel.


```
```yaml
operations:
spaceMessage:
action: send
channel:
$ref: '#/channels/spaceMessage'
```

## Validate AsyncAPI document

Chan uses [AsyncAPI Studio](https://studio.asyncapi.com/) to validate that his messages are working. Studio is a tool that checks for mistakes. He can paste his document into Studio to validate his work.

## Generator

Generator automatically writes code in different languages based on Chan's blueprint, saving him time and effort to focus on the real message.

* Install Generator:

```bash
npm install -g @asyncapi/generator
```

* Generate code from your AsyncAPI file:

```bash
asyncapi generate fromFile my-api.yaml
```

## Exercise 1: Chan's first AsyncAPI message

1. Open the terminal and type `nano chan-to-eve.yaml` to create an AsyncAPI document for communication with Eve.
Expand Down

0 comments on commit 3a08dd5

Please sign in to comment.