{"id":16801404,"url":"https://github.com/pippolo84/yaus","last_synced_at":"2025-03-17T05:42:36.192Z","repository":{"id":57573104,"uuid":"350830007","full_name":"pippolo84/yaus","owner":"pippolo84","description":"A simple URL shortener to demonstrate Go services patterns","archived":false,"fork":false,"pushed_at":"2021-03-24T22:11:05.000Z","size":289,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T15:17:04.360Z","etag":null,"topics":["go","golab","http","service"],"latest_commit_sha":null,"homepage":"https://golab.io/en/agenda/your-first-go-project/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pippolo84.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}},"created_at":"2021-03-23T19:17:12.000Z","updated_at":"2022-11-02T01:56:10.000Z","dependencies_parsed_at":"2022-09-18T04:10:23.550Z","dependency_job_id":null,"html_url":"https://github.com/pippolo84/yaus","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pippolo84%2Fyaus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pippolo84%2Fyaus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pippolo84%2Fyaus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pippolo84%2Fyaus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pippolo84","download_url":"https://codeload.github.com/pippolo84/yaus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243982141,"owners_count":20378605,"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","golab","http","service"],"created_at":"2024-10-13T09:36:43.783Z","updated_at":"2025-03-17T05:42:36.161Z","avatar_url":"https://github.com/pippolo84.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yaus\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/pippolo84/yaus)](https://goreportcard.com/report/github.com/pippolo84/yaus)\n[![Go Reference](https://pkg.go.dev/badge/github.com/Pippolo84/yaus.svg)](https://pkg.go.dev/github.com/Pippolo84/yaus)\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg widht=\"640\" height=\"320\" src=\"assets/logo.jpg\"\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\nyaus (**Y**et **A**nother **U**RL **S**hortener) is a simple URL shortener used to demonstrate some handy patterns to develop Go services.\n\nIt currently offers two endpoints:\n\n1) `/shorten`: to get a \"shortened\" hash\n\n```\ncurl --request POST \\\n  --url http://localhost:8080/shorten \\\n  --header 'Content-Type: application/json' \\\n  --data '{\n\t\"url\": \"http://www.google.it\"\n}'\n{\"hash\":\"dda15434615ed3debc02fef8bbea9236\"}\n```\n\n2) `/{hash}`: to get the proper redirect from the given \"shortened\" URL\n\n```\n$ curl --request GET \\\n  --url http://localhost:8080/dda15434615ed3debc02fef8bbea9236\n\u003ca href=\"http://www.google.it\"\u003eTemporary Redirect\u003c/a\u003e.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpippolo84%2Fyaus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpippolo84%2Fyaus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpippolo84%2Fyaus/lists"}