{"id":50126405,"url":"https://github.com/mdfarhankc/apix","last_synced_at":"2026-05-23T20:04:34.131Z","repository":{"id":356730744,"uuid":"1230856286","full_name":"mdfarhankc/apix","owner":"mdfarhankc","description":"APIX - A modern API Testing CLI for developers.","archived":false,"fork":false,"pushed_at":"2026-05-09T12:16:00.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-09T14:32:06.015Z","etag":null,"topics":["api","cli","client","cobra","golang","http"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdfarhankc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-06T11:43:24.000Z","updated_at":"2026-05-09T12:16:04.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mdfarhankc/apix","commit_stats":null,"previous_names":["mdfarhankc/apix"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mdfarhankc/apix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdfarhankc%2Fapix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdfarhankc%2Fapix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdfarhankc%2Fapix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdfarhankc%2Fapix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdfarhankc","download_url":"https://codeload.github.com/mdfarhankc/apix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdfarhankc%2Fapix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33410357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T18:09:33.147Z","status":"ssl_error","status_checked_at":"2026-05-23T18:09:31.380Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api","cli","client","cobra","golang","http"],"created_at":"2026-05-23T20:04:02.914Z","updated_at":"2026-05-23T20:04:34.125Z","avatar_url":"https://github.com/mdfarhankc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# APIX\n\nA simple HTTP client for the terminal — colorized status, timing, and pretty-printed JSON out of the box.\n\n## Install\n\n```sh\ngo install github.com/mdfarhankc/apix@latest\n```\n\nOr clone and build:\n\n```sh\ngit clone https://github.com/mdfarhankc/apix\ncd apix\ngo build -o apix\n```\n\n## Usage\n\n### GET\n\n```sh\napix get https://api.github.com/users/octocat\n```\n\nWith custom headers:\n\n```sh\napix get https://api.example.com/me -H \"Authorization: Bearer $TOKEN\"\n```\n\nWith query parameters (repeatable, values are URL-encoded):\n\n```sh\napix get https://api.github.com/search/repositories -q q=cli -q sort=stars\n```\n\n### POST\n\n```sh\napix post https://api.example.com/users \\\n  -d '{\"name\":\"Ada\",\"role\":\"admin\"}' \\\n  -H \"Authorization: Bearer $TOKEN\"\n```\n\n`Content-Type: application/json` is sent by default and can be overridden via `-H`.\n\nPass `@path` to read the body from a file:\n\n```sh\napix post https://api.example.com/users -d @user.json\n```\n\n### PUT\n\n```sh\napix put https://api.example.com/users/42 \\\n  -d '{\"role\":\"editor\"}'\n```\n\nSame flags as `post`.\n\n### PATCH\n\n```sh\napix patch https://api.example.com/users/42 \\\n  -d '{\"role\":\"editor\"}'\n```\n\nSame flags as `post`.\n\n### DELETE\n\n```sh\napix delete https://api.example.com/users/42\n```\n\nSame flags as `get`.\n\n### Environments\n\nSave base URLs you hit often and call them by short paths.\n\n```sh\napix env set local http://localhost:8080\napix env set staging https://api.staging.example.com\napix env list\napix env use staging\n\napix get /users           # → https://api.staging.example.com/users\napix post /users -d '{}'  # uses the same base URL\n```\n\nA path starting with `/` resolves against the current environment. A full URL is used as-is.\n\nConfig is stored at `~/.apix/config.json`.\n\n### Authentication\n\nSave a bearer token on the current environment and it is attached to every request that uses an env-relative path.\n\n```sh\napix env use staging\napix auth bearer eyJhbGciOi...\n\napix get /me              # sends Authorization: Bearer eyJ...\napix get /me -H \"Authorization: x\"   # user header wins\napix get https://other.com/me        # no auth — full URL escapes the env\n```\n\n## Commands\n\n| Command            | Description                                 |\n| ------------------ | ------------------------------------------- |\n| `get [url]`        | Send a GET request                          |\n| `post [url]`       | Send a POST request                         |\n| `put [url]`        | Send a PUT request                          |\n| `patch [url]`      | Send a PATCH request                        |\n| `delete [url]`     | Send a DELETE request                       |\n| `env list`         | List all saved environments                 |\n| `env set`          | Create or update an environment             |\n| `env use`          | Switch to an environment                    |\n| `auth bearer`      | Save a bearer token on the current env      |\n\n## Flags\n\n| Flag             | Commands   | Description           |\n| ---------------- | ---------- | --------------------- |\n| `-d`, `--data`   | `post/put/patch`            | Request body                    |\n| `-H`, `--header` | `get/post/put/patch/delete` | Header (repeatable)             |\n| `-q`, `--query`  | `get/post/put/patch/delete` | Query param `key=val` (repeatable) |\n\n## Project layout\n\n```\ncmd/                 cobra command definitions (get, post, root)\ncmd/env/             env subcommands (list, set, use)\ncmd/auth/            auth subcommands (bearer)\ninternal/client/     HTTP request/response types and Do()\ninternal/config/     config load/save and URL + auth resolution\ninternal/runner/     orchestrates resolve → request → response\ninternal/formatter/  JSON pretty-printing, response output, error helper\n```\n\n## Status\n\nEarly development. Planned: verbose mode, response header display.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdfarhankc%2Fapix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdfarhankc%2Fapix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdfarhankc%2Fapix/lists"}