{"id":16135674,"url":"https://github.com/thevickypedia/api-file-handler","last_synced_at":"2026-04-29T01:34:10.264Z","repository":{"id":200214857,"uuid":"705052028","full_name":"thevickypedia/api-file-handler","owner":"thevickypedia","description":"Upload and download files using Spring based API","archived":false,"fork":false,"pushed_at":"2023-11-14T02:22:32.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-06T16:31:58.633Z","etag":null,"topics":["api-rest","file-sharing","filesystem","java-8","springboot"],"latest_commit_sha":null,"homepage":"","language":"Java","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/thevickypedia.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"roadmap":null,"authors":null}},"created_at":"2023-10-14T22:34:36.000Z","updated_at":"2024-04-05T22:16:01.000Z","dependencies_parsed_at":"2023-12-17T09:44:15.548Z","dependency_job_id":null,"html_url":"https://github.com/thevickypedia/api-file-handler","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"448106febe2f374e9f80ecb1715681a49a78f862"},"previous_names":["thevickypedia/api-file-handler"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thevickypedia/api-file-handler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thevickypedia%2Fapi-file-handler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thevickypedia%2Fapi-file-handler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thevickypedia%2Fapi-file-handler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thevickypedia%2Fapi-file-handler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thevickypedia","download_url":"https://codeload.github.com/thevickypedia/api-file-handler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thevickypedia%2Fapi-file-handler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32407164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"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","file-sharing","filesystem","java-8","springboot"],"created_at":"2024-10-09T23:08:55.791Z","updated_at":"2026-04-29T01:34:10.249Z","avatar_url":"https://github.com/thevickypedia.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![made-with-java](https://raw.githubusercontent.com/forthebadge/for-the-badge/master/src/images/badges/made-with-java.svg)\n\n[![powered-by-spring](https://img.shields.io/badge/Powered%20by-spring-blue?style=for-the-badge\u0026logo=spring)](https://spring.io/)\n\n![Platform](https://img.shields.io/badge/Platform-Linux|MacOS|Windows-1f425f.svg)\n\n![Code coverage](https://img.shields.io/github/languages/top/thevickypedia/api-file-handler)\n![License](https://img.shields.io/github/license/thevickypedia/api-file-handler)\n\n# API File Handler\nUpload and download files using Spring based API\n\n## Env Variables\n- **MAX_SIZE** - Maximum file size to be allowed.\n- **UPLOADS** - Directory name to upload files into. _Creates a new one if not present already_\n- **SOURCE** - Directory to download files from. _Creates a new one if not present already_\n- **TOKEN** - Authentication token. _Required argument with `8` to `120` character limit_\n- **PORT** - Port number to host the API. _Defaults to `8080`_\n\u003e Environment variables can be loaded from a `.env` file.\n\n## Usage\n### Health Status\n```shell\ncurl --location 'http://localhost:8080/health' \\\n--header 'Authorization: MyToken@2023'\n```\n\n### Upload File\n**Fail on existing file**\n```shell\ncurl --location 'http://localhost:8080/upload-file' \\\n--header 'Authorization: MyToken@2023' \\\n--form 'file=@\"~/sample.txt\"'\n```\n**Overwrite existing file**\n```shell\ncurl --location 'http://localhost:8080/upload-file?overwrite=true' \\\n--header 'Authorization: MyToken@2023' \\\n--form 'file=@\"~/sample.txt\"'\n```\n\n### Download File\n```shell\ncurl --location 'http://localhost:8080/download-file?fileName=sample.docx' \\\n--header 'Authorization: MyToken@2023'\n```\n\n### List Files\n```shell\ncurl --location 'http://localhost:8080/list-files' \\\n--header 'Authorization: MyToken@2023'\n```\n\n## License \u0026 copyright\n\u0026copy; Vignesh Rao\n\nLicensed under the [MIT License](https://github.com/thevickypedia/api-file-handler/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthevickypedia%2Fapi-file-handler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthevickypedia%2Fapi-file-handler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthevickypedia%2Fapi-file-handler/lists"}