{"id":28282538,"url":"https://github.com/defuj/shipment-app","last_synced_at":"2025-06-17T06:31:40.914Z","repository":{"id":291331724,"uuid":"977176721","full_name":"defuj/shipment-app","owner":"defuj","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-19T07:53:51.000Z","size":1111,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-19T08:48:25.538Z","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":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-05-03T15:44:51.000Z","updated_at":"2025-05-19T07:53:54.000Z","dependencies_parsed_at":"2025-05-19T08:45:00.658Z","dependency_job_id":null,"html_url":"https://github.com/defuj/shipment-app","commit_stats":null,"previous_names":["defuj/shipment-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/defuj/shipment-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defuj%2Fshipment-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defuj%2Fshipment-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defuj%2Fshipment-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defuj%2Fshipment-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/defuj","download_url":"https://codeload.github.com/defuj/shipment-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defuj%2Fshipment-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260306796,"owners_count":22989663,"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":"2025-05-21T15:19:04.938Z","updated_at":"2025-06-17T06:31:40.900Z","avatar_url":"https://github.com/defuj.png","language":"Dart","readme":"# SHIPMENT APP\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                \"id\": \"ID\",\n                \"status\": \"CANCELED\",\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%2Fshipment-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefuj%2Fshipment-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefuj%2Fshipment-app/lists"}