{"id":25406287,"url":"https://github.com/shlmt/cv-site-github","last_synced_at":"2025-10-08T07:18:25.970Z","repository":{"id":276795226,"uuid":"929837863","full_name":"shlmt/cv-site-github","owner":"shlmt","description":"API for retrieving information from GitHub","archived":false,"fork":false,"pushed_at":"2025-02-10T21:16:52.000Z","size":1856,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T23:28:42.797Z","etag":null,"topics":["cache","decorator","github-octokit","net-core","rest-api","scrutor"],"latest_commit_sha":null,"homepage":"","language":"C#","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/shlmt.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-02-09T14:25:33.000Z","updated_at":"2025-02-10T21:16:55.000Z","dependencies_parsed_at":"2025-02-10T14:25:57.169Z","dependency_job_id":"b10e8abf-3abf-4c35-ae73-f6f72533b6f6","html_url":"https://github.com/shlmt/cv-site-github","commit_stats":null,"previous_names":["shlmt/cv-site-github"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shlmt/cv-site-github","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shlmt%2Fcv-site-github","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shlmt%2Fcv-site-github/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shlmt%2Fcv-site-github/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shlmt%2Fcv-site-github/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shlmt","download_url":"https://codeload.github.com/shlmt/cv-site-github/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shlmt%2Fcv-site-github/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278904739,"owners_count":26066137,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"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":["cache","decorator","github-octokit","net-core","rest-api","scrutor"],"created_at":"2025-02-16T05:32:01.474Z","updated_at":"2025-10-08T07:18:25.965Z","avatar_url":"https://github.com/shlmt.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CV Site - GitHub API\n\n## סקירה כללית\nמיועד למפתחים המעוניינים להציג את תיק העבודות שלהם ב-GitHub בקליינט משלהם.\n\nהאפליקציה מתחברת לחשבון ה-GitHub של המשתמש, שולפת מידע על הפרויקטים שלו ומציגה נתונים רלוונטיים. בנוסף, היא מאפשרת חיפוש בכלל ה-repositories הפומביים עם אפשרויות סינון שונות.\n\n## טכנולוגיות בשימוש\n- **.NET Core Web API** – צד השרת.\n- **Octokit.NET** – אינטגרציה עם API של GitHub.\n- **Dependency Injection** – לשיפור מודולריות ותחזוקת הקוד.\n- **Caching (In-Memory עם דפוס Decorator)** – לשיפור ביצועים.\n- **Scrutor** – רישום תלויות אוטומטי עם דקורטורים.\n\n- **ניהול תצורה וסודות (Secrets Management)** – לאבטחת נתוני הזדהות.\n\n## נקודות קצה (API Endpoints)\n### 1. שליפת תיק העבודות (`GetPortfolio`)\n**נתיב:** `GET /api/portfolio`\n- שליפת רשימת ה-repositories של המשתמש.\n- הצגת נתונים כגון:\n  - שפות פיתוח בשימוש.\n  - רשימת ה-topics.\n  - תאריך ה-commit האחרון.\n  - מספר הכוכבים שקיבל ה-repository.\n  - מספר ה-pull requests וה-commits.\n  - קישור לאתר הפרויקט (אם קיים).\n  - קישור לפרויקט בגיטהאב.\n- שימוש במנגנון **Caching** לשיפור ביצועים.\n\n### 2. חיפוש repositories ציבוריים (`SearchRepositories`)\n**נתיב:** `GET /api/search?name={repoName}\u0026language={language}\u0026user={username}`\n- חיפוש repositories ציבוריים ב-GitHub.\n- תמיכה במסננים:\n  - שם repository.\n  - שפת תכנות.\n  - שם משתמש ב-GitHub.\n\n## ארכיטקטורת הקוד\nהפרויקט מחולק לשני חלקים עיקריים:\n1. **שכבת השירות (Service Layer - Class Library)** אחראית לתקשורת עם GitHub דרך Octokit.\n2. **שכבת ה-Web API** מספקת נקודות קצה (REST API).\n\n## אבטחה וניהול אימות\n- שימוש **ב-Token אישי (PAT) של GitHub** לקריאות API מאובטחות.\n- שמירה מאובטחת של הנתונים באמצעות: **Secrets.json**.\n- בפיתוח: שימוש **בדפוס Options Pattern** להזרקת הנתונים המאובטחים לService.\n\n## שיפור ביצועים\n- **שמירת נתונים בזיכרון (In-Memory Caching)** להפחתת קריאות ל-GitHub API.\n- **ניקוי אוטומטי של ה-Cache** כל מספר דקות כדי להבטיח עדכניות הנתונים.\n\n\n## משאבים נוספים\n- [תיעוד Octokit.NET](https://octokitnet.readthedocs.io/en/latest)\n- [מדריך יצירת Token ב-GitHub](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)\n- [מדריך לdecorator ו-scrutor](https://andrewlock.net/adding-decorated-classes-to-the-asp.net-core-di-container-using-scrutor))\n\n--\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshlmt%2Fcv-site-github","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshlmt%2Fcv-site-github","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshlmt%2Fcv-site-github/lists"}