{"id":16908811,"url":"https://github.com/saswatamcode/rest_go","last_synced_at":"2026-04-29T09:07:36.601Z","repository":{"id":103589909,"uuid":"254932786","full_name":"saswatamcode/rest_go","owner":"saswatamcode","description":"A simple RESTful API to create, read, update and delete books built using Go. Uses Mux router.","archived":false,"fork":false,"pushed_at":"2020-04-11T18:47:03.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-12T09:47:21.762Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saswatamcode.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":"2020-04-11T18:44:57.000Z","updated_at":"2020-04-11T18:47:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"31e5a6ef-6b25-490c-88e7-dd8a7152f0c9","html_url":"https://github.com/saswatamcode/rest_go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saswatamcode/rest_go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saswatamcode%2Frest_go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saswatamcode%2Frest_go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saswatamcode%2Frest_go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saswatamcode%2Frest_go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saswatamcode","download_url":"https://codeload.github.com/saswatamcode/rest_go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saswatamcode%2Frest_go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32418259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-10-13T18:53:05.048Z","updated_at":"2026-04-29T09:07:36.585Z","avatar_url":"https://github.com/saswatamcode.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity)\n[![Ask Me Anything !](https://img.shields.io/badge/Ask%20me-anything-1abc9c.svg)](https://GitHub.com/Naereen/ama)\n[![made-for-VSCode](https://img.shields.io/badge/Made%20for-VSCode-1f425f.svg)](https://code.visualstudio.com/)\n[![GitHub forks](https://img.shields.io/github/forks/saswatamcode/rest_go?style=social)](https://GitHub.com/saswatamcode/rest_go/network/)\n[![GitHub stars](https://img.shields.io/github/stars/saswatamcode/rest_go?style=social)](https://GitHub.com/saswatamcode/rest_go/stargazers/)\n[![GitHub issues](https://img.shields.io/github/issues/saswatamcode/rest_go.svg)](https://GitHub.com/saswatamcode/rest_go/issues/)\n[![Open Source Love svg1](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)\n\n# Simple Go REST API\nA simple RESTful API to create, read, update and delete books built using Go. Uses Mux router.\n\n## To Run\n- Clone into repo\n- Run `go get -u github.com/gorilla/mux`\n- Run `go run main.go`\n- Visit `localhost:8000`\n\n## Endpoints\n### Get all books\n- `GET /api/books`\n### Get a single book\n- `GET /api/books/{id}`\n### Delete a book\n- `DELETE /api/books/{id}`\n### Create a book\n- `POST /api/books/`\n```\n{\n   \"isbn\":\"12345\",\n   \"title\":\"SampleBook\",\n   \"author\":{\"firstname\":\"John\",  \"lastname\":\"Doe\"}\n}\n```\n### Update a book\n- `PUT /api/books/{id}`\n```\n{\n   \"isbn\":\"12345\",\n   \"title\":\"SampleBook2\",\n   \"author\":{\"firstname\":\"John\",  \"lastname\":\"Doe\"}\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaswatamcode%2Frest_go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaswatamcode%2Frest_go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaswatamcode%2Frest_go/lists"}