Checks inputted username and password for match, returns JWT upon match.
POST https://smart-classroom-ece452.mybluemix.net/api/v1/authenticate { "username": "MrAnderson", "password": "hunter1010", "userType": "teacher" }
{ "success": true, "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU5NmQ5NjFhMDdlODgwMjI4OTZjNjJhMiIsInR5cGUiOiJ0ZWFjaGVyIiwiaWF0IjoxNTAwMzU0MzgwLCJleHAiOjE1MDA0NDA3ODB9.qR51URuxz6axjsowi9dbpeHKDcNzpCJrBsnBTwGXLKU", "userType": "teacher", "id": "596d961a07e88022896c62a2" }
There was an error while loading. Please reload this page.