HTML:
/api-docs-megex/auth/signin
Method:
POST
Body:
{ "username": "Username", "password": "12345678" }
Response:
{ "_id": "5a2...", "fcm": { "_id": "28d...", "__v": 0, "updated": "2018-04-11T02:58:47.267Z", "token": "chs..." }, "userInfo": { "_id": "bd4...", "__v": 0, "emergencyContacts": [], "address": [ "5a2..." ], "phoneNumber": "999-999-9999", "profileImageURL": "default.png", "gender": "", "lastName": "drv", "firstName": "firstname" }, "providerData": { "_id": "5a28dd7fa762dc136be62bd5", "token": "eyJ0e..." }, "roles": { "_id": "5a28dd...", "__v": 0, "serviceOrders": [], "businessPhone": "", "routingNumber": "", "bankAccount": "", "companyId": [], "currentLocation": "39.2005749,-77.2633535", "status": "off duty", "statusLog": [], "dotMedicalExpiration": "", "dotMedical": "", "insuranceExpiration": "", "insuranceInfo": "", "ssn": "", "vehicles": [ { "_id": "5a3796361d7f8edf54fa2b27", "state": "", "tagPlate": "sdf", "vinNumber": "12345678901234567", "color": "Brown", "year": "2005", "model": "df", "make": "COASTLINE TRAILER MFG", "description": "2005 | COASTLINE TRAILER MFG | df | 01234567" }, { "_id": "5a7ac9d1db63656903e86be3", "state": "", "tagPlate": "", "vinNumber": "12345678901234568", "color": "Brown", "year": "2005", "model": "dd", "make": "COASTLINE TRAILER MFG", "description": "2005 | COASTLINE TRAILER MFG | dd | 01234568" }, { "_id": "5a7aca0fdb63656903e86be4", "state": "", "tagPlate": "", "vinNumber": "12345678901234569", "color": "Black", "year": "2016", "model": "sls", "make": "Mercedes", "description": "2016 | Mercedes | sls | 01234569" } ], "assignedRoles": [ { "type": "client" }, { "type": "driver", "companies": [ { "companyId": "5ac1cc1f8b0b090c041dc15f", "suspended": false } ] } ], "type": "client" }, "username": "Username", "created": "2017-12-07T06:19:43.418Z", "email": "email@email.com" }