GraphQL, WebSocket, import, runner and CLI (M5, M6) plus packaging

- GraphQL editor with schema introspection, cached schema,
  autocomplete and explorer
- WebSocket: auth and subprotocols in the handshake, text/JSON/hex/file
  messages, saved messages, live log with filter, search and export,
  reconnect with backoff
- Import from Postman (collections and environments), Bruno, Insomnia,
  OpenAPI/Swagger and cURL; imported scripts are kept as docs, never run;
  credentials move to the gitignored secrets file
- Code snippets for cURL, fetch, Python, HTTPie, Go, PowerShell;
  Postman export
- Runner for folders and collections with JSON and JUnit reports
- knock CLI: send, run, import, auth login/debug/logout
- Large JSON responses parsed off the main thread
- PKGBUILDs, desktop entry with knock:// handler, CI workflow, README
This commit is contained in:
2026-11-27 17:13:06 +01:00
parent a469697af7
commit fc253126a7
51 changed files with 8437 additions and 24 deletions
@@ -0,0 +1,28 @@
meta {
name: Create user
type: http
seq: 2
}
post {
url: {{baseUrl}}/orgs/:org/users
body: json
auth: basic
}
params:path {
org: acme
}
auth:basic {
username: admin
password: correct-horse
}
body:json {
{"name": "Ada", "roles": ["admin"]}
}
docs {
Creates a user in the given organisation.
}
@@ -0,0 +1,16 @@
meta {
name: List users
type: http
seq: 1
}
get {
url: {{baseUrl}}/users?page=1
body: none
auth: inherit
}
params:query {
page: 1
~size: {{pageSize}}
}
@@ -0,0 +1,17 @@
meta {
name: Upload avatar
type: http
seq: 3
}
put {
url: {{baseUrl}}/users/me/avatar
body: multipartForm
auth: inherit
}
body:multipart-form {
file: @file(avatars/me.png)
kind: profile
~note: old
}
+12
View File
@@ -0,0 +1,12 @@
meta {
name: users
seq: 2
}
headers {
Accept: application/json
}
vars:pre-request {
pageSize: 20
}