{"id":18324811,"url":"https://github.com/luiscib3r/retrofit_cli","last_synced_at":"2026-03-11T12:13:22.994Z","repository":{"id":65711339,"uuid":"597931871","full_name":"luiscib3r/retrofit_cli","owner":"luiscib3r","description":"Dart Retrofit API Generator","archived":false,"fork":false,"pushed_at":"2023-02-13T14:45:54.000Z","size":37,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-14T21:36:14.682Z","etag":null,"topics":["api-rest","bricks","cli","command-line","dart","dart-package","flutter","mason","mustache","retrofit"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/retrofit_cli","language":"Dart","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/luiscib3r.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}},"created_at":"2023-02-06T02:43:00.000Z","updated_at":"2024-07-23T06:38:02.000Z","dependencies_parsed_at":"2023-02-19T04:00:28.473Z","dependency_job_id":null,"html_url":"https://github.com/luiscib3r/retrofit_cli","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"4ee658332f9f548544ceae873e4e4d554ffd4711"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/luiscib3r/retrofit_cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luiscib3r%2Fretrofit_cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luiscib3r%2Fretrofit_cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luiscib3r%2Fretrofit_cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luiscib3r%2Fretrofit_cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luiscib3r","download_url":"https://codeload.github.com/luiscib3r/retrofit_cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luiscib3r%2Fretrofit_cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30380935,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"last_error":"SSL_read: 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-rest","bricks","cli","command-line","dart","dart-package","flutter","mason","mustache","retrofit"],"created_at":"2024-11-05T18:35:53.074Z","updated_at":"2026-03-11T12:13:22.965Z","avatar_url":"https://github.com/luiscib3r.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"## retrofit_cli\n\nDart [Retrofit](https://pub.dev/packages/retrofit) API Generator (🚧 under\nconstruction 🚧)\n\n### Install\n\n```sh\ndart pub global activate retrofit_cli\n```\n\n#### Install from source\n\n```sh\ndart pub global activate --source=git https://github.com/luiscib3r/retrofit_cli.git\n```\n\nor\n\n```sh\ngit clone https://github.com/luiscib3r/retrofit_cli.git\ncd retrofit_cli\nmake install\n```\n\n### Usage\n\n#### 1. Define your api using a yaml file\n\n#### Example of `api.yaml`\n\n```yaml\nname: Todos\nendpoints:\n  - name: getTodos\n    method: GET\n    url: /todos\n    params:\n      - name: String\n      - description: String\n      - count: int\n    response: |\n      [\n        {\n          \"id\": \"idstring\",\n          \"name\": \"todo name\",\n          \"description\": \"todo description\",\n          \"price\": 2.5,\n          \"count\": 3\n        }\n      ]\n  - name: getTodo\n    method: GET\n    url: /todos/{id}\n    paths:\n      - id: String\n    response: |\n      {\n        \"id\": \"idstring\",\n        \"name\": \"todo name\",\n        \"description\": \"todo description\",\n        \"price\": 2.5,\n        \"count\": 3\n      }\n  - name: saveTodo\n    method: POST\n    url: /todos\n    headers:\n      - Authorization\n    payload: |\n      {\n        \"name\": \"todo name\",\n        \"description\": \"todo description\"\n      }\n    response: |\n      {\n        \"id\": \"idstring\",\n        \"name\": \"todo\",\n        \"description\": \"desc1\",\n        \"price\": 0.0,\n        \"count\": 0\n      }\n  - name: updateTodo\n    method: PUT\n    url: /todos/{id}\n    headers:\n      - Authorization\n    paths:\n      - id: String\n    payload: |\n      {\n        \"name\": \"new todo name\",\n        \"description\": \"new todo description\"\n      }\n    response: |\n      {\n        \"id\": \"idstring\",\n        \"name\": \"new todo name\",\n        \"description\": \"new todo description\"\n      }\n  - name: deleteTodo\n    method: DELETE\n    url: /todos/{id}\n    headers:\n      - Authorization\n    paths:\n      - id: String\n    response: |\n      {}\n```\n\n#### 2. Generate api package using retrofit_cli\n\n**Default**\n\n```sh\nretrofit_cli api\n```\n\n**Set output package folder (default is api)**\n\n```sh\nretrofit_cli api -o api_package_name\n```\n\n**Set input .yaml file (default is api.yaml)**\n\n```sh\nretrofit_cli api -o api_package_name -i my_api.yaml\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluiscib3r%2Fretrofit_cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluiscib3r%2Fretrofit_cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluiscib3r%2Fretrofit_cli/lists"}