// Get one member

GET /members/api/member/:id
{
    id: 1,
    first_name: "Erkki",
    last_name: "Esimerkki",
    email: "erkki.esimerkki@aalto.fi",
    AYY: 1/0,
    jas: 1/0,
    POR: 'Espoo',
}


// Get all members

GET /members/api/members

[{
    id: 1,
    first_name: "Erkki",
    last_name: "Esimerkki",
    email: "erkki.esimerkki@aalto.fi",
    AYY: 1,
    jas: 0,
    POR: 'Espoo',
},{
    id: 2,
    first_name: "Matti",
    last_name: "Meikäläinen",
    email: "superman@hotmail.com",
    AYY: 0,
    jas: 1,
    POR: 'Kerava',
}]

// Create new member (note:do NOT send id!!)

POST /members/api/member (gets newly created item (with id) as response)
{
    first_name: "Pena",
    last_name: "Perusjäbä",
    email: "herpderp@hotmail.com",
    AYY: 0,
    jas: 0,
    POR: 'Korso',
}

// Delete member. (returns {status:"success"} or {status:'failure', msg: "specific error msg"})

DELETE /members/api/member/:id

// get all pending member requests
GET /members/api/requests

[
    {
        "submitted": "2016-07-25 15:58:22.103187+00:00",
        "id": 1,
        "member": {
            "id": 69,
            "AYY": false,
            "email": "asd@asd.asd",
            "first_name": "reg",
            "POR": "",
            "jas": false,
            "last_name": "uest"
        }
    },
    {
        "submitted": "2016-07-25 15:59:06.069821+00:00",
        "id": 2,
        "member": {
            "id": 70,
            "AYY": false,
            "email": "asd@asd.asd",
            "first_name": "re",
            "POR": "",
            "jas": false,
            "last_name": "guest"
        }
    }
]
//accept member request (== delete request but leave member)

POST /members/api/request/:id 

//reject member request (== delete request and delete member)

DELETE /members/api/request/:id 


// mass import from csv
POST /members/api/csvimport
//csvformat first_name,last_name,email,POR,AYY,JAS
// example data
Pekka,Pöytä,pekka.p.pouta@mosh.pit,Tuska,1,0

// example response on success
{"status": "success", "errors": []}
// example response on failure (code will be 400)
{"status": "failure", "errors": ["failure adding item Pekka, P\u00f6yt\u00e42, pekka.p.pouta@mosh.pit, Tuska, Eip"]}

//member request from official page
POST /members/api/request