{"id":24877603,"url":"https://github.com/luiggy102/go-blog-api","last_synced_at":"2026-04-08T16:31:51.979Z","repository":{"id":274066195,"uuid":"921774135","full_name":"Luiggy102/go-blog-api","owner":"Luiggy102","description":"📚 REST-API for post management","archived":false,"fork":false,"pushed_at":"2025-02-28T07:04:54.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-18T10:52:24.762Z","etag":null,"topics":["api","api-rest","docker","docker-compose","go","golang","mongodb","rest-api"],"latest_commit_sha":null,"homepage":"","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/Luiggy102.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,"zenodo":null}},"created_at":"2025-01-24T15:37:51.000Z","updated_at":"2025-02-28T07:04:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"47ebab58-e035-45da-b353-f83d3136db23","html_url":"https://github.com/Luiggy102/go-blog-api","commit_stats":null,"previous_names":["luiggy102/go-blog-api"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Luiggy102/go-blog-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luiggy102%2Fgo-blog-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luiggy102%2Fgo-blog-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luiggy102%2Fgo-blog-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luiggy102%2Fgo-blog-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Luiggy102","download_url":"https://codeload.github.com/Luiggy102/go-blog-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luiggy102%2Fgo-blog-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31564878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["api","api-rest","docker","docker-compose","go","golang","mongodb","rest-api"],"created_at":"2025-02-01T09:17:58.452Z","updated_at":"2026-04-08T16:31:51.962Z","avatar_url":"https://github.com/Luiggy102.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-blog-api\n\ngo-blog-api is a **REST API** project for create, read, update and delete posts (CRUD operations). It uses a **Go** backend and a **Mongo** database for storing the data.\nAlso can be run with Docker.\n\n## Base url\n```\nhttp://localhost:8080/\n```\n\n##### Run it with [Go] (Need running MongoDB with a db called *go_blog*).\n```\ngit clone https://github.com/Luiggy102/go-blog-api.git\ncd go-blog-api\ngo run main.go\n```\n\n##### Run it with [Docker]\n```\ngit clone https://github.com/Luiggy102/go-blog-api.git\ncd go-blog-api\ndocker compose up\n```\n\n## Endpoints\n`GET /`: Shows a welcome message\n\n`GET /posts`: List the firsts posts\n\n`GET /posts/{id}`: Get the post info by the post ID\n\n`GET /posts?page=2`: Pagination feature to see posts\n\n`POST /posts`: Insert a post in JSON format\nExample:\n```json\n{\n    \"post_title\": \"post title\"\n    \"post_content\": \"sample text\"\n}\n\n```\n`PUT /posts/{id}`: Update the post using the post ID, receive a JSON with the content to be updated\n```json\n{\n    \"post_title\": \"new post title\"\n    \"post_content\": \"update text\"\n}\n```\n\n`DELETE /posts/{id}`: Delete the post using the post ID\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluiggy102%2Fgo-blog-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluiggy102%2Fgo-blog-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluiggy102%2Fgo-blog-api/lists"}