{"id":21492147,"url":"https://github.com/colddsam/portfoliobackend","last_synced_at":"2026-05-15T13:04:05.070Z","repository":{"id":209714048,"uuid":"724777734","full_name":"colddsam/portfolioBackend","owner":"colddsam","description":"This is a simple FastAPI project for managing achievements, projects, skills, and events. It provides endpoints to upload and retrieve data related to these categories. The data is stored in a JSON file website.json.","archived":false,"fork":false,"pushed_at":"2023-11-29T08:31:09.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-03T23:55:04.134Z","etag":null,"topics":["backend","deployed","fastapi","management-system","python","server"],"latest_commit_sha":null,"homepage":"","language":"Python","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/colddsam.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-11-28T19:19:39.000Z","updated_at":"2023-11-29T08:32:41.000Z","dependencies_parsed_at":"2025-09-10T14:05:18.524Z","dependency_job_id":"a1bd56ff-dbc4-4450-9a1f-b12d0827cee5","html_url":"https://github.com/colddsam/portfolioBackend","commit_stats":null,"previous_names":["colddsam/portfoliobackend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/colddsam/portfolioBackend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colddsam%2FportfolioBackend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colddsam%2FportfolioBackend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colddsam%2FportfolioBackend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colddsam%2FportfolioBackend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/colddsam","download_url":"https://codeload.github.com/colddsam/portfolioBackend/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colddsam%2FportfolioBackend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33067477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["backend","deployed","fastapi","management-system","python","server"],"created_at":"2024-11-23T15:23:01.181Z","updated_at":"2026-05-15T13:04:05.032Z","avatar_url":"https://github.com/colddsam.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# FastAPI Inttegration for Backend\n\nThis is a simple FastAPI project for managing achievements, projects, skills, and events. It provides endpoints to upload and retrieve data related to these categories. The data is stored in a JSON file `website.json`.\n\n## Tech Stack\n\n**Client:** HTML, SCSS, JAVASCRIPT\n\n**Server:** FASTAPI, PYTHON\n\n\n## Features\n\n### FastAPI App Creation:\n\n- Creates a FastAPI app instance using FastAPI().\n### CORS Middleware:\n\n- Adds Cross-Origin Resource Sharing (CORS) middleware to the app using `add_middleware`.\n- Allows all origins, credentials, methods, and headers for simplicity.\n### JSON File Loading:\n\n- Defines an asynchronous function `load_json()` to load data from a JSON file `(website.json)`.\n### Endpoints:\n\n#### Welcome Page:\n\n- Endpoint: ``/\n- Method: `POST`\n- Returns a welcome message.\n#### Achievements:\n\n- Endpoint: `/achievements/`\n- Method: `POST`\n- Parameters: `header`, `description`, `image`, `url (form parameters)`\n- Uploads achievement data to `website.json`.\n#### Projects:\n\n- Endpoint: `/projects/`\n- Method: `POST`\n- Parameters: `header`, `description`, `image`, `url (form parameters)`\n- Uploads project data to `website.json`.\n#### Skills:\n\n- Endpoint: `/skills/`\n- Method: `POST`\n- Parameters: `percentage`, `name`, `image`, `url (form parameters)`\n- Uploads skill data to `website.json`.\n#### Events:\n\n- Endpoint: `/events/`\n- Method: `POST`\n- Parameters: `description`, `organization`, `image`, `url(form parameters)`\n- Uploads event data to `website.json`.\n#### Content Retrieval:\n\n- Endpoint: `/content/{prompt}`\n- Method: `GET`\n- Parameters: `prompt` (path parameter)\n- Retrieves content from `website.json` based on the specified category `prompt`.\n#### Content Deletion:\n\n- Endpoint: `/delete/{prompt}/{id}`\n- Method: `GET`\n- Parameters: `prompt`, `id` (path parameters)\n- Deletes content from `website.json` based on the specified category prompt and content ID.\n### Content Retrieval and Deletion (Commented Out):\n\n- Includes commented-out code for retrieving images and deleting content. The code seems to be using os and FileResponse, but these parts are commented.\n\n\n## API Reference\n\n#### Upload Achievements\n\n```http\n  POST apikey/achievements/\n```\n\n| Endpoint | Method| Parameters|\n| :-------- | :------- | :---- |\n| `/achievements/` | `POST` | **header :** Achievement header (string, form) |\n||||**description :** Achievement description (string, form)|\n||||**image :** Image file for the achievement (string, form)|\n||||**url :** URL for additional information (string, form)|\n\n**Description :** Uploads achievement data and saves it to website.json. Returns the updated JSON data.\n\n#### Upload Projects\n\n```http\n  POST apikey/projects/\n```\n\n| Endpoint | Method| Parameters|\n| :-------- | :------- | :---- |\n| `/skills/` | `POST` | **header :** Project header (string, form) |\n||||**description :** Project description (string, form)|\n||||**image :** Image file for the Project (string, form)|\n||||**url :** URL for additional information (string, form)|\n\n**Description :** Uploads Project data and saves it to website.json. Returns the updated JSON data.\n\n#### Upload Skills\n\n```http\n  POST apikey/skills/\n```\n\n| Endpoint | Method| Parameters|\n| :-------- | :------- | :---- |\n| `/skills/` | `POST` | **percentage :** Skill proficiency percentage (float, form) |\n||||**name :** Skills description (string, form)|\n||||**image :** Image file for the skills (string, form)|\n||||**url :** URL for additional information (string, form)|\n\n**Description :** Uploads skills data and saves it to website.json. Returns the updated JSON data.\n\n#### Upload Events\n\n```http\n  POST apikey/events/\n```\n\n| Endpoint | Method| Parameters|\n| :-------- | :------- | :---- |\n| `/events/` | `POST` | **description :** Event description (string, form) |\n||||**organization :** Event organization (string, form)|\n||||**image :** Image file for the event (string, form)|\n||||**url :** URL for additional information (string, form)|\n\n**Description :** Uploads events data and saves it to website.json. Returns the updated JSON data.\n\n#### Get Content\n\n```http\n  GET apikey/content/{prompt}\n```\n\n| Endpoint | Method| Parameters|\n| :-------- | :------- | :---- |\n| `/content/{prompt}` | `GET` | **prompt :** Category prompt (string, path) |\n\n**Description :** Retrieves content from website.json based on the specified category prompt.\n\n#### Delete Content\n\n```http\n  GET apikey/delete/{prompt}/{id}\n```\n\n| Endpoint | Method| Parameters|\n| :-------- | :------- | :---- |\n| `/achievements/` | `GET` | **prompt :** Category prompt (string, path) |\n||||**id :** Content ID to be deleted (integer, path)|\n\n**Description :** Deletes content from website.json based on the specified category prompt and content ID. Returns a status message.\n## Running Tests\n\nInstall the required dependencies using the following command:\n\n```bash\n  pip install fastapi[all] uvicorn\n```\n\nRun the application using the following command:\n\n```bash\n  uvicorn your_app_name:app --reload\n```\nReplace **your_app_name** with the name of the Python file containing your FastAPI app.\n\n\n## Authors\n\n- [@colddsam](https://www.github.com/colddsam)\n\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n\n\n## Feedback\n\nIf you have any feedback, please reach out to us at colddsam@gmail.com\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolddsam%2Fportfoliobackend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolddsam%2Fportfoliobackend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolddsam%2Fportfoliobackend/lists"}