{"id":16092325,"url":"https://github.com/alecthomas/rest","last_synced_at":"2025-04-05T18:47:18.876Z","repository":{"id":66600223,"uuid":"142805083","full_name":"alecthomas/rest","owner":"alecthomas","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-01T08:43:35.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-18T17:05:46.980Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/alecthomas.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":"2018-07-30T00:14:32.000Z","updated_at":"2019-06-28T04:49:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"a6026643-b049-4fef-92f1-c28b326cbfa4","html_url":"https://github.com/alecthomas/rest","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/alecthomas%2Frest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecthomas%2Frest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecthomas%2Frest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecthomas%2Frest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alecthomas","download_url":"https://codeload.github.com/alecthomas/rest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247385703,"owners_count":20930600,"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":"2024-10-09T16:07:04.755Z","updated_at":"2025-04-05T18:47:18.842Z","avatar_url":"https://github.com/alecthomas.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# An opinionated API for building RESTful services\n\n\n```go\ntype todoService struct {}\nfunc (t *todoService) CreateTodo(todo *Todo) error { return nil }\nfunc (t *todoService) DeleteTodo(id string) (*Todo, error) { return nil, nil }\nfunc (t *todoService) AddChild(parent string, todo *Todo) error { return nil }\n\ntodo := \u0026todoService{}\n\napi := rest.New()\napi.Post(\"/todo\", todo.CreateTodo).\napi.Delete(\"/todo/:id\", todo.DeleteTodo).\napi.Post(\"/todo/:id/children\", todo.AddChild).\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falecthomas%2Frest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falecthomas%2Frest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falecthomas%2Frest/lists"}