{"id":19541551,"url":"https://github.com/genesisblock3301/full_featured_golang_app","last_synced_at":"2025-07-27T23:40:48.316Z","repository":{"id":117979488,"uuid":"486531123","full_name":"GenesisBlock3301/full_featured_golang_app","owner":"GenesisBlock3301","description":"Full featured gin framework's based app. Database relation, jwt based authentication are available here.","archived":false,"fork":false,"pushed_at":"2022-05-17T09:32:09.000Z","size":438,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-26T05:19:15.352Z","etag":null,"topics":["gin-framework","golang","gorm-orm","jwt-go"],"latest_commit_sha":null,"homepage":"","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/GenesisBlock3301.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":"2022-04-28T09:36:09.000Z","updated_at":"2022-04-28T10:47:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"c4afbc41-d90f-4a7c-8269-ea3044f1f5ba","html_url":"https://github.com/GenesisBlock3301/full_featured_golang_app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GenesisBlock3301/full_featured_golang_app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenesisBlock3301%2Ffull_featured_golang_app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenesisBlock3301%2Ffull_featured_golang_app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenesisBlock3301%2Ffull_featured_golang_app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenesisBlock3301%2Ffull_featured_golang_app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GenesisBlock3301","download_url":"https://codeload.github.com/GenesisBlock3301/full_featured_golang_app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenesisBlock3301%2Ffull_featured_golang_app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265443550,"owners_count":23766411,"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":["gin-framework","golang","gorm-orm","jwt-go"],"created_at":"2024-11-11T03:11:02.989Z","updated_at":"2025-07-15T15:40:18.001Z","avatar_url":"https://github.com/GenesisBlock3301.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Full eatured Golang App\n\n### End points:\n---\n\u003e\u003e User Authenticity: \n1. POST http://localhost:8080/api/v1/auth/register \n\ninput:\n```json\n{\n\t\"name\":\"nase\",\n\t\"email\":\"nas@gmail.com\",\n\t\"password\":\"nas12345\"\n}\n```\nResponse:\n```json\n{\n    \"id\": 1,\n    \"name\": \"nase\",\n    \"email\": \"nas@gmail.com\",\n    \"Password\": \"$2a$04$wJcYp.0ogKNJqniCKfKMRuxsJ4vPfnV275goiHfYvBYUBkZk8QH4K\"\n}\n```\n2. POST http://localhost:8080/api/v1/auth/login\n\nInput:\n```json\n{\n\t\"name\":\"nase\",\n\t\"email\":\"nas@gmail.com\",\n\t\"password\":\"nas12345\"\n}\n```\nResponse:\n```json\n{\n    \"refresh_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdXRob3JpemVkIjp0cnVlLCJleHAiOjE2NTExNDc2NTEsInVzZXJfaWQiOjF9.WP8lJkZJFXD9fE4UFPcC68nXdCKAqPe6P83khvaTEhM\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdXRob3JpemVkIjp0cnVlLCJleHAiOjE2NTExNDQwNTEsInVzZXJfaWQiOjF9.Ec45_KMIN5HU9sgUWedQgRGCNz5QjJDLHMwmH3aijMg\"\n}\n```\n3. GET http://localhost:8080/api/v1/auth/user\n\nResponse:\n```json\n{\n    \"data\": {\n        \"id\": 1,\n        \"name\": \"nase\",\n        \"email\": \"nas@gmail.com\"\n    },\n    \"message\": \"success\"\n}\n```\n\n\u003e\u003e Category\n1. GET http://localhost:8080/api/v1/categories\n\nResponse:\n```json\n[\n    {\n        \"id\": 1,\n        \"name\": \"Drama\"\n    },\n    {\n        \"id\": 2,\n        \"name\": \"Advanture\"\n    }\n]\n```\n2. POST http://localhost:8080/api/v1/categories/\n\nInput:\n```json\n{\n\t\"name\":\"Romantic\"\n}\n```\nResponse:\n```json\n[\n    {\n        \"id\": 1,\n        \"name\": \"Romantic\"\n    },\n    {\n        \"id\": 2,\n        \"name\": \"Advanture\"\n    }\n]\n```\n3. PUT http://localhost:8080/api/v1/categories/:categorId\n\ninput:\n```json\n{\n\t\"name\":\"Drama\"\n}\n```\nResponse:\n```\n{\n    \"id\": 1,\n    \"name\": \"Drama\"\n}\n```\n4. Delete http://localhost:8080/api/v1/categories/:categorId\n\n\u003e\u003e Posts\n1. GET http://localhost:8080/api/v1/posts\n2. POST http://localhost:8080/api/v1/posts\n\nInput:\n```json\n{\n    \"id\": 1,\n    \"title\": \" this is fourth title--\",\n    \"description\": \"this is description---\",\n    \"image\": \"media/images/Screenshot from 2022-04-27 13-50-20.png\",\n    \"category\": 1\n}\n```\nResponse:\n```json\n{\n    \"id\": 1,\n    \"title\": \" this is fourth title--\",\n    \"description\": \"this is description---\",\n    \"image\": \"media/images/Screenshot from 2022-04-27 13-50-20.png\",\n    \"created_at\": \"2022-04-28T16:25:12.45206321+06:00\",\n    \"updated_at\": \"2022-04-28T16:25:12.45206321+06:00\",\n    \"category\": {\n        \"id\": 2,\n        \"name\": \"Advanture\"\n    }\n}\n```\n3. GET http://localhost:8080/api/v1/posts/:postId\n\nResponse:\n```json\n{\n    \"id\": 1,\n    \"title\": \" this is fourth title--\",\n    \"description\": \"this is description---\",\n    \"image\": \"media/images/Screenshot from 2022-04-27 13-50-20.png\",\n    \"created_at\": \"2022-04-28T16:25:12.45206321+06:00\",\n    \"updated_at\": \"2022-04-28T16:25:12.45206321+06:00\",\n    \"category\": {\n        \"id\": 2,\n        \"name\": \"Advanture\"\n    }\n}\n```\n4. PUT http://localhost:8080/api/v1/posts/:postId\n\nInput:\n```json\n{\n    \"title\": \" this is fourth title\",\n    \"description\": \"this is description---\",\n    \"image\": \"media/images/Screenshot from 2022-04-27 13-50-20.png\",\n    \"category\": 1\n}\n```\nResponse:\n```json\n{\n    \"id\": 1,\n    \"title\": \" this is fourth title--\",\n    \"description\": \"this is description---\",\n    \"image\": \"media/images/Screenshot from 2022-04-27 13-50-20.png\",\n    \"created_at\": \"2022-04-28T16:25:12.45206321+06:00\",\n    \"updated_at\": \"2022-04-28T16:25:12.45206321+06:00\",\n    \"category\": {\n        \"id\": 2,\n        \"name\": \"Advanture\"\n    }\n}\n```\n5. DELETE http://localhost:8080/api/v1/posts/:postId","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenesisblock3301%2Ffull_featured_golang_app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgenesisblock3301%2Ffull_featured_golang_app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenesisblock3301%2Ffull_featured_golang_app/lists"}