Skip to content

Poposed API

David Taylor edited this page Oct 24, 2017 · 2 revisions

Proposed

/api/

Users

/users

get:

  • /current

    Get current user

  • /:user

    Get profile of user with username

  • /friends

    Get list of current user's friends

  • /users

    [possibly deprecated] Get all users

post:

  • /

    Register new user

  • /login

    Login

  • /request/:user

    Request to be friends with user with username

  • /accept/:user

    Accept friend request from user with username

put:

  • /current

    Update current user

delete:

  • /friend/:user

    Remove friend with username from list of current user's friends

Wishes

/wishes

get:

  • /

    Get current user's wishes

  • /claimed

    Get wishes claimed by current user

  • /:user

    Get wishes of user with username

post:

  • /

    Add wish of current user

  • /claim/:wish

    Claim wish with id

  • /unclaim/:wish

    Unclaim wish with id

put:

  • /:wish

    Update wish with ID

delete:

  • /:wish

    Remove wish from current user's wishes

Groups

/groups

get:

  • /

    Get groups with current user

post:

  • /

    Add group

  • /:group/users/:user

    Add user to group

put:

  • /:group

    Update group with id

delete:

  • /:group

    remove group

Clone this wiki locally