{"id":21656862,"url":"https://github.com/mohan-kumar-0/url-shortener","last_synced_at":"2026-04-15T08:33:49.470Z","repository":{"id":264499822,"uuid":"893507042","full_name":"mohan-kumar-0/url-shortener","owner":"mohan-kumar-0","description":"My implementation of roadmap.sh url shortener: https://roadmap.sh/projects/url-shortening-service","archived":false,"fork":false,"pushed_at":"2024-11-24T18:00:57.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T05:17:46.067Z","etag":null,"topics":["apis","backend","restful-api","roadmaps","springboot","url-shortener"],"latest_commit_sha":null,"homepage":"https://roadmap.sh/projects/url-shortening-service","language":"Java","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/mohan-kumar-0.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":"2024-11-24T16:14:10.000Z","updated_at":"2024-11-24T18:01:01.000Z","dependencies_parsed_at":"2024-11-24T19:17:43.409Z","dependency_job_id":"30099009-b227-4e30-b5e7-70b6e7a8a61c","html_url":"https://github.com/mohan-kumar-0/url-shortener","commit_stats":null,"previous_names":["mohan-kumar-0/url-shortener"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mohan-kumar-0/url-shortener","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohan-kumar-0%2Furl-shortener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohan-kumar-0%2Furl-shortener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohan-kumar-0%2Furl-shortener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohan-kumar-0%2Furl-shortener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohan-kumar-0","download_url":"https://codeload.github.com/mohan-kumar-0/url-shortener/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohan-kumar-0%2Furl-shortener/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31833830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T07:17:56.427Z","status":"ssl_error","status_checked_at":"2026-04-15T07:17:30.007Z","response_time":63,"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":["apis","backend","restful-api","roadmaps","springboot","url-shortener"],"created_at":"2024-11-25T09:17:53.412Z","updated_at":"2026-04-15T08:33:49.440Z","avatar_url":"https://github.com/mohan-kumar-0.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"```markdown\n# URL Shortener Service\n\nMy implementation of https://roadmap.sh/projects/url-shortening-service\nA simple URL shortener service built with Spring Boot and Maven. This service allows you to shorten URLs, retrieve their stats, and manage them with basic CRUD operations.\n\n## Features\n\n- Shorten a URL\n- Retrieve URL stats\n- Update or delete a shortened URL\n- Increment access count on URL retrieval\n\n## Endpoints\n\n### POST /shorten\n\nShortens a given URL.\n\n**Request Body**:\n```json\n{\n  \"url\": \"https://www.example.com/some/long/url\"\n}\n```\n\n**Response**:\n```json\n{\n  \"id\": \"1\",\n  \"url\": \"https://www.example.com/some/long/url\",\n  \"shortCode\": \"abc123\",\n  \"createdAt\": \"2021-09-01T12:00:00Z\",\n  \"updatedAt\": \"2021-09-01T12:00:00Z\",\n  \"accessCount\": 10\n}\n```\n\n### GET /shorten/{shortCode}/stats\n\nReturns the stats for a shortened URL.\n\n**Request**:\n```plaintext\nGET /shorten/abc123/stats\n```\n\n**Response**:\n```json\n{\n  \"id\": \"1\",\n  \"url\": \"https://www.example.com/some/long/url\",\n  \"shortCode\": \"abc123\",\n  \"createdAt\": \"2021-09-01T12:00:00Z\",\n  \"updatedAt\": \"2021-09-01T12:00:00Z\",\n  \"accessCount\": 10\n}\n```\n\n### PUT /shorten/{shortCode}\n\nUpdate the URL associated with a shortened code.\n\n**Request Body**:\n```json\n{\n  \"url\": \"https://www.new-url.com\"\n}\n```\n\n**Response**:\n```json\n{\n  \"id\": \"1\",\n  \"url\": \"https://www.new-url.com\",\n  \"shortCode\": \"abc123\",\n  \"createdAt\": \"2021-09-01T12:00:00Z\",\n  \"updatedAt\": \"2021-09-02T12:00:00Z\",\n  \"accessCount\": 10\n}\n```\n\n### DELETE /shorten/{shortCode}\n\nDelete the shortened URL.\n\n**Response**:\n- `204 No Content` if the URL was successfully deleted.\n- `404 Not Found` if the shortened URL does not exist.\n\n## Technologies Used\n\n- Spring Boot\n- SQLite\n- Maven\n\n## How to Run\n\n1. Clone the repository.\n2. Ensure you have Java 11+ installed.\n3. Run `mvn spring-boot:run`.\n4. The service will be available at `http://localhost:8080`.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohan-kumar-0%2Furl-shortener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohan-kumar-0%2Furl-shortener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohan-kumar-0%2Furl-shortener/lists"}