{"id":22015599,"url":"https://github.com/iconica-development/dart_api_service","last_synced_at":"2026-05-01T21:33:16.580Z","repository":{"id":235127047,"uuid":"788874230","full_name":"Iconica-Development/dart_api_service","owner":"Iconica-Development","description":"A basic rest api interaction service to streamline API communication based on the http package","archived":false,"fork":false,"pushed_at":"2024-11-28T08:56:53.000Z","size":30,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-28T15:48:08.481Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Iconica-Development.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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-04-19T08:56:18.000Z","updated_at":"2024-11-28T08:56:57.000Z","dependencies_parsed_at":"2024-11-11T14:28:08.867Z","dependency_job_id":"70b262da-0d11-46ec-af95-cdb9f7f8974c","html_url":"https://github.com/Iconica-Development/dart_api_service","commit_stats":null,"previous_names":["iconica-development/dart_api_service"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iconica-Development%2Fdart_api_service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iconica-Development%2Fdart_api_service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iconica-Development%2Fdart_api_service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iconica-Development%2Fdart_api_service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Iconica-Development","download_url":"https://codeload.github.com/Iconica-Development/dart_api_service/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245078198,"owners_count":20557282,"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":[],"created_at":"2024-11-30T04:26:40.694Z","updated_at":"2025-10-18T13:46:49.561Z","avatar_url":"https://github.com/Iconica-Development.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nA simple API service that follows a FirebaseFirestore-like definition of resource endpoints.\n\n## Features\n\n- Call endpoints with Put, Patch, Delete, Post and Get http methods\n- Use converters for type safe interaction with endpoints.\n- Allow authentication due to an auth credentials service.\n\n## Getting started\n\nTo use the this API service in your Dart or Flutter, add the following to the pubspec.yaml\n\n```yaml\n  dart_api_service:\n    hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub/\n    version: \u003cVersion\u003e\n```\n\n## Usage\n\nTODO: Include short and useful examples for package users. Add longer examples\nto `/example` folder. \n\n```dart\n  var authService = MockAuthService();\n  var apiService = HttpApiService(\n    baseUrl: Uri.parse(\"https://jsonplaceholder.typicode.com\"),\n    authenticationService: authService,\n  );\n\n  var converter = ApiConverter.fromSerializable(PostComment.fromMap);\n\n  var endPoint = apiService.endpoint(\"/posts/:post\");\n  var comments = endPoint\n      .child(\"/comments\")\n      .withConverter(\n        converter.list(),\n      )\n      .authenticate()\n      .addHeaders({\n    \"accept\": \"application/json\",\n  }).withVariables({\n    \"post\": 1,\n  });\n\n  try {\n    var post = await comments.get();\n    print(post.result);\n  } on ApiException catch (e) {\n    print(e.statusCode);\n    print(e.inner.body);\n  }\n```\n\n## Issues\n\nPlease file any issues, bugs or feature request as an issue on our [GitHub](https://github.com/Iconica-Development/dart_api_service) page. Commercial support is available if you need help with integration with your app or services. You can contact us at [support@iconica.nl](mailto:support@iconica.nl).\n\n## Want to contribute\n\nIf you would like to contribute to the plugin (e.g. by improving the documentation, solving a bug or adding a cool new feature), please carefully review our [contribution guide](./CONTRIBUTING.md) and send us your [pull request](https://github.com/Iconica-Development/dart_api_service/pulls).\n\n## Author\n\nThis dart_api_service for Flutter and Dart is developed by [Iconica](https://iconica.nl). You can contact us at \u003csupport@iconica.nl\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficonica-development%2Fdart_api_service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficonica-development%2Fdart_api_service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficonica-development%2Fdart_api_service/lists"}