Memopol/Representatives : Différence entre versions
De La Quadrature du Net
< Memopol
Aller à la navigationAller à la recherche (Created page with "'''Representatives''' est un format standard de représentation des données parlementaires. == Representatives == == Votes Representatives ==") |
|||
(Une révision intermédiaire par un autre utilisateur non affichée) | |||
Ligne 2 : | Ligne 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]] |
Version actuelle datée du 29 juillet 2015 à 19:56
Representatives est un format standard de représentation des données parlementaires.
Representatives[modifier]
[
{
"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
},
]
},
]