-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
New relay "api": HTTP REST API #2066
Comments
…lay.network.time_window (issue #2066)
…l builds (issue #2066) This is because in these versions the libcjson-dev package doesn't provide pkg-config file.
Connection to remote: - handshake: offer support for all supported hash algorithms - network connect with a socket - upgrade to websocket and authenticate with remote (password/TOTP) - check websocket response - get list of buffers (not used yet) Note: connection to remote with TLS or a proxy is not yet supported.
…websocket_deflate_free (issue #2066)
This can be used to send raw JSON data encapsulated in a websocket frame to the remote. Example: /remote send test {"request":"GET /api/version"}
…tion cJSON_GetNumberValue() (issue #2066)
This allows buffers to get any user input, including commands, that are sent to the buffer callback instead of being executed on the buffer.
…otocols (issue #2066) This is to prevent infinite loop when connected to a remote which is the weechat instance itself.
…instead of NULL (issue #2066) This fixes the websocket connection to remote that is not initiated after the successful handshake with the remote relay/api.
…ssue #2066) The signal "buffer_line_added" is now sent for every line added or modified on a buffer with free content.
Would be nice if the API would support CORS, such that you can use it with OpenAPI directly. https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#preflighted_requests |
Old protocols will remain, right? |
@bqv: short answer: yes, for now. Long answer: IRC protocol will remain as it allows any IRC client to connect, like a bouncer does. The goal with API protocol is to deprecate and replace the "weechat" protocol. |
Feature description
Add a new relay protocol called "api", with the following goals:
Specification: https://specs.weechat.org/specs/2023-005-relay-http-rest-api.html
The text was updated successfully, but these errors were encountered: