{"id":19285691,"url":"https://github.com/wklken/fetch","last_synced_at":"2025-04-22T03:33:04.157Z","repository":{"id":57708974,"uuid":"380751617","full_name":"wklken/fetch","owner":"wklken","description":"A command line http test tool. Maintain the case via git and pure text","archived":false,"fork":false,"pushed_at":"2023-12-16T12:21:02.000Z","size":1514,"stargazers_count":17,"open_issues_count":13,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-21T17:07:19.538Z","etag":null,"topics":["apitest","cli","httptest","newman"],"latest_commit_sha":null,"homepage":"https://wklken.me/fetch/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wklken.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-27T13:48:58.000Z","updated_at":"2023-11-15T10:40:41.000Z","dependencies_parsed_at":"2023-01-30T20:31:36.213Z","dependency_job_id":"c7009d9c-f2c5-445c-bf22-523dcda30500","html_url":"https://github.com/wklken/fetch","commit_stats":null,"previous_names":["wklken/fetch","wklken/httptest"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wklken%2Ffetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wklken%2Ffetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wklken%2Ffetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wklken%2Ffetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wklken","download_url":"https://codeload.github.com/wklken/fetch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223888486,"owners_count":17220079,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apitest","cli","httptest","newman"],"created_at":"2024-11-09T21:46:22.151Z","updated_at":"2024-11-09T21:46:22.916Z","avatar_url":"https://github.com/wklken.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fetch\n\nfetch is a **lightweight** and **powerful** API testing tool.\n\nYou can use git and yaml files to maintain all test cases.\n\nSee [https://wklken.me/fetch](https://wklken.me/fetch) for more information.\n\n## Installation\n\n### Binary releases\n\nSee the available binaries for different operating systems/architectures from the [releases page](https://github.com/wklken/fetch/releases).\n\n### go install\n\n```bash\ngo install github.com/wklken/fetch@latest\n```\n\n### hombrew\n\n```bash\nbrew tap wklken/fetch\nbrew install fetch\n```\n\n### docker\n\n```bash\ndocker run --rm --net=host wklken/fetch help\n\n# apple m1*/m2*\ndocker pull --platform=linux/amd64 wklken/fetch\ndocker run --rm --net=host wklken/fetch help\n```\n\n### Build from source\n\n- dependencies: go1.21\n\n```bash\ngit clone https://github.com/wklken/fetch.git\ncd fetch\nmake build\n```\n\n## Getting Started\n\n```yaml\nrequest:\n  method: get\n  url: 'http://httpbin.org/get'\nassert:\n  status: ok\n  statusCode: 200\n  contentLength_gt: 180\n  contentType: application/json\n```\n\nrun\n\n```bash\n$ ./fetch run http_get.yaml\n```\n![](./docs/assets/images/getting-started.jpg)\n\nSee [examples](https://github.com/wklken/fetch/tree/master/examples) for a variety of examples.\n\n## Features\n\n- http methods: get/post/put/delete/patch/head/options\n- build request: file/template([go template](https://golang.org/pkg/text/template/))/set cookie/basic auth/share cookie/msgpack\n- assert response:\n  - status/statusCode/contentLength/contentType/body\n  - latency\n  - numeric support `_in/_not_in/_lt/_lte/_gt/_gte`\n  - string support `_contains/_not_contains/_startswith/_endswith`\n  - proto/protoMajor/protoMinor\n  - redirect\n  - header/cookie/error/json([jmespath](https://jmespath.org/tutorial.html))/html(xpath)/xml(xpath)/yaml/toml/redirect\n- cli:\n  - progress bar\n  - show stats\n  - verbose mode: `-v` or set `export FETCH_DEBUG = true`\n  - quiet mode: `-q/--quiet` to silent the print, for check `$?` only\n  - run in order / run in parallel\n  - set failFast/timeout\n\n## Feedback\n\nIf you have any feedback, please create an [issue](https://github.com/wklken/fetch/issues)\n\n## License\n\nCopyright (c) 2021-present [wklken](https://github.com/wklken)\n\nLicensed under [MIT License](https://github.com/wklken/fetch/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwklken%2Ffetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwklken%2Ffetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwklken%2Ffetch/lists"}