{"id":15322153,"url":"https://github.com/edmartt/go-rest-exercise","last_synced_at":"2025-03-17T09:13:54.676Z","repository":{"id":103354539,"uuid":"474604256","full_name":"Edmartt/go-rest-exercise","owner":"Edmartt","description":"A simple exercise for learning http with Go","archived":false,"fork":false,"pushed_at":"2022-03-27T10:31:12.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T18:49:20.461Z","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/Edmartt.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":"2022-03-27T10:28:33.000Z","updated_at":"2022-03-27T10:31:16.000Z","dependencies_parsed_at":"2023-07-07T21:15:24.117Z","dependency_job_id":null,"html_url":"https://github.com/Edmartt/go-rest-exercise","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"eb639526d5b5f43ecb58a4e0bb5db58e8fbf858f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edmartt%2Fgo-rest-exercise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edmartt%2Fgo-rest-exercise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edmartt%2Fgo-rest-exercise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edmartt%2Fgo-rest-exercise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Edmartt","download_url":"https://codeload.github.com/Edmartt/go-rest-exercise/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244006398,"owners_count":20382443,"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-01T09:14:23.827Z","updated_at":"2025-03-17T09:13:54.656Z","avatar_url":"https://github.com/Edmartt.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple web service example\n\nA simple exercise for learning about http, rest api in Go language.\n\n## Steps for start this project\n\n```\ngit clone https://github.com/edmartt/go-rest-exercise\n```\n\n```\ngo get github.com/gorilla/mux\n```\n\n```\ngo run main.go\n```\n\n## Request examples\n\n- Get all articles\n\n```\ncurl -i -H \"Content-Type: application/json\" http://localhost:8081/articles \n```\n\n- Get a single article\n\n```\ncurl -i -H \"Content-Type: application/json\" http://localhost:8081/article/1\n```\n\n- Create new article\n\n```\ncurl -i -X POST -H \"Content-Type: application/json\" -d '{\"id\":\"3\", \"title\": \"My new title\", \"desc\": \"My new desc\", \"content\": \"My new content\"}' http://localhost:8081/article\n```\n\n- Update an article\n\n```\n curl -i -X PUT -H \"Content-Type: application/json\" -d '{\"title\":\"alice\", \"desc\": \"fantasy book\", \"content\": \"ilustrations\"}' http://localhost:8081/article/2\n```\n\n- Delete an article\n\n```\ncurl -i -X DELETE -H \"Content-Type: application/json\" http://localhost:8081/article/1\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedmartt%2Fgo-rest-exercise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedmartt%2Fgo-rest-exercise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedmartt%2Fgo-rest-exercise/lists"}