Difference between revisions of "Memopol/Representatives"

From La Quadrature du Net
Jump to navigationJump to search
(Created page with "'''Representatives''' est un format standard de représentation des données parlementaires. == Representatives == == Votes Representatives ==")
 
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
  
 
== Representatives ==
 
== Representatives ==
 +
 +
<code>
 +
<pre>
 +
[
 +
    {
 +
        "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
 +
            },
 +
        ]
 +
    },
 +
]
 +
</pre>
 +
</code>
  
 
== Votes Representatives ==
 
== Votes Representatives ==
 +
 +
[[Category:Memopol]]

Latest revision as of 19:56, 29 July 2015

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]