MyanmarAPI/candidate-endpoint

Name: candidate-endpoint

Owner: Myanmar API

Description: 2015 Myanmar Election Candidates endpoint

Created: 2015-07-09 11:31:26.0

Updated: 2017-02-10 10:48:07.0

Pushed: 2017-05-31 08:59:57.0

Homepage: http://myanmarapi.github.io/endpoints/candidate.html

Size: 3486

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

2015 Myanmar Election Candidate Endopint

Maepaysoh Candidate Endpoint for 2015 Myanmar Election.

Check Documentation for avaliable resources from this endpoint.

Import Data With CSV

Put CSV files into storage/data/ with filename candidate.csv and party.csv.

Then, you can use the following commands to import the data.

Party Data

php artisan import:party party.csv

Candidate Data

php artisan import:candidate candidate.csv
With JSON

Put JSON files into storage/data/ with filename candidate.json and party.json.

Then, you can use the following commands to import the data.

php artisan mongo:import candidate
php artisan mongo:import party

If you data json file name is not candidate.json and party.json, used collection option argument for import.

// Eg: Import candidate data from candidate_latest.json
php artisan mongo:import candidate_latest --collection candidate
// Or shortcut --collection with -c
php artisan mongo:import candidate_latest -c candidate

If you want to drop the collection before import, used drop option

php artisan mongo:import candidate --drop
// Or shortcut
php artisan mongo:import candidate -d

php artisan mongo:import candidate_latest --collection candidate --drop
php artisan mongo:import candidate_latest -c candidate -d

Drop Collection

php artisan iora:drop collection_name
Technology

Based on https://github.com/MyanmarAPI/php-endpoint-bootstrap


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.