{"id":15776555,"url":"https://github.com/asrvd/gosh","last_synced_at":"2025-03-31T15:24:45.459Z","repository":{"id":107099514,"uuid":"504756969","full_name":"asrvd/gosh","owner":"asrvd","description":"✂ simple API to shorten links made using golang.","archived":false,"fork":false,"pushed_at":"2022-06-18T09:11:15.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-05T17:22:21.089Z","etag":null,"topics":["go-api","golang","shortener","url-shortener"],"latest_commit_sha":null,"homepage":"https://u.gosh.ga/","language":"Go","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/asrvd.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-18T05:51:56.000Z","updated_at":"2022-06-18T18:06:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"35a09a6c-6ffa-4632-9e48-b48ea385705b","html_url":"https://github.com/asrvd/gosh","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asrvd%2Fgosh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asrvd%2Fgosh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asrvd%2Fgosh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asrvd%2Fgosh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asrvd","download_url":"https://codeload.github.com/asrvd/gosh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246489494,"owners_count":20785882,"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":["go-api","golang","shortener","url-shortener"],"created_at":"2024-10-04T17:22:18.667Z","updated_at":"2025-03-31T15:24:45.432Z","avatar_url":"https://github.com/asrvd.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"**gosh**\\\ngosh is a simple yet fast API to shorten URLs made using go-lang.\n\n**packages used** --\\\n[gorm.io/gorm](https://gorm.io/) \u0026 [gorilla/mux](https://github.com/gorilla/mux/)\n\n**get started** --\\\nsend a POST request to https://u.gosh.ga/api/create with a JSON body like this:\n\n```json\n{\n    \"slug\": \"my_unique_slug\",\n    \"target_url\": \"https://foo-bar.com/\"\n}\n```\n\n**api methods** --\\\n`GET` - `https://u.gosh.ga/api/[slug]` - return the data for given slug.\\\n`POST` - `https://u.gosh.ga/api/create` - create a new slug data.\\\n`GET` - `https://u.gosh.ga/[slug]` - redirects to target_url for given slug.\n\n**example** --\\\nhttps://u.gosh.ga/ashish redirects to https://github.com/asheeeshh i.e. my github profile!\n\nIf you send a GET request to https://u.gosh.ga/api/get/ashish. it will return this --\\\n\n```json\n{\n    \"slug\": \"ashish\",\n    \"target_url\": \"https://github.com/asheeeshh\"\n}\n```\n\n**note** --\\\nthe project is still a WIP, bugs and issues are expected, please please please let me know if you come across one! i'll also be making a frontend for this project which would soon be live at https://gosh.ga/ allowing everyone to shorten URLs without making api requests :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasrvd%2Fgosh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasrvd%2Fgosh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasrvd%2Fgosh/lists"}