{"id":23296793,"url":"https://github.com/peplxx/postapi","last_synced_at":"2026-04-15T18:01:34.907Z","repository":{"id":221884402,"uuid":"755618889","full_name":"peplxx/PostApi","owner":"peplxx","description":"The application provides basic CRUD functionalities for managing posts in a database.","archived":false,"fork":false,"pushed_at":"2024-02-10T20:24:38.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-04T04:06:12.782Z","etag":null,"topics":["crud","crud-application","crud-sample","fastapi","python"],"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/peplxx.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}},"created_at":"2024-02-10T18:45:49.000Z","updated_at":"2024-03-19T18:29:32.000Z","dependencies_parsed_at":"2024-02-10T20:28:25.297Z","dependency_job_id":"a59d6578-bc51-432f-aece-87f6af2c79ca","html_url":"https://github.com/peplxx/PostApi","commit_stats":null,"previous_names":["peplxx/postapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peplxx/PostApi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peplxx%2FPostApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peplxx%2FPostApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peplxx%2FPostApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peplxx%2FPostApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peplxx","download_url":"https://codeload.github.com/peplxx/PostApi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peplxx%2FPostApi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31853279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: 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":["crud","crud-application","crud-sample","fastapi","python"],"created_at":"2024-12-20T07:15:09.946Z","updated_at":"2026-04-15T18:01:34.885Z","avatar_url":"https://github.com/peplxx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## PostApi FastAPI Application\n\nThis repository contains a FastAPI application for managing posts in a database through a RESTful API.\n\n### Setup\n\n1. Clone the repository:\n      git clone \u003crepository_url\u003e\n   \n\n2. Install dependencies:\n      pip install -r requirements.txt\n   \n\n3. Create an env.env file at the root with the following format:\n   \n   PASSWORD = 'password for database'\n\n   ...\n   \n\n5. Run the application:\n      uvicorn main:app --reload\n   \n\n### Features\n\n1. Endpoints:\n   - GET /: Retrieves a simple message indicating the root of the API.\n   - GET /posts: Retrieves all posts from the database.\n   - GET /posts/{post_id:int}: Retrieves a post by its ID.\n   - DELETE /posts/{post_id:int}: Deletes a post by its ID.\n   - POST /posts: Creates a new post with data provided.\n   - PUT /posts/{post_id:int}: Updates an existing post with new data.\n\n2. Data Models:\n   - PostData: Data type for representing post information.\n   - Post: Represents a post entity in the database.\n\n3. Exceptions:\n   - PostNotExist: Custom exception raised when a post does not exist.\n\n4. Database Interaction:\n   - Uses SQLAlchemy for interacting with the database.\n   - SQLAlchemy session works over PostgresSQL connection.\n\n### Usage\n\n- The application provides basic CRUD functionalities for managing posts in a database.\n- Use appropriate HTTP methods to interact with the API endpoints.\n\n### Additional Information\n\n- Ensure to handle the env.env file securely to protect sensitive database information.\n- For detailed API documentation, access the application through a web browser or API client.\n\nRepository was created for FastApi practise.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeplxx%2Fpostapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeplxx%2Fpostapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeplxx%2Fpostapi/lists"}