{"id":28282539,"url":"https://github.com/defuj/belajar_flutter","last_synced_at":"2025-07-27T18:02:19.838Z","repository":{"id":288954078,"uuid":"953825257","full_name":"defuj/belajar_flutter","owner":"defuj","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-01T13:25:24.000Z","size":277,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-12T19:00:22.971Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/defuj.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}},"created_at":"2025-03-24T06:19:00.000Z","updated_at":"2025-05-01T13:25:28.000Z","dependencies_parsed_at":"2025-06-17T06:42:56.161Z","dependency_job_id":null,"html_url":"https://github.com/defuj/belajar_flutter","commit_stats":null,"previous_names":["defuj/belajar_flutter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/defuj/belajar_flutter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defuj%2Fbelajar_flutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defuj%2Fbelajar_flutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defuj%2Fbelajar_flutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defuj%2Fbelajar_flutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/defuj","download_url":"https://codeload.github.com/defuj/belajar_flutter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defuj%2Fbelajar_flutter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267399911,"owners_count":24081173,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-05-21T15:19:05.139Z","updated_at":"2025-07-27T18:02:19.749Z","avatar_url":"https://github.com/defuj.png","language":"C++","readme":"# belajar_flutter\n\nA new Flutter project.\n\n## Getting Started\n\nThis project is a starting point for a Flutter application.\n\nA few resources to get you started if this is your first Flutter project:\n\n- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)\n- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)\n\nFor help getting started with Flutter development, view the\n[online documentation](https://docs.flutter.dev/), which offers tutorials,\nsamples, guidance on mobile development, and a full API reference.\n\n## API Documentation for Sender\n### LIST STATUS SHIFTMENT\n- **Method**: GET\n- **Endpoint**: `/shipment-status`\n- **Header**: `Content-Type: application/json`\n- **Response Success**\n    ```json\n    {\n        \"status\": true,\n        \"data\": [\n            {\n                \"id\": \"ID\",\n                \"status\": \"IN PROCESS\",\n            },\n            {\n                \"id\": \"ID\",\n                \"status\": \"ON DELIVERY\",\n            },\n            {\n                \"id\": \"ID\",\n                \"status\": \"ARRIVED\",\n            },\n            {\n                \"id\": \"ID\",\n                \"status\": \"FINISHED\",\n            }\n        ]\n    }\n    ```\n- **Response Failed**\n    ```json\n    {\n        \"status\": false,\n        \"message\": \"Item not found\"\n    }\n    ```\n\n### LIST SHIFTMENT\n- **Method**: GET\n- **Endpoint**: `/shipment-list`\n- **Header**: `Content-Type: application/json`\n- **Response Success**\n    ```json\n    {\n        \"status\": true,\n        \"data\": [\n            {\n                \"id\": \"ID\",\n                \"status\": \"IN PROCESS\",\n                \"item\": \"Tas Kucing\",\n                \"expedition\": \"JNE\",\n            },\n            {\n                \"id\": \"ID\",\n                \"status\": \"ON DELIVERY\",\n                \"item\": \"Kandang Marmut Besi\",\n                \"expedition\": \"SiCepat\",\n            },\n            {\n                \"id\": \"ID\",\n                \"status\": \"ARRIVED\",\n                \"item\": \"Pakaian Kucing\",\n                \"expedition\": \"J\u0026T\",\n            },\n        ]\n    }\n    ```\n- **Response Failed**\n    ```json\n    {\n        \"status\": false,\n        \"message\": \"Item not found\"\n    }\n    ```\n### Create Shiftment\n- **Method**: POST\n- **Endpoint**: `/shipment`\n- **Header**: `Content-Type: application/json`\n- **Body**:\n    ```json\n    {\n        \"item\": \"Kandang Marmut Besi\",\n        \"expedition\": \"SiCepat\",\n        \"status\": \"IN PROCESS\",\n    }\n    ```\n- **Response Success**\n    ```json\n    {\n        \"status\": true,\n        \"message\": \"Shiftment created successfully\"\n    }\n    ```\n- **Response Failed**\n    ```json\n    {\n        \"status\": false,\n        \"message\": \"Failed to create shiftment\"\n    }\n    ```\n### Update Shiftment Status\n- **Method**: PUT\n- **Endpoint**: `/shipment/:ID`\n- **Header**: `Content-Type: application/json`\n- **Parameter**:\n    - `ID`: ID of the item to update\n- **Body**:\n    ```json\n    {\n        \"status\": \"ON DELIVERY\",\n    }\n    ```\n- **Response Success**\n    ```json\n    {\n        \"status\": true,\n        \"message\": \"Shiftment updated successfully\"\n    }\n    ```\n- **Response Failed**\n    ```json\n    {\n        \"status\": false,\n        \"message\": \"Failed to update shiftment\"\n    }\n    ```\n\n### Delete Shiftment\n- **Method**: DELETE\n- **Endpoint**: `/shipment/:ID`\n- **Header**: `Content-Type: application/json`\n- **Parameter**:\n    - `ID`: ID of the item to delete\n- **Response Success**\n    ```json\n    {\n        \"status\": true,\n        \"message\": \"Shiftment deleted successfully\"\n    }\n    ```\n- **Response Failed**\n    ```json\n    {\n        \"status\": false,\n        \"message\": \"Failed to delete shiftment\"\n    }\n    ```\n\n### Add History\n- **Method**: POST\n- **Endpoint**: `/shipment/:ID/history`\n- **Header**: `Content-Type: form-data`\n- **Parameter**:\n    - `ID`: ID of the item to add history for\n- **Body**:\n    ```json\n    {\n        \"description\": \"Pesanan Diterima\",\n        \"time\": \"2023-10-01T12:00:00Z\",\n        \"image\": \"File\"\n    }\n    ```\n- **Response Success**\n    ```json\n    {\n        \"status\": true,\n        \"message\": \"History added successfully\"\n    }\n    ```\n- **Response Failed**\n    ```json\n    {\n        \"status\": false,\n        \"message\": \"Failed to add history\"\n    }\n    ```\n\n## API Documentation for Receiver/Client\n### SEARCH BY ID\n- **Method**: GET\n- **Endpoint**: `/shipment/:ID`\n- **Header**: `Content-Type: application/json`\n- **Parameter**:\n    - `ID`: ID of the item to search for\n- **Response Success**\n    ```json\n    {\n        \"status\": true,\n        \"data\": {\n            \"id\": \"ID\",\n            \"status\": \"ON DELIVERY\",\n            \"item\": \"Kandang Marmut Besi\",\n            \"expedition\": \"SiCepat\",\n            \"history\": [\n                {\n                    \"description\": \"Pesanan Diterima\",\n                    \"time\": \"2023-10-01T12:00:00Z\",\n                    \"image\": \"https://example.com/image1.jpg\"\n                },\n                {\n                    \"description\": \"Dalam perjalanan ke lokasi tujuan\",\n                    \"time\": \"2023-10-01T12:00:00Z\"\n                },\n                {\n                    \"description\": \"Dalam Proses Sortir\",\n                    \"time\": \"2023-10-01T12:00:00Z\"\n                }\n                {\n                    \"description\": \"Tiba di Gudang\",\n                    \"time\": \"2023-10-01T12:00:00Z\",\n                },\n                {\n                    \"description\": \"Diambil Kurir\",\n                    \"time\": \"2023-10-02T12:00:00Z\"\n                },\n                {\n                    \"description\": \"Dalam Pengemasan\",\n                    \"time\": \"2023-10-03T12:00:00Z\"\n                }\n            ]\n        }\n    }\n    ```\n- **Response Failed**\n    ```json\n    {\n        \"status\": false,\n        \"message\": \"Item not found\"\n    }\n    ```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefuj%2Fbelajar_flutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefuj%2Fbelajar_flutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefuj%2Fbelajar_flutter/lists"}