{"id":37171638,"url":"https://github.com/parikshitg/flutter_api_call","last_synced_at":"2026-01-14T20:01:43.476Z","repository":{"id":68959720,"uuid":"405456743","full_name":"parikshitg/flutter_api_call","owner":"parikshitg","description":"This projects demonstrate how to make api call in flutter. It uses a Go service for making api calls.","archived":false,"fork":false,"pushed_at":"2021-09-15T15:50:46.000Z","size":2557,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T09:01:49.343Z","etag":null,"topics":["flutter","golang","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Dart","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/parikshitg.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}},"created_at":"2021-09-11T18:41:42.000Z","updated_at":"2024-08-08T07:41:13.000Z","dependencies_parsed_at":"2023-02-22T18:30:26.307Z","dependency_job_id":null,"html_url":"https://github.com/parikshitg/flutter_api_call","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/parikshitg/flutter_api_call","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parikshitg%2Fflutter_api_call","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parikshitg%2Fflutter_api_call/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parikshitg%2Fflutter_api_call/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parikshitg%2Fflutter_api_call/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parikshitg","download_url":"https://codeload.github.com/parikshitg/flutter_api_call/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parikshitg%2Fflutter_api_call/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434130,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"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":["flutter","golang","rest-api"],"created_at":"2026-01-14T20:01:42.940Z","updated_at":"2026-01-14T20:01:43.465Z","avatar_url":"https://github.com/parikshitg.png","language":"Dart","readme":"# FLUTTER API CALL\n\n![Register Screen](https://github.com/parikshitg/flutter_api_call/blob/master/flutter_client/assets/images/flutter_api_call.png)\n\nThis projects demonstrates the ideal way to make api calls in flutter. The app consists of a basic auth flow. User can register, login, update its credentials and remove from the app covering the basic http methods GET, POST, PATCH, DELETE.\n\nThe project-repo consist of two directories, **flutter_client** (our frontend client app written in flutter) and **go-server** backend server written in golang. The go-server is a small API based microservice written using gin-gonic.\n\n\n### REQUIREMENTS\n*  Computer\n*  Golang \n*  Flutter\n\n### RUN\nTo run golang backend server:\n\n```\ncd flutter_api_call/go-server\nmake run or go run main.go  \n```\n\nTo run flutter app:\n \n```\ncd flutter_api_call/flutter_client\nflutter pub get\nflutter run\n```\n\t\n### API SPECS\nSome common structures:\n\n```\nStatus{\n\tSuccess      `json:\"success\"`\t\t// boolean\n\tErrorMessage `json:\"error_message\"` \t// string\n}\n\nResponse{\n\tStatus `json:\"status\"` \t\t\t// Status\n}\n\nUser{\n\tName    `json:\"name\"`                   // string\n\tEmail \t`json:\"email\"`                  // string\n}\n\n```\n\n\n#### __/register__ \n\n```\n* Method: POST\n* Request: RegisterRequest{\n\t\tEmail \t\t `json:\"email\"` \t\t// string\n\t\tName\t\t `json:\"name\"`  \t\t// string\n\t\tPassword\t `json:\"password\"` \t        // string\n\t\tConfirmPassword `json:\"confirm_password\"` \t// string\n\t    }\n* Response: Response{}\n```\n\n#### __/login__\n \n```\n* Method: POST\n* Request: LoginRequest{\n\t\tEmail\t    `json:\"email\"`     // string\n\t\tPassword    `json:\"password\"`  // string\n\t\t}\n* Response: LoginResponse{\n\t\tName  `json:\"name\"` \t \t// string\n\t\tEmail `json:\"email\"` \t \t// string\n\t\t}\n```\n\n#### __/list__ (lists all the users)\n\n```\n* Method: GET\n* Response: ListResponse{\n\t\tStatus  `json:\"status\"` \t// Status\n\t\tUsers   `json:\"users\"` \t// []User\n\t    }\n```\n\n#### __/update-password__\n\n```\n* Method: PATCH\n* Request: UpdateRequest{\n\t\tEmail \t\t `json:\"email\"` \t\t// string\n\t\tOldPassword \t `json:\"old_password\"`         // string\n\t\tNewPassword     `json:\"new_password\"` \t// string\n\t\tConfrimPassword `json:\"confirm_password\"` \t// string\n\t\t}\n* Response: Response{}\n```\n\n#### __/delete__\n\n```\n* Method: DELETE\n* Request: DeleteRequest{\n\t\tEmail \t    `json:\"email\"` \t // string\n\t\tPassword    `json:\"password` \t // string\n\t}\n* Response: Response{}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparikshitg%2Fflutter_api_call","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparikshitg%2Fflutter_api_call","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparikshitg%2Fflutter_api_call/lists"}