Skip to content
Gregory Hanson edited this page Nov 1, 2017 · 10 revisions

API

prefix: /api

Profiles

prefix: /profiles

Get

/:username

Post

/:username/friend

Add user with username as friend to current user

/:username/delete

Remove friendship with user with username

/:username/request

Request to be friends with user with username

/:username/accept

Accept friendship request from user with username

Users

Get

/:user

Get user with id

/friends

Get friends of current user

/users

Get all users

Put

/:user

Update user with id

Post

/users/login

Login user

Errors:

401: Wrong Username/Password Combination

/users

Register user

Errors:

409: Username taken

406: Password restrictions not met

Wishes

prefix: /wishes

Get

/

Get wishes of current user

/user/:user

Get wishes of user

/claimed

Get claimed wishes of current user

Post

/

Add wish of current user

/:wish/claim

Claim wish with id

/:wish/unclaim

Unclaim wish with id

Delete

/:wish

Remove wish with id