mirror of
https://github.com/JoshiCodes/knock.git
synced 2026-12-04 15:49:41 +01:00
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:
@@ -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
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
meta {
|
||||
name: users
|
||||
seq: 2
|
||||
}
|
||||
|
||||
headers {
|
||||
Accept: application/json
|
||||
}
|
||||
|
||||
vars:pre-request {
|
||||
pageSize: 20
|
||||
}
|
||||
Reference in New Issue
Block a user