Skip to content

Commit

Permalink
fix: incorrect operation messages in 'examples/http-test/asyncapi.yam…
Browse files Browse the repository at this point in the history
…l' (#805)
  • Loading branch information
peter-rr committed Apr 17, 2024
1 parent ed66e84 commit 647f540
Show file tree
Hide file tree
Showing 2 changed files with 183 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/http-test/asyncapi.yaml
Expand Up @@ -46,13 +46,13 @@ operations:
channel:
$ref: "#/channels/TRIGGER"
messages:
- $ref: "#/components/messages/string"
- $ref: "#/channels/TRIGGER/messages/string"
receiveTrigger:
reply:
channel:
$ref: "#/channels/TRIGGER"
messages:
- $ref: "#/components/messages/string"
- $ref: "#/channels/TRIGGER/messages/string"
channel:
$ref: '#/channels/TRIGGER'
action: receive
Expand Down
181 changes: 181 additions & 0 deletions examples/http-test/docs/asyncapi.md
Expand Up @@ -26,3 +26,184 @@ This app is a test app. it will send requests to httpbin.org to see if glee work

## Operations

### SEND `/` Operation

* Operation ID: `sendTrigger`
* Available only on servers: [local-trigger](#local-trigger-server)

#### Message `string`

##### Payload

| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| (root) | string | - | - | - | - |

> Examples of payload _(generated)_
```json
"string"
```


#### `http` Message specific information

| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| headers | object | - | - | - | **additional properties are allowed** |
| headers.a | string | - | - | - | **required** |
| headers.b | string | - | - | - | **required** |


### REPLY `/` Operation

* Operation ID: `receiveTrigger`
* Available only on servers: [local-trigger](#local-trigger-server)

#### `http` Operation specific information

| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| method | - | - | `"POST"` | - | - |

Request contains **one of** the following messages:

#### Message `string`

##### Payload

| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| (root) | string | - | - | - | - |

> Examples of payload _(generated)_
```json
"string"
```


#### `http` Message specific information

| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| headers | object | - | - | - | **additional properties are allowed** |
| headers.a | string | - | - | - | **required** |
| headers.b | string | - | - | - | **required** |

#### Message `empty`

##### Payload

| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| (root) | null | - | - | - | - |

> Examples of payload _(generated)_
```json
""
```


#### Response information

* should be done to channel: `/`


### SEND `/delete` Operation

* Operation ID: `sendDELETE`
* Available only on servers: [httpbin.org](#httpbinorg-server)

#### `http` Operation specific information

| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| method | - | - | `"DELETE"` | - | - |


### RECEIVE `/delete` Operation

* Operation ID: `receiveDELETE`
* Available only on servers: [httpbin.org](#httpbinorg-server)


### SEND `/get` Operation

* Operation ID: `sendGET`
* Available only on servers: [httpbin.org](#httpbinorg-server)

#### `http` Operation specific information

| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| method | - | - | `"GET"` | - | - |


### RECEIVE `/get` Operation

* Operation ID: `receiveGET`
* Available only on servers: [httpbin.org](#httpbinorg-server)

#### `http` Operation specific information

| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| method | - | - | `"GET"` | - | - |


### SEND `/post` Operation

* Operation ID: `sendPOST`
* Available only on servers: [httpbin.org](#httpbinorg-server)

#### `http` Operation specific information

| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| method | - | - | `"POST"` | - | - |


### RECEIVE `/post` Operation

* Operation ID: `receivePOST`
* Available only on servers: [httpbin.org](#httpbinorg-server)


### SEND `/patch` Operation

* Operation ID: `sendPATCH`
* Available only on servers: [httpbin.org](#httpbinorg-server)

#### `http` Operation specific information

| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| method | - | - | `"PATCH"` | - | - |


### RECEIVE `/patch` Operation

* Operation ID: `receivePATCH`
* Available only on servers: [httpbin.org](#httpbinorg-server)


### SEND `/put` Operation

* Operation ID: `sendPUT`
* Available only on servers: [httpbin.org](#httpbinorg-server)

#### `http` Operation specific information

| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| method | - | - | `"PUT"` | - | - |


### RECEIVE `/put` Operation

* Operation ID: `receivePUT`
* Available only on servers: [httpbin.org](#httpbinorg-server)


0 comments on commit 647f540

Please sign in to comment.