diff --git a/REST-API-Boards.md b/REST-API-Boards.md new file mode 100644 index 0000000..4a93b7a --- /dev/null +++ b/REST-API-Boards.md @@ -0,0 +1,19 @@ +## Information about boards of user +``` +curl -H "Authorization: Bearer a6DM_gOPRwBdynfXaGBaiiEwTiAuigR_Fj_81QmNpnf" \ + http://localhost:3000/api/users/XQMZgynx9M79qTtQc/boards +``` + +# The admin takes the ownership of ALL boards of the user (archived and not archived) where the user is admin on. + +| URL | Requires Admin Auth | HTTP Method | +| :--- | :--- | :--- | +| `/api/users/:id` | `yes` | `PUT` | + +```shell +curl -H "Authorization: Bearer t7iYB86mXoLfP_XsMegxF41oKT7iiA9lDYiKVtXcctl" \ + -H "Content-type:application/json" \ + -X PUT \ + http://localhost:3000/api/users/ztKvBTzCqmyJ77on8 \ + -d '{ "action": "takeOwnership" }' +``` \ No newline at end of file