{"id":24261868,"url":"https://github.com/paul-weqe/politico-api","last_synced_at":"2026-05-02T08:32:14.694Z","repository":{"id":34155464,"uuid":"169097057","full_name":"Paul-weqe/POLITICO-API","owner":"Paul-weqe","description":"POLITICO is a voting API based in Flask. It runs on the PostgreSQL database and CI/CD is performed through the Travis CI tool. Have fun with it :)","archived":false,"fork":false,"pushed_at":"2024-12-24T00:25:54.000Z","size":443,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-03-04T22:36:51.983Z","etag":null,"topics":["api","flask","jwt","postgresql"],"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/Paul-weqe.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":"2019-02-04T15:11:32.000Z","updated_at":"2024-05-30T18:44:08.000Z","dependencies_parsed_at":"2024-02-22T01:44:15.233Z","dependency_job_id":"e5d6a6c7-9183-433f-b4d4-317857879ed5","html_url":"https://github.com/Paul-weqe/POLITICO-API","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Paul-weqe/POLITICO-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paul-weqe%2FPOLITICO-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paul-weqe%2FPOLITICO-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paul-weqe%2FPOLITICO-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paul-weqe%2FPOLITICO-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Paul-weqe","download_url":"https://codeload.github.com/Paul-weqe/POLITICO-API/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paul-weqe%2FPOLITICO-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32528220,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"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":["api","flask","jwt","postgresql"],"created_at":"2025-01-15T06:49:31.448Z","updated_at":"2026-05-02T08:32:14.676Z","avatar_url":"https://github.com/Paul-weqe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# POLITICO-API\n\n## Progress\n[![Coverage Status](https://coveralls.io/repos/github/Paul-weqe/POLITICO-API/badge.svg?branch=develop)](https://coveralls.io/github/Paul-weqe/POLITICO-API?branch=develop)\n\n\u003c!-- \n[![Build Status](https://travis-ci.com/Paul-weqe/POLITICO-API.svg?branch=develop)](https://travis-ci.com/Paul-weqe/POLITICO-API)\n\n\u003ca href=\"https://codeclimate.com/github/Paul-weqe/POLITICO-API/maintainability\"\u003e\u003cimg src=\"https://api.codeclimate.com/v1/badges/ad5d7bcf66ab6b32b852/maintainability\" /\u003e\u003c/a\u003e --\u003e\n\n## \u003ca href=\"https://documenter.getpostman.com/view/3597204/S11HuKA3\"\u003eAPI V2 DOCUMENTATION\u003c/a\u003e\n\n## What is politico?\n\nPolitico is a government-like voting system. It allows for candidates to vie under political parties and allows for regular users to vote. \n\nThis API allows for exposure of the data held by POLITICO. This reference guide shows you how you can be able to access the data inside the POLITICO system online. \u003ca href=\"https://paul-weqe.github.io/POLITICO/UI/index.html\"\u003eOur frontend\u003c/a\u003e\n\n## Setup guide\n*NOTE* This setup guide assumes you have python and virtualenv installed in your system.\n\n### creating the virtual environment\n ```\n virtualenv venv\n ```\n\n### activating the virtual environment\n\n On linux\n```\nsource venv/bin/activate\n```\n\nOn Windows:\n```\nvenv\\Scripts\\activate\n```\n\n\n### installing the requirements\n\nAll of the requirements will be installed through the requirements.txt file. Run the following command to install:\n\n```\npip install -r requirements.txt\n```\n\n### running the application\n\nTo run the flask application, write the following command:\n\n```\npython run.py\n```\n\n### running tests on the application\n\nThe tests are contained in the *politico_api/tests/* folder. The tests can be run using the following command:\n\n```\npytest politico/tests/\n```\n\n### getting coverage of the tests\n\nTo get the coverage of the tests, run:\n\n```\npytest --cov=.\n```\n\n## where the API is hosted\n\n**VERSION 1**\n\u003ca href=\"http://paul-politico-api.herokuapp.com\"\u003eHosting\u003c/a\u003e\n\n| route | method | function | JSON fields |\n| --- | --- | --- | --- |\n| /api/v1/offices/ | POST | create a new office | \"office_name\": string, \"office_type\": string |\n| /api/v1/offices/ | GET | get all offices | No json fields |\n| /api/v1/offices/officeID | GET | gets a single office information | no json fields |\n| /api/v1/parties/ | GET | gets all parties | no json field |\n| /api/v1/parties/partyID/partyName | PATCH | edits a single party with ID partyID and sets its name to partyName | no json field |\n| /parties/partyID | DELETE | deletes the party with ID partyID | no json field |\n| /parties/partyID | GET | gets a single party with ID partyID | no json field |\n| /parties/ | POST | creates a party | \"party_name\": string, \"party_name\": string, \"party_hq_address\": string, \"party_logo_url\": str, \"party_motto\": str, \"party_members\": int |\n\n\n**VERSION 2**\n\n\u003ca href=\"http://politico-v2.herokuapp.com\"\u003eHosting\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://documenter.getpostman.com/view/3597204/S11HuKA3\"\u003eDocumentation\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaul-weqe%2Fpolitico-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaul-weqe%2Fpolitico-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaul-weqe%2Fpolitico-api/lists"}