Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs Bug 🐞 report]: HTTP Binding: type: Request vs Response #212

Closed
1 task done
Lazzaretti opened this issue Jul 18, 2023 · 1 comment
Closed
1 task done

[Docs Bug 🐞 report]: HTTP Binding: type: Request vs Response #212

Lazzaretti opened this issue Jul 18, 2023 · 1 comment

Comments

@Lazzaretti
Copy link
Contributor

Describe the bug you found in AsyncAPI Docs.

HTTP Binding: type: Request vs. Response is not described. What is the request, and what is the response?

The doc states: REQUIRED. Type of operation. Its value MUST be either request or response.

I attached a small sample below. In this sample, does request mean the subscriber requests the message (consumer calls channel; response is the message) or the channel sends a request to the subscriber (channel calls consumer; event is attached)?

asyncapi: 2.6.0
info:
  title: Event Push API
  version: 1.0.0
channels:
  /event:
    subscribe:
      bindings:
        http:
          type: request # todo: request or response?
          method: POST
      message:
        payload:
          type: string
          examples:
            - "hello"

Attach any resources that can help us understand the issue.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@github-actions github-actions bot added the stale label Nov 16, 2023
@KhudaDad414 KhudaDad414 removed the stale label Nov 16, 2023
@asyncapi asyncapi deleted a comment from github-actions bot Nov 16, 2023
@asyncapi asyncapi deleted a comment from github-actions bot Nov 16, 2023
@jonaslagoni
Copy link
Member

As of v3 this field is no longer necessary and has been removed from the HTTP bindings. Checkout the request/reply documentation for further information: https://www.asyncapi.com/docs/tutorials/getting-started/request-reply

@fmvilas fmvilas closed this as completed Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants