Skip to content

davidprhn/WIKIZELDA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WIKIZELDA

METHOD ENDPOINT TOKEN ROLE DESCRIPTION POST PARAMS RETURNS
POST /auth/signup - user User Signup name, email, password, { message: string, result: token }
POST /auth/login - user User Login email, password { message: string, result: token }

User Endpoints

METHOD ENDPOINT TOKEN ROLE DESCRIPTION POST PARAMS RETURNS
GET /user YES admin Get All Users { message: string, result: array }
GET /user/:id YES admin Get One User { message: string, result: object }
GET /user/profile YES user Get Own Profile { message: string, result: object }
PUT /user/:id YES admin Update One User name, email, password, role { message: string, result: object }
PUT /user/profile YES user Update Own Profile name, email { message: string, result: object }
PUT /user/password YES user Update Own password old password, new password { message: string, result: object }
POST /user YES admin Create One User name, email, password, role { message: string, result: object }

UserInfo Endpoints

METHOD ENDPOINT TOKEN ROLE DESCRIPTION POST PARAMS RETURNS
GET /UserInfo YES admin Get All Userinfo { message: string, result: array }
GET /UserInfo/:id YES user Get One Userinfo { message: string, result: object }
PUT /UserInfo/:id YES user Update One User info, avatar { message: string, result: object }
POST /user YES user Create One Userinfo info, avatar { message: string, result: object }

Posts Endpoints

METHOD ENDPOINT TOKEN ROLE DESCRIPTION POST PARAMS RETURNS
GET /post YES user Get All posts { message: string, result: array }
GET /post/:id YES user Get One post { message: string, result: object }
POST /post YES user Create post value { message: string, result: object }
POST /post/:id/ YES user Add post to game { message: string, result: object }

Games Endpoints

METHOD ENDPOINT TOKEN ROLE DESCRIPTION POST PARAMS RETURNS
GET /game YES user Get All games { message: string, result: array }
GET /game/:id YES user Get One game { message: string, result: object }
POST /game YES admin Create game name,launch_year,duration,dificulty,guide,game_image { message: string, result: object }
PUT /game/:id/like YES user add Like to game { message: string, result: object }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •