Skip to content

API Reference: Users

Wilson Lau edited this page Jul 29, 2021 · 5 revisions

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

  • Returns user based on embedded cookie.

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[];
}