{"id":34176876,"url":"https://github.com/huseyinbuyukdere/gobasicapi","last_synced_at":"2026-05-31T19:32:02.388Z","repository":{"id":143938599,"uuid":"304862518","full_name":"huseyinbuyukdere/gobasicapi","owner":"huseyinbuyukdere","description":"Basic Go Api Structure","archived":false,"fork":false,"pushed_at":"2020-10-18T11:49:40.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-14T14:30:29.480Z","etag":null,"topics":["api","go","sample-project"],"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/huseyinbuyukdere.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}},"created_at":"2020-10-17T11:29:17.000Z","updated_at":"2023-03-07T10:16:51.000Z","dependencies_parsed_at":"2024-01-29T06:12:40.007Z","dependency_job_id":"42de27e2-7e57-4cbf-9d11-c00d9ecb30d1","html_url":"https://github.com/huseyinbuyukdere/gobasicapi","commit_stats":null,"previous_names":["huseyinbuyukdere/gobasicwebservice"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/huseyinbuyukdere/gobasicapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huseyinbuyukdere%2Fgobasicapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huseyinbuyukdere%2Fgobasicapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huseyinbuyukdere%2Fgobasicapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huseyinbuyukdere%2Fgobasicapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huseyinbuyukdere","download_url":"https://codeload.github.com/huseyinbuyukdere/gobasicapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huseyinbuyukdere%2Fgobasicapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33746507,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","go","sample-project"],"created_at":"2025-12-15T12:59:04.776Z","updated_at":"2026-05-31T19:32:02.383Z","avatar_url":"https://github.com/huseyinbuyukdere.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Basic Go Api Structure\n![gopherbadger-tag-do-not-edit](https://img.shields.io/badge/Go%20Coverage-98.8%25-brightgreen.svg?longCache=true\u0026style=flat)\n\nIt provides you basic api structure for development.\n\n## Development\n\nYou can add your api to pkg/api folder and register api to service in main.go file like below.\n\nIf you want authorization by JWT you can set \"IsPublic\" flag as false but you need to modify login api for verify credentials. \n\n```bash\nvar routes = []models.Route{\n\tmodels.Route{HandlerFunction: api.Login, Path: \"/login\", MethodName: \"POST\", IsPublic: true},\n\tmodels.Route{HandlerFunction: api.VerifyTest, Path: \"/myNewApi\", MethodName: \"POST\", IsPublic: false},\n}\n```\n\nIt includes logging middleware. Logging middleware is logging all requests to log file which seperated by date.\n\n## Run\n\nYou can run the service with the following command.\n\nYou need to set your service variables in .env file before run\n\nIn cmd folder\n\n```bash\ngo run main.go\n```\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuseyinbuyukdere%2Fgobasicapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuseyinbuyukdere%2Fgobasicapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuseyinbuyukdere%2Fgobasicapi/lists"}