Rester
Rester copied to clipboard
A command line tool to test (REST) APIs
When using the ``` log: json ``` directly, the output is ``` JSON: [["web_url": "https://gitlab.com/finestructure/swiftpackageindex-builder/-/pipelines/246973893", "updated_at": "2021-01-26T13:51:50.448Z", "ref": "main", "created_at": "2021-01-26T12:56:28.027Z", "id": 246973893, "sha": "fe40569a07afe8c2d6c5fd6327161cb1221baf0e", "status": "running"], ["created_at ``` It...
I can't believe this is the case but apparently I'm stripping off query parameters somewhere: ``` requests: test: url: "http://httpbin.org/anything?foo=bar" validation: status: 200 log: json ``` results in: ``` 🎬...
See title..
This should work: ``` request: example: ... variables: doc_id: json.id ``` Currently, the id can only be referenced via `example.id` and not be redeclared.
For example, this should work if `TEST_ID` is an environment variable: ``` variables: email: foo-${TEST_ID}@bar.com ``` Currently, as a workaround, `TEST_ID` needs to be injected in `requests`, i.e.: ``` variables:...
``` contacts: url: ${api_url}/contacts/ validation: status: 200 json: # contacts are listed in reverse order or creation 1: user: ${alice data.id} ``` The db field is an integer while the...
- https://github.com/finestructure/Rester/blob/a65f167a6159f2c75799126ebb1d60917daed6df/Dockerfile.app#L12 - https://github.com/finestructure/Rester/blob/a65f167a6159f2c75799126ebb1d60917daed6df/Makefile#L49 Depends on https://github.com/pointfreeco/swift-gen/issues/8 or a swift version update
I believe the following will silently overwrite the first request and run only once: ``` document: url: ${api_url}/v1/contract/${contract_list[0].id}/document method: POST headers: Authorization: Bearer ${login.access_token} body: json: filename: vbox.png index: 8...