{"id":15091339,"url":"https://github.com/farhadrezvani/http-generator","last_synced_at":"2026-01-02T01:15:25.824Z","repository":{"id":244653878,"uuid":"815814066","full_name":"farhadrezvani/http-generator","owner":"farhadrezvani","description":"Generate .http files from OpenAPI specifications","archived":false,"fork":false,"pushed_at":"2024-07-13T12:22:51.000Z","size":88,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-21T01:38:20.799Z","etag":null,"topics":["openapi","openapi-specification","openapi3","rest-client","swagger"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/farhadrezvani.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":"2024-06-16T08:38:48.000Z","updated_at":"2024-12-18T23:23:30.000Z","dependencies_parsed_at":"2024-09-19T18:40:47.334Z","dependency_job_id":null,"html_url":"https://github.com/farhadrezvani/http-generator","commit_stats":null,"previous_names":["farhadrezvani/http-generator"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farhadrezvani%2Fhttp-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farhadrezvani%2Fhttp-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farhadrezvani%2Fhttp-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farhadrezvani%2Fhttp-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farhadrezvani","download_url":"https://codeload.github.com/farhadrezvani/http-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243419128,"owners_count":20287806,"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":["openapi","openapi-specification","openapi3","rest-client","swagger"],"created_at":"2024-09-25T10:40:30.451Z","updated_at":"2026-01-02T01:15:25.780Z","avatar_url":"https://github.com/farhadrezvani.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# http-generator\n\nGenerate `.http` files from OpenAPI specifications\n\n## Features\n\n- Generate HTTP file(s) either as\n\n  - A single file containing all requests\n  - A file per request\n\n- Supports OpenAPI v2 and v3\n\n  - JSON and YAML formats\n  - Schema Validation\n\n- Include authorization headers\n- Include summaries and descriptions\n- Variables for route parameters\n- Specify base-url for convenient environment switching\n\n## Installation\n\nInstall in your project folder:\n\n```bash\nnpm i http-generator -D\n# Using yarn\nyarn add http-generator --dev\n# Using pnpm\npnpm add http-generator -D\n```\n\n## Usage\n\nRun http-generator with the appropriate options:\n\n```bash\nUsage: http-generator [options]\n\nGenerate .http files from OpenAPI specifications\n\nOptions:\n  -i, --input \u003cinput\u003e       OpenAPI specifications file or URL\n  -o, --output \u003coutput\u003e     Output directory or HTTP file\n  -b, --base-url \u003cbaseUrl\u003e  Base URL of the API\n  -t, --token \u003ctoken\u003e       Authorization token\n  -s, --skip-validation     Skip validation of OpenAPI Specification (default: false)\n  -v, --version             Display version number\n  -h, --help                Display this message\n```\n\n## Configuration File\n\nYou can also use `http-generator` using file configurations or in a property inside your package.json, and you can even use TypeScript and have type-safety while you are using it.\n\nYou can use any of these files:\n\n- `httpgen.config.ts`\n- `httpgen.config.js`\n- `httpgen.config.cjs`\n- `httpgen` property in your `package.json`\n\nBasic Configuration:\n\n```js\nimport { defineConfig } from \"http-generator\";\n\nexport default defineConfig({\n  input: \"schema.json\",\n  output: \"output.http\",\n  baseUrl: \"https://example.com\",\n  skipValidation: false,\n  token: \"Bearer Token\",\n});\n```\n\n## Contributing\n\nContributions are welcome! Please submit issues or pull requests.\n\n## License\n\nLicensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarhadrezvani%2Fhttp-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarhadrezvani%2Fhttp-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarhadrezvani%2Fhttp-generator/lists"}