Skip to content

API Reference: Users

Wilson Lau edited this page Apr 10, 2021 · 8 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

Create User - POST /users

Get User - GET /users/:userId

Update User - PUT /users/:userId

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

UpdateUserRequest

interface UpdateUserRequest {

}

Delete User - DELETE /users/:userId

Request Email Change - POST /users/:userId/email_change

Confirm Email Change - PUT /users/:userId/email_change