{"id":17954055,"url":"https://github.com/fatihbaltaci/restapi-golang","last_synced_at":"2025-06-18T06:37:40.585Z","repository":{"id":193293922,"uuid":"83614897","full_name":"fatihbaltaci/RESTapi-Golang","owner":"fatihbaltaci","description":"RESTapi project with Go programming language","archived":false,"fork":false,"pushed_at":"2017-03-02T00:55:25.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T16:41:48.586Z","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/fatihbaltaci.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}},"created_at":"2017-03-02T00:15:12.000Z","updated_at":"2017-03-02T00:53:08.000Z","dependencies_parsed_at":"2023-09-07T15:24:07.710Z","dependency_job_id":null,"html_url":"https://github.com/fatihbaltaci/RESTapi-Golang","commit_stats":null,"previous_names":["fatihbaltaci/restapi-golang"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fatihbaltaci/RESTapi-Golang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatihbaltaci%2FRESTapi-Golang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatihbaltaci%2FRESTapi-Golang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatihbaltaci%2FRESTapi-Golang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatihbaltaci%2FRESTapi-Golang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fatihbaltaci","download_url":"https://codeload.github.com/fatihbaltaci/RESTapi-Golang/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatihbaltaci%2FRESTapi-Golang/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260506668,"owners_count":23019419,"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-29T10:08:34.787Z","updated_at":"2025-06-18T06:37:35.575Z","avatar_url":"https://github.com/fatihbaltaci.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RESTapi-Golang\nRESTapi project with Go programming language\n\n\u003ch2\u003eRouters\u003c/h2\u003e\n* \u003cb\u003eGET\u003c/b\u003e a event detail - /event/:id\n* \u003cb\u003eGET\u003c/b\u003e all events - /events\n* \u003cb\u003ePOST\u003c/b\u003e new event details - /event\n\n\u003ch2\u003eSteps\u003c/h2\u003e\n\n\u003cb\u003e1. Create Database and Tables\u003c/b\u003e\n\nRun `RESTapi_Go_Database.sql` file in MySQL database. EER Diagram of this database is shown below.\n\n![alt tag](https://cloud.githubusercontent.com/assets/10353650/23487538/70191d5a-feef-11e6-8840-a39a911ea30d.png)\n\n\u003cb\u003e2. Get all the dependencies\u003c/b\u003e\n\nIn the `main.go` file there are 2 imports from github. To get the dependencies:\n\n```\ngo get\n```\n\n\u003cb\u003e3. Build and Run\u003c/b\u003e\n\nFirst of all, change username, password for MySQL connection on 17th line in main.go \n\n```\ngo build main.go\nmain\n```\n![alt tag](https://cloud.githubusercontent.com/assets/10353650/23487725/abf23c5c-fef0-11e6-9fee-bebb08c5b35f.PNG)\n\n\u003cb\u003e4. Test\u003c/b\u003e\n\n```\nGET localhost:3001/events\n```\n![5](https://cloud.githubusercontent.com/assets/10353650/23487972/5090536a-fef2-11e6-8394-cc78a72fae68.PNG)\n\n```\nGET localhost:3001/event/5\n```\n![6](https://cloud.githubusercontent.com/assets/10353650/23487973/50b66bf4-fef2-11e6-80da-915139cf8794.PNG)\n\n```\nPOST localhost:3001/event\n```\n![7](https://cloud.githubusercontent.com/assets/10353650/23487974/50ca9200-fef2-11e6-8cbd-d1bd790b5c0f.PNG)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffatihbaltaci%2Frestapi-golang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffatihbaltaci%2Frestapi-golang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffatihbaltaci%2Frestapi-golang/lists"}