API endpoint that allows politicians to be viewed and edited.

Fields for search: ID, name, sort_name, email, twitter, facebook

to find by name:

http://localhost:8000/api/simple_politicians/?search=Lincoln

POST

all fields are strings

{
"ID": "",
"name": "John Snow",
"sort_name": "",
"email": "johnsnow@games.com",
"twitter": "",
"facebook": "",
"group": "",
"group_id": "",
"area_id": "",
"area": "",
"chamber": "",
"term": "",
"start_date": "",
"end_date": "",
"image": "",
"gender": "",
"country": "",
"type": ""
}
GET /api/simple_politicians/?ordering=start_date
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "count": 882,
    "next": "https://api.represent.me/api/simple_politicians/?ordering=start_date&page=2",
    "previous": null,
    "next_id": 2,
    "previous_id": null,
    "results": [
        {
            "id": 2,
            "ID": "4a5b0ae2-7b2d-4098-87d8-e9f21f48c3fc",
            "name": "Ahmed Hussen",
            "sort_name": "Ahmed Hussen",
            "email": "Ahmed.Hussen@parl.gc.ca",
            "twitter": "AhmedHussenMP",
            "facebook": "",
            "group": "Liberal",
            "group_id": "liberal",
            "area_id": "area/ontario_(york_south—weston)",
            "area": "Ontario (York South—Weston)",
            "chamber": "House of Commons",
            "term": "42",
            "start_date": "",
            "end_date": "",
            "image": "http://www.parl.gc.ca/Parliamentarians/Images/OfficialMPPhotos/42/HussenAhmed_Lib.jpg",
            "gender": "male",
            "country": "29",
            "type": "MP",
            "linkedin": null,
            "facebook_page": null,
            "fundraising_page": null,
            "cv": null,
            "statement": ""
        },
        {
            "id": 3,
            "ID": "d026b523-77a8-40c1-bc46-0d0ed5dbb1de",
            "name": "Alain Rayes",
            "sort_name": "Alain Rayes",
            "email": "Alain.Rayes@parl.gc.ca",
            "twitter": "AlainRayes",
            "facebook": "",
            "group": "Conservative",
            "group_id": "conservative",
            "area_id": "area/quebec_(richmond—arthabaska)",
            "area": "Quebec (Richmond—Arthabaska)",
            "chamber": "House of Commons",
            "term": "42",
            "start_date": "",
            "end_date": "",
            "image": "http://www.parl.gc.ca/Parliamentarians/Images/OfficialMPPhotos/42/RayesAlain_CPC.jpg",
            "gender": "male",
            "country": "29",
            "type": "MP",
            "linkedin": null,
            "facebook_page": null,
            "fundraising_page": null,
            "cv": null,
            "statement": ""
        },
        {
            "id": 4,
            "ID": "aab176a0-738c-4e1d-9881-9a80e167b654",
            "name": "Alaina Lockhart",
            "sort_name": "Alaina Lockhart",
            "email": "Alaina.Lockhart@parl.gc.ca",
            "twitter": "AlainaLockhart",
            "facebook": "",
            "group": "Liberal",
            "group_id": "liberal",
            "area_id": "area/new_brunswick_(fundy_royal)",
            "area": "New Brunswick (Fundy Royal)",
            "chamber": "House of Commons",
            "term": "42",
            "start_date": "",
            "end_date": "",
            "image": "http://www.parl.gc.ca/Parliamentarians/Images/OfficialMPPhotos/42/LockhartAlaina_Lib.jpg",
            "gender": "female",
            "country": "29",
            "type": "MP",
            "linkedin": null,
            "facebook_page": null,
            "fundraising_page": null,
            "cv": null,
            "statement": ""
        },
        {
            "id": 5,
            "ID": "9954282f-ee3c-46af-813b-4c7ab6a72a14",
            "name": "Alex Nuttall",
            "sort_name": "Alex Nuttall",
            "email": "Alex.Nuttall@parl.gc.ca",
            "twitter": "",
            "facebook": "",
            "group": "Conservative",
            "group_id": "conservative",
            "area_id": "area/ontario_(barrie—springwater—oro-medonte)",
            "area": "Ontario (Barrie—Springwater—Oro-Medonte)",
            "chamber": "House of Commons",
            "term": "42",
            "start_date": "",
            "end_date": "",
            "image": "http://www.parl.gc.ca/Parliamentarians/Images/OfficialMPPhotos/42/NuttallAlex_CPC.jpg",
            "gender": "male",
            "country": "29",
            "type": "MP",
            "linkedin": null,
            "facebook_page": null,
            "fundraising_page": null,
            "cv": null,
            "statement": ""
        },
        {
            "id": 6,
            "ID": "cc4baa7a-8eff-47fd-94fe-1ec70163e295",
            "name": "Alexandra Mendès",
            "sort_name": "Alexandra Mendès",
            "email": "Alexandra.Mendes@parl.gc.ca",
            "twitter": "AlexandraBrStL",
            "facebook": "",
            "group": "Liberal",
            "group_id": "liberal",
            "area_id": "area/quebec_(brossard—saint-lambert)",
            "area": "Quebec (Brossard—Saint-Lambert)",
            "chamber": "House of Commons",
            "term": "42",
            "start_date": "",
            "end_date": "",
            "image": "http://www.parl.gc.ca/Parliamentarians/Images/OfficialMPPhotos/42/MendesAlexandra_Lib.jpg",
            "gender": "female",
            "country": "29",
            "type": "MP",
            "linkedin": null,
            "facebook_page": null,
            "fundraising_page": null,
            "cv": null,
            "statement": ""
        },
        {
            "id": 7,
            "ID": "b400cf06-ec08-4078-881c-031894a209d0",
            "name": "Alexandre Boulerice",
            "sort_name": "Alexandre Boulerice",
            "email": "Alexandre.Boulerice@parl.gc.ca",
            "twitter": "alexboulerice",
            "facebook": "",
            "group": "NDP",
            "group_id": "ndp",
            "area_id": "area/quebec_(rosemont—la_petite-patrie)",
            "area": "Quebec (Rosemont—La Petite-Patrie)",
            "chamber": "House of Commons",
            "term": "42",
            "start_date": "",
            "end_date": "",
            "image": "http://www.parl.gc.ca/Parliamentarians/Images/OfficialMPPhotos/41/BoulericeAlexandre_NPD.jpg",
            "gender": "male",
            "country": "29",
            "type": "MP",
            "linkedin": null,
            "facebook_page": null,
            "fundraising_page": null,
            "cv": null,
            "statement": ""
        },
        {
            "id": 8,
            "ID": "aabed860-eda7-460a-bb83-b2c20f7dcfe6",
            "name": "Ali Ehsassi",
            "sort_name": "Ali Ehsassi",
            "email": "Ali.Ehsassi@parl.gc.ca",
            "twitter": "AliEhsassi",
            "facebook": "",
            "group": "Liberal",
            "group_id": "liberal",
            "area_id": "area/ontario_(willowdale)",
            "area": "Ontario (Willowdale)",
            "chamber": "House of Commons",
            "term": "42",
            "start_date": "",
            "end_date": "",
            "image": "http://www.parl.gc.ca/Parliamentarians/Images/OfficialMPPhotos/42/EhsassiAli_Lib.jpg",
            "gender": "male",
            "country": "29",
            "type": "MP",
            "linkedin": null,
            "facebook_page": null,
            "fundraising_page": null,
            "cv": null,
            "statement": ""
        },
        {
            "id": 9,
            "ID": "584f18c5-a872-431e-8075-dc2dcb7f9878",
            "name": "Alice Wong",
            "sort_name": "Alice Wong",
            "email": "alice.wong@parl.gc.ca",
            "twitter": "AliceWongCanada",
            "facebook": "",
            "group": "Conservative",
            "group_id": "conservative",
            "area_id": "area/british_columbia_(richmond_centre)",
            "area": "British Columbia (Richmond Centre)",
            "chamber": "House of Commons",
            "term": "42",
            "start_date": "",
            "end_date": "",
            "image": "http://www.parl.gc.ca/Parliamentarians/Images/OfficialMPPhotos/41/WongAlice_CPC.jpg",
            "gender": "female",
            "country": "29",
            "type": "MP",
            "linkedin": null,
            "facebook_page": null,
            "fundraising_page": null,
            "cv": null,
            "statement": ""
        },
        {
            "id": 10,
            "ID": "cc155c88-5225-4911-b482-31b1bb057c34",
            "name": "Alistair MacGregor",
            "sort_name": "Alistair MacGregor",
            "email": "Alistair.MacGregor@parl.gc.ca",
            "twitter": "AMacGregor4CML",
            "facebook": "",
            "group": "NDP",
            "group_id": "ndp",
            "area_id": "area/british_columbia_(cowichan—malahat—langford)",
            "area": "British Columbia (Cowichan—Malahat—Langford)",
            "chamber": "House of Commons",
            "term": "42",
            "start_date": "",
            "end_date": "",
            "image": "http://www.parl.gc.ca/Parliamentarians/Images/OfficialMPPhotos/42/MacGregorAlistair_NDP.jpg",
            "gender": "male",
            "country": "29",
            "type": "MP",
            "linkedin": null,
            "facebook_page": null,
            "fundraising_page": null,
            "cv": null,
            "statement": ""
        },
        {
            "id": 1,
            "ID": "c153ec2d-cc60-4ec5-bf31-dc227e6ee1a0",
            "name": "Adam Vaughan",
            "sort_name": "Adam Vaughan",
            "email": "Adam.Vaughan@parl.gc.ca",
            "twitter": "TOAdamVaughan",
            "facebook": "",
            "group": "Liberal",
            "group_id": "liberal",
            "area_id": "area/ontario_(spadina—fort_york)",
            "area": "Ontario (Spadina—Fort York)",
            "chamber": "House of Commons",
            "term": "42",
            "start_date": "",
            "end_date": "",
            "image": "http://www.parl.gc.ca/Parliamentarians/Images/OfficialMPPhotos/41/VaughanAdam_Lib.jpg",
            "gender": "male",
            "country": "29",
            "type": "MP",
            "linkedin": null,
            "facebook_page": null,
            "fundraising_page": null,
            "cv": null,
            "statement": ""
        }
    ]
}