Maepaysoh Endpoint Documentations

Party Endpoint

GET list of party

Get list of all party data including it's detail.

per_page
optional
20 Number of record to return Integer
page
optional
1 Page number Integer
                                            
{

    _meta: {
        status: "ok",
        count: 76,
        api_version: 1,
        unicode: true,
        format: "unicode",
        current_page:2,
        per_page:20
        links:{
            "next":"?token=400d885d-320a-5d56-bbf9-08d992aee2cc&page=3&per_page=20",  
            "previous":"?token=400d885d-320a-5d56-bbf9-08d992aee2cc&page=1&per_page=20"        
        },
        total_pages:4
    },
    data: [
            {
                "id": 1,
                "party_name": "မြိုတိုင်းရင်းသားဖွံ့ဖြိုး​ရေးပါတီ",
                "party_name_english": "Mro National Development Party",
                "abbreviation": "MNDP",
                "establishment_date": null,
                "member_count": "",
                "leadership": [
                    "ဦးစံသာအောင်",
                    "ဦးလာဘွေ"
                ],
                "establishment_approval_date": null,
                "registration_application_date": 1270771200000,
                "registration_approval_date": 1272412800000,
                "approved_party_number": "အမှတ်စဉ်( ၁ )",
                "party_flag": "https://storage.googleapis.com/staticassets/flags-and-logos/1-flag.png",
                "party_seal": "https://storage.googleapis.com/staticassets/flags-and-logos/1-logo.png",
                "chairman": [
                    "ဦးစံသာအောင်",
                    "ဦးလာဘွေ"
                ],
                "region": "ရခိုင်ပြည်နယ်နှင့် ချင်းပြည်နယ် ပလက်ဝမြို့။",
                "headquarters": "အမှတ်(၂၀၂)၊စာတိုက်လမ်း၊ပြည်တော်သာ ရပ်ကွက်၊ ကျောက်တော်မြို့နယ်၊ရခိုင်ပြည်နယ်",
                "contact": [
                    "၀၉-၄၂၁၇၃၄၅၀၈(ဥက္ကဌ)"
                ],
                "policy": "http://uecmyanmar.org/images/stories/policals_policies/1%20Mro%20or%20Khami%20National%20Solidarity%20Organization.pdf",
                "ST_PCODE": "MMR001",
                "DT_PCODE": "MMR001D001",
                "created_at": 1441991824236,
                "updated_at": 1441991824236
            },
            {
                "id": 2,
                "party_name": "တိုင်းရင်းသားစည်းလုံးညီညွတ်ရေးပါတီ",
                "party_name_english": "National Unity Party",
                "abbreviation": "",
                "establishment_date": null,
                "member_count": "",
                "leadership": [
                    "ဦးထွန်းရီ",
                    "ဦးသန်းတင်"
                ],
                "establishment_approval_date": null,
                "registration_application_date": 1269820800000,
                "registration_approval_date": 1272499200000,
                "approved_party_number": "အမှတ်စဉ်( ၂ )",
                "party_flag": "https://storage.googleapis.com/staticassets/flags-and-logos/2-flag.png",
                "party_seal": "https://storage.googleapis.com/staticassets/flags-and-logos/2-logo.png",
                "chairman": [
                    "ဦးထွန်းရီ",
                    "ဦးသန်းတင်(ထွေ/မှူး)"
                ],
                "region": "ပြည်ထောင်စုတစ်ဝန်းလုံး",
                "headquarters": "အမှတ် (၂၄)၊ အောင်ဇေယျလမ်း၊ ရွှေတောင်ကြား(၁)ရပ်ကွက်၊ ဗဟန်းမြို့နယ်၊ ရန်ကုန်တိုင်းဒေသကြီး",
                "contact": [
                    "၀၉-၄၂၁၁၀၉၅၅၀",
                    "၀၁-၅၃၇၆၀၁",
                    "၀၁-၅၅၇၄၈၀",
                    "၀၁-၅၅၄၂၁၉(ဖက်စ်)"
                ],
                "policy": "http://uecmyanmar.org/images/stories/policals_policies/2/2.1.pdf",
                "ST_PCODE": "MMR002",
                "DT_PCODE": "MMR002D002",
                "created_at": 1441991824238,
                "updated_at": 1441991824238
            },
            ...
    ]
}
                                            
                                        
                                            
                                                
{
    "error": {
        "message": "Error message text",
    }
}

                                             
                                        

GET party by ID

Get party data by id

                                            
{
    "_meta": {
        "status": "ok",
        "count": 1,
        "api_version": 1,
        "unicode": true,
        "format": "unicode",
        "per_page":1,
        "current_page":1
        "links":null,
        "total_pages":1
    },
    "data": {
        "id": 1,
        "party_name": "မြိုတိုင်းရင်းသားဖွံ့ဖြိုး​ရေးပါတီ",
        "party_name_english": "Mro National Development Party",
        "abbreviation": "MNDP",
        "establishment_date": null,
        "member_count": "",
        "leadership": [
            "ဦးစံသာအောင်",
            "ဦးလာဘွေ"
        ],
        "establishment_approval_date": null,
        "registration_application_date": 1270771200000,
        "registration_approval_date": 1272412800000,
        "approved_party_number": "အမှတ်စဉ်( ၁ )",
        "party_flag": "https://storage.googleapis.com/staticassets/flags-and-logos/1-flag.png",
        "party_seal": "https://storage.googleapis.com/staticassets/flags-and-logos/1-logo.png",
        "chairman": [
            "ဦးစံသာအောင်",
            "ဦးလာဘွေ"
        ],
        "region": "ရခိုင်ပြည်နယ်နှင့် ချင်းပြည်နယ် ပလက်ဝမြို့။",
        "headquarters": "အမှတ်(၂၀၂)၊စာတိုက်လမ်း၊ပြည်တော်သာ ရပ်ကွက်၊ ကျောက်တော်မြို့နယ်၊ရခိုင်ပြည်နယ်",
        "contact": [
            "၀၉-၄၂၁၇၃၄၅၀၈(ဥက္ကဌ)"
        ],
        "policy": "http://uecmyanmar.org/images/stories/policals_policies/1%20Mro%20or%20Khami%20National%20Solidarity%20Organization.pdf",
        "ST_PCODE": "MMR001",
        "DT_PCODE": "MMR001D001",
        "created_at": 1441991824236,
        "updated_at": 1441991824236
    }
}
                                            
                                        
                                            
                                                
{
    "error": {
        "message": "Error message text",
    }
}