{"id":29293531,"url":"https://github.com/faysal-backend-developer/microservice","last_synced_at":"2025-07-21T03:02:18.295Z","repository":{"id":302644179,"uuid":"1012096183","full_name":"faysal-backend-developer/microservice","owner":"faysal-backend-developer","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-03T12:46:24.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-03T13:46:19.283Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/faysal-backend-developer.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,"zenodo":null}},"created_at":"2025-07-01T20:03:23.000Z","updated_at":"2025-07-03T12:46:27.000Z","dependencies_parsed_at":"2025-07-03T13:46:23.265Z","dependency_job_id":"9bdfca79-d4f1-4747-82d8-f29ae8cfa633","html_url":"https://github.com/faysal-backend-developer/microservice","commit_stats":null,"previous_names":["faysal-backend-developer/microservice"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/faysal-backend-developer/microservice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faysal-backend-developer%2Fmicroservice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faysal-backend-developer%2Fmicroservice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faysal-backend-developer%2Fmicroservice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faysal-backend-developer%2Fmicroservice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/faysal-backend-developer","download_url":"https://codeload.github.com/faysal-backend-developer/microservice/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faysal-backend-developer%2Fmicroservice/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266231762,"owners_count":23896472,"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":"2025-07-06T11:04:42.970Z","updated_at":"2025-07-21T03:02:17.818Z","avatar_url":"https://github.com/faysal-backend-developer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📡 API Documentation\n\nThis document outlines the available API endpoints for the **[E-Commerce]** service.\n\n## 📁 Base URL : http://localhost:8080/api/v1\n\n---\n\n## 🔐 Authentication\n\nAll endpoints (unless marked as `Public`) require authentication using **Bearer Token** in the `Authorization` header:\n\n---\n\n## 🗂️ Endpoints Overview\n\n| Method | Endpoint                | Description             | Auth Required |\n| ------ | ----------------------- | ----------------------- | ------------- |\n| GET    | /user/                  | Get all users           | ✅            |\n| POST   | /user/signup            | Create new user account | ❌            |\n| POST   | /user/login             | User login              | ❌            |\n| POST   | /user/verified          | User login              | ❌            |\n| POST   | /user/verifying_account | User login              | ❌            |\n| POST   | /user/login             | User login              | ❌            |\n| GET    | /product/               | Get all products        |               |\n| POST   | /product/               | Create a new product    | ✅ (Admin)    |\n| PUT    | /product/:id            | Update a product        | ✅ (Admin)    |\n| DELETE | /products/:id           | Delete a product        | ✅ (Admin)    |\n\n---\n\n## 🧑‍💻 API Endpoints Details\n\n### 🔐 Auth Endpoints\n\n#### `POST /auth/signup`\n\nRegister a new user.\n\n- **Body Parameters:**\n\n```json\n{\n  \"name\": \"John Doe\",\n  \"email\": \"john@example.com\",\n  \"password\": \"yourpassword\"\n}\n```\n\nEndpoints\n\nAuth :\n\n## url :http://localhost:8080/api/v1/user/signul\n\nmethod: **post**\n\nsimpleData:\n\n```\n{\n\"name\": \"exampleName\",\n\"email\": \"exampleEmail\",\n\"password\": \"123456\" (min 6 digit)\n}\n```\n\n# Auth :\n\n## Signup\n\n## url : http://localhost:8080/user/signup\n\n**Method: post** \u003cbr\u003e\nSimple Data :\n\n```\n{\n\"name\": \"exampleName\",\n\"email\": \"exampleEmail\",\n\"password\": \"123456\" (min 6 digit)\n}\n```\n\nResponse :\n\n```\n{\n    \"success\": true,\n    \"message\": \"User SignUp Successfully\",\n    \"data\": {\n        \"email\": \"faysalhasan12@gmail.com\",\n        \"name\": \"Faysal\",\n        \"role\": \"USER\",\n        \"status\": \"PENDING\",\n        \"verified\": false,\n        \"id\": \"3ef9c10f-6cf5-46f0-ba7b-81044d622407\"\n    },\n    \"meta\": null\n}\n```\n\n---\n\n## Account Verifying\n\n## url : http://localhost:8080/user/verifying_account\n\n**Method : Post** \u003cbr\u003e\nSimple Data:\n\n```\nBody:\n{\n  \"code\": \"123456\" (Check Mail and Get Code)\n}\nHeaders: email : example@gmail.com\n```\n\nResponse:\n\n```\n{\n    \"success\": true,\n    \"message\": \"Account Verify Successful\",\n    \"data\": {\n        \"message\": \"Account Verified Successful\"\n    },\n    \"meta\": null\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaysal-backend-developer%2Fmicroservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaysal-backend-developer%2Fmicroservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaysal-backend-developer%2Fmicroservice/lists"}