API Reference: Users - mcitcentral/mcitmocks-ts Wiki

Original URL: https://github.com/mcitcentral/mcitmocks-ts/wiki/API-Reference:-Users

Users

Resource

interface User {
   id: uuid;
   name: string;
   email: string;
   timeZone: string; // Standard ISO TimeZone string (ie. America/New_York)
   languages: CodingLanguage[]; 
   questionDifficulties: QuestionDifficulty[];
   questionTypes: QuestionType[];
}

// TODO: Figure out Spring Security + oAuth data requirements

Get User - GET /auth/user

Update User - POST /user

Used for updating certain user settings, including timeZone, languages, etc.

UpdateUserRequest

interface UpdateUserRequest {
   timeZone: string; // Standard ISO TimeZone string (ie. America/New_York)
   languages: CodingLanguage[]; 
   questionDifficulties: QuestionDifficulty[];
   questionTypes: QuestionType[];
}