{"id":19293750,"url":"https://github.com/yogyy/go-rest-api-v1.22.3","last_synced_at":"2026-05-02T05:40:57.203Z","repository":{"id":240272254,"uuid":"802174585","full_name":"yogyy/go-rest-api-v1.22.3","owner":"yogyy","description":"Restful API using go","archived":false,"fork":false,"pushed_at":"2024-05-23T12:24:44.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-05T20:42:09.086Z","etag":null,"topics":["bcrypt","go","jwt","postgresql"],"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/yogyy.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":"2024-05-17T17:00:54.000Z","updated_at":"2024-05-23T12:24:48.000Z","dependencies_parsed_at":"2024-11-09T22:36:08.699Z","dependency_job_id":"f385d97f-f2f0-4131-be4b-da9608221d3c","html_url":"https://github.com/yogyy/go-rest-api-v1.22.3","commit_stats":null,"previous_names":["yogyy/go-rest-api-v1.22.3"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yogyy%2Fgo-rest-api-v1.22.3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yogyy%2Fgo-rest-api-v1.22.3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yogyy%2Fgo-rest-api-v1.22.3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yogyy%2Fgo-rest-api-v1.22.3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yogyy","download_url":"https://codeload.github.com/yogyy/go-rest-api-v1.22.3/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240396944,"owners_count":19794759,"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":["bcrypt","go","jwt","postgresql"],"created_at":"2024-11-09T22:36:00.530Z","updated_at":"2026-05-02T05:40:52.166Z","avatar_url":"https://github.com/yogyy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Learning Golang with Restful API\n\nto run the Server use\n\n```bash\ngo run *.go\n```\n\n```bash\nhttp://127.0.0.1:8080\n```\n\n## Routes\n\nusing prefix `/api/v1/`\n\n### Register\n\n```json\nPOST /auth/register\n\n{\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"password\": \"6 charactest long\"\n}\n```\n\n### Login\n\n```json\nPOST /auth/login\n\n{\n  \"number\": number,\n  \"password\": \"\"\n}\n```\n\n### Get all accounts\n\n```json\nGET /account\n```\n\n### Get account by id\n\n- This endpoint requires a valid JSON Web Token (JWT) for authorization.\n- Each JWT token is unique and grants access only to the account associated with the token itself.\n\nneed jwt token, each token only available to get account by token\n\n```json\nGET /account/12345 HTTP/1.1\nAuthorization: Bearer \u003cyour_jwt_token_here\u003e\n```\n\n### Delete account by id\n\n```json\nDELETE /account/{id}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyogyy%2Fgo-rest-api-v1.22.3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyogyy%2Fgo-rest-api-v1.22.3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyogyy%2Fgo-rest-api-v1.22.3/lists"}