Memopol/Representatives

From La Quadrature du Net
< Memopol
Revision as of 19:56, 29 July 2015 by Piks3l (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Representatives est un format standard de représentation des données parlementaires.

Representatives[edit]

[
    {
        "id": int,
        "slug": str,
        "remote_id": str,
        "first_name": str,
        "last_name": str,
        "full_name": str,
        "gender": 1, // 1 = F, 2 = M
        "birth_place": str,
        "birth_date": date,
        "photo": url,
        "active": bool,
        "fingerprint": str,
        "cv": str,
        "contacts": {
            "emails": [
                {
                    "email": str,
                    "kind": str
                }
            ],
            "phones": [
                {
                    "number": phone,
                    "kind": str
                }
            ],
            "websites": [
                {
                    "url": url,
                    "kind": str
                },
            ],
            "address": [
                {
                    "country": {
                        "name": str,
                        "code": str // Iso code
                    },
                    "city": str,
                    "street": str,
                    "number": str,
                    "postcode": str,
                    "floor": str,
                    "office_number": str,
                    "kind": str,
                    "phones": [
                        {
                            "number": str,
                            "kind": str
                        }
                    ]
                }
            ]
        },
        "mandates": [
            {
                "id": int,
                "name": str,
                "short_id": str, // Abbreviation of 
                "kind": str,
                "constituency": str,
                "role": str,
                "begin_date": date,
                "end_date": date,
                "fingerprint": str
            },
        ]
    },
]

Votes Representatives[edit]