{"id":23988791,"url":"https://github.com/fulanii/rest-api-project","last_synced_at":"2025-02-25T03:13:07.903Z","repository":{"id":136315697,"uuid":"572195790","full_name":"fulanii/rest-api-project","owner":"fulanii","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-05T20:30:42.000Z","size":54942,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-07T16:15:48.895Z","etag":null,"topics":["beautifulsoup4","bs4","flask","flask-api","flask-restful","psycopg2","psycopg2-binary","requests-python"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/fulanii.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}},"created_at":"2022-11-29T18:53:01.000Z","updated_at":"2024-12-19T19:32:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"a4f244ee-cc48-4f60-b63c-912a4acd2ccd","html_url":"https://github.com/fulanii/rest-api-project","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fulanii%2Frest-api-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fulanii%2Frest-api-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fulanii%2Frest-api-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fulanii%2Frest-api-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fulanii","download_url":"https://codeload.github.com/fulanii/rest-api-project/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240593179,"owners_count":19825939,"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":["beautifulsoup4","bs4","flask","flask-api","flask-restful","psycopg2","psycopg2-binary","requests-python"],"created_at":"2025-01-07T16:15:53.766Z","updated_at":"2025-02-25T03:13:07.876Z","avatar_url":"https://github.com/fulanii.png","language":"HTML","readme":"\n\n# Rest API Project\nIn this project i built a rest API with python and flask, I first scraped and cleaned country data online. Then stored the data in a PostgreSQL database, I've made the data available with an api. Using the api you can access countries info like: ``` name, capital, population, area size, country code and country iso code.```\n\nFinally I made a country fun fact table where you can add a fun fact about any country using a ```POST```request, or edit/update the fun fact with a ```PUT``` request. \n\n- [This project documentations](https://fulanii.github.io/rest-api-project/)\n\n\n\n\u003cdetails\u003e\n    \u003csummary\u003e \u003ch1\u003e Project Demo  \u003c/h1\u003e \u003c/summary\u003e\n\nGET endpoints\n    ![GET](images/GET.gif)\n\nPOST and PUT endpoints\n    ![POST](images/POST.gif)\n\u003c/details\u003e\n\n\n\n# Run locally\nWill be hosting this api online soon, in the meantime you can download it and run it locally by following the steps bellow.\n\n1. Clone the repo: ```$ git clone https://github.com/fulanii/rest-api-project.git```\n\n2. cd rest-api-project/project and ``` pip install requirements.txt```\n\n3. connect to a postgres db (replace ```database, user, and password``` fields)\n    ![](images/db.png)\n\n4. run server.py to create the tables, scrape and insert data\n\n5. check out the project [Documentation](https://fulanii.github.io/rest-api-project/)\n\n\nBy the way i did this project in fastapi [check it out](https://github.com/fulanii/fastapi-project)\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffulanii%2Frest-api-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffulanii%2Frest-api-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffulanii%2Frest-api-project/lists"}