From 989518fa083f69053321e29e554cb38c2a1c7b0e Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 16 Feb 2016 21:31:57 -0500 Subject: [PATCH] fix User#delete --- doc/api/gamenight/delete_game_nights:id.json | 2 +- doc/api/gamenight/get_game_nights.json | 2 +- doc/api/gamenight/get_game_nights:id.json | 4 +- doc/api/gamenight/patch_game_nights:id.json | 4 +- doc/api/gamenight/post_game_nights.json | 2 +- doc/api/group/delete_groups:id.json | 2 +- doc/api/group/get_groups.json | 2 +- doc/api/group/get_groups:id.json | 4 +- doc/api/group/patch_groups:id.json | 4 +- doc/api/group/post_groups.json | 2 +- doc/api/index.json | 162 +++++++++--------- doc/api/profile/get_profiles.json | 2 +- doc/api/profile/get_profiles:id.json | 4 +- ...{delete_users:id.json => delete_user.json} | 2 +- doc/api/user/patch_user.json | 2 +- doc/api/user/post_user.json | 2 +- ...s:game_night_idgame_night_attendances.json | 4 +- ...post_groups:group_idgroup_memberships.json | 4 +- spec/acceptance/users_spec.rb | 2 +- 19 files changed, 106 insertions(+), 106 deletions(-) rename doc/api/user/{delete_users:id.json => delete_user.json} (94%) diff --git a/doc/api/gamenight/delete_game_nights:id.json b/doc/api/gamenight/delete_game_nights:id.json index 246571d..004c222 100644 --- a/doc/api/gamenight/delete_game_nights:id.json +++ b/doc/api/gamenight/delete_game_nights:id.json @@ -17,7 +17,7 @@ "requests": [ { "request_method": "DELETE", - "request_path": "/game_nights/3715", + "request_path": "/game_nights/3889", "request_body": null, "request_headers": { "Content-Type": "application/x-www-form-urlencoded" diff --git a/doc/api/gamenight/get_game_nights.json b/doc/api/gamenight/get_game_nights.json index a24b919..3f6dc36 100644 --- a/doc/api/gamenight/get_game_nights.json +++ b/doc/api/gamenight/get_game_nights.json @@ -22,7 +22,7 @@ "request_content_type": null, "response_status": 200, "response_status_text": "OK", - "response_body": "{\n \"data\": [\n {\n \"id\": \"3718\",\n \"type\": \"game_nights\",\n \"attributes\": {\n \"name\": \"Louisiana griffins\",\n \"time\": \"2016-02-23T00:00:00.000Z\",\n \"location_name\": \"Kozey-Marquardt\",\n \"location_address\": \"Larson Circle\"\n }\n },\n {\n \"id\": \"3719\",\n \"type\": \"game_nights\",\n \"attributes\": {\n \"name\": \"Louisiana griffins\",\n \"time\": \"2016-02-18T00:00:00.000Z\",\n \"location_name\": \"Kozey-Marquardt\",\n \"location_address\": \"Larson Circle\"\n }\n },\n {\n \"id\": \"3720\",\n \"type\": \"game_nights\",\n \"attributes\": {\n \"name\": \"Louisiana griffins\",\n \"time\": \"2016-02-20T00:00:00.000Z\",\n \"location_name\": \"Kozey-Marquardt\",\n \"location_address\": \"Larson Circle\"\n }\n }\n ]\n}", + "response_body": "{\n \"data\": [\n {\n \"id\": \"3890\",\n \"type\": \"game_nights\",\n \"attributes\": {\n \"name\": \"Washington fishes\",\n \"time\": \"2016-02-18T00:00:00.000Z\",\n \"location_name\": \"Cummerata, Feest and Schmitt\",\n \"location_address\": \"Joanny Ridge\"\n }\n },\n {\n \"id\": \"3891\",\n \"type\": \"game_nights\",\n \"attributes\": {\n \"name\": \"Washington fishes\",\n \"time\": \"2016-02-22T00:00:00.000Z\",\n \"location_name\": \"Cummerata, Feest and Schmitt\",\n \"location_address\": \"Joanny Ridge\"\n }\n },\n {\n \"id\": \"3892\",\n \"type\": \"game_nights\",\n \"attributes\": {\n \"name\": \"Washington fishes\",\n \"time\": \"2016-02-21T00:00:00.000Z\",\n \"location_name\": \"Cummerata, Feest and Schmitt\",\n \"location_address\": \"Joanny Ridge\"\n }\n }\n ]\n}", "response_headers": { "Content-Type": "application/json; charset=utf-8" }, diff --git a/doc/api/gamenight/get_game_nights:id.json b/doc/api/gamenight/get_game_nights:id.json index f55de27..7ace0f9 100644 --- a/doc/api/gamenight/get_game_nights:id.json +++ b/doc/api/gamenight/get_game_nights:id.json @@ -17,7 +17,7 @@ "requests": [ { "request_method": "GET", - "request_path": "/game_nights/3717", + "request_path": "/game_nights/3888", "request_body": null, "request_headers": { }, @@ -26,7 +26,7 @@ "request_content_type": null, "response_status": 200, "response_status_text": "OK", - "response_body": "{\n \"data\": {\n \"id\": \"3717\",\n \"type\": \"game_nights\",\n \"attributes\": {\n \"name\": \"Louisiana griffins\",\n \"time\": \"2016-02-23T00:00:00.000Z\",\n \"location_name\": \"Kozey-Marquardt\",\n \"location_address\": \"Larson Circle\"\n }\n }\n}", + "response_body": "{\n \"data\": {\n \"id\": \"3888\",\n \"type\": \"game_nights\",\n \"attributes\": {\n \"name\": \"Washington fishes\",\n \"time\": \"2016-02-17T00:00:00.000Z\",\n \"location_name\": \"Cummerata, Feest and Schmitt\",\n \"location_address\": \"Joanny Ridge\"\n }\n }\n}", "response_headers": { "Content-Type": "application/json; charset=utf-8" }, diff --git a/doc/api/gamenight/patch_game_nights:id.json b/doc/api/gamenight/patch_game_nights:id.json index 321527a..ec3f70b 100644 --- a/doc/api/gamenight/patch_game_nights:id.json +++ b/doc/api/gamenight/patch_game_nights:id.json @@ -39,7 +39,7 @@ "requests": [ { "request_method": "PATCH", - "request_path": "/game_nights/3721", + "request_path": "/game_nights/3886", "request_body": "game_night[name]=New+Name&game_night[time]=2015-09-12+22%3A49%3A27+%2B0530&game_night[location_name]=Library&game_night[location_address]=999+main+st.+Silver+Spring%2C+MD+20910", "request_headers": { "Content-Type": "application/x-www-form-urlencoded" @@ -49,7 +49,7 @@ "request_content_type": "application/x-www-form-urlencoded", "response_status": 200, "response_status_text": "OK", - "response_body": "{\n \"data\": {\n \"id\": \"3721\",\n \"type\": \"game_nights\",\n \"attributes\": {\n \"name\": \"New Name\",\n \"time\": \"2015-09-12T17:19:27.000Z\",\n \"location_name\": \"Library\",\n \"location_address\": \"999 main st. Silver Spring, MD 20910\"\n }\n }\n}", + "response_body": "{\n \"data\": {\n \"id\": \"3886\",\n \"type\": \"game_nights\",\n \"attributes\": {\n \"name\": \"New Name\",\n \"time\": \"2015-09-12T17:19:27.000Z\",\n \"location_name\": \"Library\",\n \"location_address\": \"999 main st. Silver Spring, MD 20910\"\n }\n }\n}", "response_headers": { "Content-Type": "application/json; charset=utf-8" }, diff --git a/doc/api/gamenight/post_game_nights.json b/doc/api/gamenight/post_game_nights.json index b475043..58f4a36 100644 --- a/doc/api/gamenight/post_game_nights.json +++ b/doc/api/gamenight/post_game_nights.json @@ -44,7 +44,7 @@ "request_content_type": "application/x-www-form-urlencoded", "response_status": 201, "response_status_text": "Created", - "response_body": "{\n \"data\": {\n \"id\": \"3716\",\n \"type\": \"game_nights\",\n \"attributes\": {\n \"name\": \"Waaggh\",\n \"time\": \"2015-09-12T17:19:27.000Z\",\n \"location_name\": \"Library\",\n \"location_address\": \"999 main st. Silver Spring, MD 20910\"\n }\n }\n}", + "response_body": "{\n \"data\": {\n \"id\": \"3887\",\n \"type\": \"game_nights\",\n \"attributes\": {\n \"name\": \"Waaggh\",\n \"time\": \"2015-09-12T17:19:27.000Z\",\n \"location_name\": \"Library\",\n \"location_address\": \"999 main st. Silver Spring, MD 20910\"\n }\n }\n}", "response_headers": { "Content-Type": "application/json; charset=utf-8" }, diff --git a/doc/api/group/delete_groups:id.json b/doc/api/group/delete_groups:id.json index 48a665a..7a8d07a 100644 --- a/doc/api/group/delete_groups:id.json +++ b/doc/api/group/delete_groups:id.json @@ -17,7 +17,7 @@ "requests": [ { "request_method": "DELETE", - "request_path": "/groups/3655", + "request_path": "/groups/3841", "request_body": null, "request_headers": { "Content-Type": "application/x-www-form-urlencoded" diff --git a/doc/api/group/get_groups.json b/doc/api/group/get_groups.json index a33e516..fcb7f9d 100644 --- a/doc/api/group/get_groups.json +++ b/doc/api/group/get_groups.json @@ -22,7 +22,7 @@ "request_content_type": null, "response_status": 200, "response_status_text": "OK", - "response_body": "{\n \"data\": [\n {\n \"id\": \"3657\",\n \"type\": \"groups\",\n \"attributes\": {\n \"name\": \"Wyoming kangaroos\",\n \"city\": \"Jordymouth\",\n \"state\": \"Texas\",\n \"country\": \"Austria\",\n \"facebook\": \"http://facebook.com/maiya\",\n \"twitter\": \"http://twitter.com/mariah.hagenes\"\n }\n },\n {\n \"id\": \"3658\",\n \"type\": \"groups\",\n \"attributes\": {\n \"name\": \"Wyoming kangaroos\",\n \"city\": \"Jordymouth\",\n \"state\": \"Texas\",\n \"country\": \"Austria\",\n \"facebook\": \"http://facebook.com/maiya\",\n \"twitter\": \"http://twitter.com/mariah.hagenes\"\n }\n },\n {\n \"id\": \"3659\",\n \"type\": \"groups\",\n \"attributes\": {\n \"name\": \"Wyoming kangaroos\",\n \"city\": \"Jordymouth\",\n \"state\": \"Texas\",\n \"country\": \"Austria\",\n \"facebook\": \"http://facebook.com/maiya\",\n \"twitter\": \"http://twitter.com/mariah.hagenes\"\n }\n }\n ]\n}", + "response_body": "{\n \"data\": [\n {\n \"id\": \"3835\",\n \"type\": \"groups\",\n \"attributes\": {\n \"name\": \"Minnesota wolves\",\n \"city\": \"North Kallie\",\n \"state\": \"Georgia\",\n \"country\": \"Malta\",\n \"facebook\": \"http://facebook.com/antonette\",\n \"twitter\": \"http://twitter.com/darrell\"\n }\n },\n {\n \"id\": \"3836\",\n \"type\": \"groups\",\n \"attributes\": {\n \"name\": \"Minnesota wolves\",\n \"city\": \"North Kallie\",\n \"state\": \"Georgia\",\n \"country\": \"Malta\",\n \"facebook\": \"http://facebook.com/antonette\",\n \"twitter\": \"http://twitter.com/darrell\"\n }\n },\n {\n \"id\": \"3837\",\n \"type\": \"groups\",\n \"attributes\": {\n \"name\": \"Minnesota wolves\",\n \"city\": \"North Kallie\",\n \"state\": \"Georgia\",\n \"country\": \"Malta\",\n \"facebook\": \"http://facebook.com/antonette\",\n \"twitter\": \"http://twitter.com/darrell\"\n }\n }\n ]\n}", "response_headers": { "Content-Type": "application/json; charset=utf-8" }, diff --git a/doc/api/group/get_groups:id.json b/doc/api/group/get_groups:id.json index 55bb915..5e77aff 100644 --- a/doc/api/group/get_groups:id.json +++ b/doc/api/group/get_groups:id.json @@ -17,7 +17,7 @@ "requests": [ { "request_method": "GET", - "request_path": "/groups/3660", + "request_path": "/groups/3839", "request_body": null, "request_headers": { }, @@ -26,7 +26,7 @@ "request_content_type": null, "response_status": 200, "response_status_text": "OK", - "response_body": "{\n \"data\": {\n \"id\": \"3660\",\n \"type\": \"groups\",\n \"attributes\": {\n \"name\": \"Wyoming kangaroos\",\n \"city\": \"Jordymouth\",\n \"state\": \"Texas\",\n \"country\": \"Austria\",\n \"facebook\": \"http://facebook.com/maiya\",\n \"twitter\": \"http://twitter.com/mariah.hagenes\"\n }\n }\n}", + "response_body": "{\n \"data\": {\n \"id\": \"3839\",\n \"type\": \"groups\",\n \"attributes\": {\n \"name\": \"Minnesota wolves\",\n \"city\": \"North Kallie\",\n \"state\": \"Georgia\",\n \"country\": \"Malta\",\n \"facebook\": \"http://facebook.com/antonette\",\n \"twitter\": \"http://twitter.com/darrell\"\n }\n }\n}", "response_headers": { "Content-Type": "application/json; charset=utf-8" }, diff --git a/doc/api/group/patch_groups:id.json b/doc/api/group/patch_groups:id.json index 8a4092c..6283ac5 100644 --- a/doc/api/group/patch_groups:id.json +++ b/doc/api/group/patch_groups:id.json @@ -53,7 +53,7 @@ "requests": [ { "request_method": "PATCH", - "request_path": "/groups/3656", + "request_path": "/groups/3840", "request_body": "group[name]=Zombicide+Tuesdays&group[city]=Washington&group[state]=DC&group[country]=USA&group[facebook]=facebook.com%2Fzombie&group[twitter]=%40zombie", "request_headers": { "Content-Type": "application/x-www-form-urlencoded" @@ -63,7 +63,7 @@ "request_content_type": "application/x-www-form-urlencoded", "response_status": 200, "response_status_text": "OK", - "response_body": "{\n \"data\": {\n \"id\": \"3656\",\n \"type\": \"groups\",\n \"attributes\": {\n \"name\": \"Zombicide Tuesdays\",\n \"city\": \"Washington\",\n \"state\": \"DC\",\n \"country\": \"USA\",\n \"facebook\": \"facebook.com/zombie\",\n \"twitter\": \"@zombie\"\n }\n }\n}", + "response_body": "{\n \"data\": {\n \"id\": \"3840\",\n \"type\": \"groups\",\n \"attributes\": {\n \"name\": \"Zombicide Tuesdays\",\n \"city\": \"Washington\",\n \"state\": \"DC\",\n \"country\": \"USA\",\n \"facebook\": \"facebook.com/zombie\",\n \"twitter\": \"@zombie\"\n }\n }\n}", "response_headers": { "Content-Type": "application/json; charset=utf-8" }, diff --git a/doc/api/group/post_groups.json b/doc/api/group/post_groups.json index 437d80c..f54fd28 100644 --- a/doc/api/group/post_groups.json +++ b/doc/api/group/post_groups.json @@ -58,7 +58,7 @@ "request_content_type": "application/x-www-form-urlencoded", "response_status": 201, "response_status_text": "Created", - "response_body": "{\n \"data\": {\n \"id\": \"3661\",\n \"type\": \"groups\",\n \"attributes\": {\n \"name\": \"Waaggh\",\n \"city\": \"Washington\",\n \"state\": \"DC\",\n \"country\": \"USA\",\n \"facebook\": \"facebook.com/waaaggh\",\n \"twitter\": \"@waaggh\"\n }\n }\n}", + "response_body": "{\n \"data\": {\n \"id\": \"3838\",\n \"type\": \"groups\",\n \"attributes\": {\n \"name\": \"Waaggh\",\n \"city\": \"Washington\",\n \"state\": \"DC\",\n \"country\": \"USA\",\n \"facebook\": \"facebook.com/waaaggh\",\n \"twitter\": \"@waaggh\"\n }\n }\n}", "response_headers": { "Content-Type": "application/json; charset=utf-8" }, diff --git a/doc/api/index.json b/doc/api/index.json index 51a1bf0..0ff97ed 100644 --- a/doc/api/index.json +++ b/doc/api/index.json @@ -1,68 +1,14 @@ { "resources": [ { - "name": "GameNight", - "examples": [ - { - "description": "DELETE /game_nights/:id", - "link": "gamenight/delete_game_nights:id.json", - "groups": "all", - "route": "/game_nights/:id", - "method": "delete" - }, - { - "description": "POST /game_nights", - "link": "gamenight/post_game_nights.json", - "groups": "all", - "route": "/game_nights", - "method": "post" - }, - { - "description": "GET /game_nights/:id", - "link": "gamenight/get_game_nights:id.json", - "groups": "all", - "route": "/game_nights/:id", - "method": "get" - }, - { - "description": "GET /game_nights/", - "link": "gamenight/get_game_nights.json", - "groups": "all", - "route": "/game_nights/", - "method": "get" - }, - { - "description": "PATCH /game_nights/:id", - "link": "gamenight/patch_game_nights:id.json", - "groups": "all", - "route": "/game_nights/:id", - "method": "patch" - } - ] - }, - { - "name": "User", + "name": "UserGroupMembership", "examples": [ { - "description": "DELETE /users/:id", - "link": "user/delete_users:id.json", - "groups": "all", - "route": "/user", - "method": "delete" - }, - { - "description": "POST /user", - "link": "user/post_user.json", + "description": "POST /groups/:group_id/group_memberships", + "link": "usergroupmembership/post_groups:group_idgroup_memberships.json", "groups": "all", - "route": "/user", + "route": "/groups/:group_id/group_memberships", "method": "post" - }, - { - "description": "PATCH /user", - "link": "user/patch_user.json", - "groups": "all", - "route": "/user", - "method": "patch" } ] }, @@ -98,26 +44,28 @@ ] }, { - "name": "UserGroupMembership", + "name": "Group", "examples": [ { - "description": "POST /groups/:group_id/group_memberships", - "link": "usergroupmembership/post_groups:group_idgroup_memberships.json", + "description": "GET /groups/", + "link": "group/get_groups.json", "groups": "all", - "route": "/groups/:group_id/group_memberships", + "route": "/groups/", + "method": "get" + }, + { + "description": "POST /groups", + "link": "group/post_groups.json", + "groups": "all", + "route": "/groups", "method": "post" - } - ] - }, - { - "name": "Group", - "examples": [ + }, { - "description": "DELETE /groups/:id", - "link": "group/delete_groups:id.json", + "description": "GET /groups/:id", + "link": "group/get_groups:id.json", "groups": "all", "route": "/groups/:id", - "method": "delete" + "method": "get" }, { "description": "PATCH /groups/:id", @@ -127,25 +75,77 @@ "method": "patch" }, { - "description": "GET /groups/", - "link": "group/get_groups.json", + "description": "DELETE /groups/:id", + "link": "group/delete_groups:id.json", "groups": "all", - "route": "/groups/", - "method": "get" + "route": "/groups/:id", + "method": "delete" + } + ] + }, + { + "name": "GameNight", + "examples": [ + { + "description": "PATCH /game_nights/:id", + "link": "gamenight/patch_game_nights:id.json", + "groups": "all", + "route": "/game_nights/:id", + "method": "patch" }, { - "description": "GET /groups/:id", - "link": "group/get_groups:id.json", + "description": "POST /game_nights", + "link": "gamenight/post_game_nights.json", "groups": "all", - "route": "/groups/:id", + "route": "/game_nights", + "method": "post" + }, + { + "description": "GET /game_nights/:id", + "link": "gamenight/get_game_nights:id.json", + "groups": "all", + "route": "/game_nights/:id", "method": "get" }, { - "description": "POST /groups", - "link": "group/post_groups.json", + "description": "DELETE /game_nights/:id", + "link": "gamenight/delete_game_nights:id.json", "groups": "all", - "route": "/groups", + "route": "/game_nights/:id", + "method": "delete" + }, + { + "description": "GET /game_nights/", + "link": "gamenight/get_game_nights.json", + "groups": "all", + "route": "/game_nights/", + "method": "get" + } + ] + }, + { + "name": "User", + "examples": [ + { + "description": "POST /user", + "link": "user/post_user.json", + "groups": "all", + "route": "/user", "method": "post" + }, + { + "description": "PATCH /user", + "link": "user/patch_user.json", + "groups": "all", + "route": "/user", + "method": "patch" + }, + { + "description": "DELETE /user", + "link": "user/delete_user.json", + "groups": "all", + "route": "/user", + "method": "delete" } ] } diff --git a/doc/api/profile/get_profiles.json b/doc/api/profile/get_profiles.json index 4ea8b01..a7e84a3 100644 --- a/doc/api/profile/get_profiles.json +++ b/doc/api/profile/get_profiles.json @@ -22,7 +22,7 @@ "request_content_type": null, "response_status": 200, "response_status_text": "OK", - "response_body": "{\n \"data\": [\n {\n \"id\": \"8873\",\n \"type\": \"users\",\n \"attributes\": {\n \"first_name\": \"Arlo\",\n \"last_name\": \"Corkery\",\n \"email\": \"noemie@stokes.co\",\n \"city\": \"Rowenaton\",\n \"state\": \"Washington\",\n \"country\": \"Democratic People's Republic of Korea\"\n }\n }\n ]\n}", + "response_body": "{\n \"data\": [\n {\n \"id\": \"9323\",\n \"type\": \"users\",\n \"attributes\": {\n \"first_name\": \"Fay\",\n \"last_name\": \"Oberbrunner\",\n \"email\": \"caesar@jacobson.biz\",\n \"city\": \"Lake Lesleyshire\",\n \"state\": \"New Hampshire\",\n \"country\": \"Lesotho\"\n }\n }\n ]\n}", "response_headers": { "Content-Type": "application/json; charset=utf-8" }, diff --git a/doc/api/profile/get_profiles:id.json b/doc/api/profile/get_profiles:id.json index 95c7166..160958e 100644 --- a/doc/api/profile/get_profiles:id.json +++ b/doc/api/profile/get_profiles:id.json @@ -17,7 +17,7 @@ "requests": [ { "request_method": "GET", - "request_path": "/profiles/8874", + "request_path": "/profiles/9324", "request_body": null, "request_headers": { }, @@ -26,7 +26,7 @@ "request_content_type": null, "response_status": 200, "response_status_text": "OK", - "response_body": "{\n \"data\": {\n \"id\": \"8874\",\n \"type\": \"users\",\n \"attributes\": {\n \"first_name\": \"Arlo\",\n \"last_name\": \"Corkery\",\n \"email\": \"noemie@stokes.co\",\n \"city\": \"Rowenaton\",\n \"state\": \"Washington\",\n \"country\": \"Democratic People's Republic of Korea\"\n }\n }\n}", + "response_body": "{\n \"data\": {\n \"id\": \"9324\",\n \"type\": \"users\",\n \"attributes\": {\n \"first_name\": \"Fay\",\n \"last_name\": \"Oberbrunner\",\n \"email\": \"caesar@jacobson.biz\",\n \"city\": \"Lake Lesleyshire\",\n \"state\": \"New Hampshire\",\n \"country\": \"Lesotho\"\n }\n }\n}", "response_headers": { "Content-Type": "application/json; charset=utf-8" }, diff --git a/doc/api/user/delete_users:id.json b/doc/api/user/delete_user.json similarity index 94% rename from doc/api/user/delete_users:id.json rename to doc/api/user/delete_user.json index 6fb7bc5..2e0380e 100644 --- a/doc/api/user/delete_users:id.json +++ b/doc/api/user/delete_user.json @@ -2,7 +2,7 @@ "resource": "User", "http_method": "DELETE", "route": "/user", - "description": "DELETE /users/:id", + "description": "DELETE /user", "explanation": null, "parameters": [ diff --git a/doc/api/user/patch_user.json b/doc/api/user/patch_user.json index 872a379..cf3f214 100644 --- a/doc/api/user/patch_user.json +++ b/doc/api/user/patch_user.json @@ -64,7 +64,7 @@ "request_content_type": "application/x-www-form-urlencoded", "response_status": 200, "response_status_text": "OK", - "response_body": "{\n \"data\": {\n \"id\": \"8871\",\n \"type\": \"users\",\n \"attributes\": {\n \"first_name\": \"John Doe\",\n \"last_name\": \"Pauzenga\",\n \"email\": \"admin@test.com\",\n \"city\": \"Annapolis\",\n \"state\": \"MD\",\n \"country\": \"USA\"\n }\n }\n}", + "response_body": "{\n \"data\": {\n \"id\": \"9336\",\n \"type\": \"users\",\n \"attributes\": {\n \"first_name\": \"John Doe\",\n \"last_name\": \"Pauzenga\",\n \"email\": \"admin@test.com\",\n \"city\": \"Annapolis\",\n \"state\": \"MD\",\n \"country\": \"USA\"\n }\n }\n}", "response_headers": { "Content-Type": "application/json; charset=utf-8" }, diff --git a/doc/api/user/post_user.json b/doc/api/user/post_user.json index a13bc36..8db29a5 100644 --- a/doc/api/user/post_user.json +++ b/doc/api/user/post_user.json @@ -64,7 +64,7 @@ "request_content_type": "application/x-www-form-urlencoded", "response_status": 201, "response_status_text": "Created", - "response_body": "{\n \"jwt\": {\n \"payload\": {\n \"sub\": 8870\n },\n \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0NTU3NjA3MzUsImF1ZCI6bnVsbCwic3ViIjo4ODcwfQ.RaQAHpsMfr5_m6ekS_zEiiKnIb6zR5D99GY7vt1CCDY\"\n }\n}", + "response_body": "{\n \"jwt\": {\n \"payload\": {\n \"sub\": 9335\n },\n \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0NTU3NjI2OTgsImF1ZCI6bnVsbCwic3ViIjo5MzM1fQ.7s-kfylRFch_UdyGPlscKLTKEF5Av5QV_fj1KZ4g3V0\"\n }\n}", "response_headers": { "Content-Type": "application/json; charset=utf-8" }, diff --git a/doc/api/usergamenightattendance/post_game_nights:game_night_idgame_night_attendances.json b/doc/api/usergamenightattendance/post_game_nights:game_night_idgame_night_attendances.json index 5481b84..d6335c5 100644 --- a/doc/api/usergamenightattendance/post_game_nights:game_night_idgame_night_attendances.json +++ b/doc/api/usergamenightattendance/post_game_nights:game_night_idgame_night_attendances.json @@ -18,8 +18,8 @@ "requests": [ { "request_method": "POST", - "request_path": "/game_nights/3722/game_night_attendances", - "request_body": "game_night[game_night_id]=3722", + "request_path": "/game_nights/3885/game_night_attendances", + "request_body": "game_night[game_night_id]=3885", "request_headers": { "Content-Type": "application/x-www-form-urlencoded" }, diff --git a/doc/api/usergroupmembership/post_groups:group_idgroup_memberships.json b/doc/api/usergroupmembership/post_groups:group_idgroup_memberships.json index fc0c04e..c9a38f6 100644 --- a/doc/api/usergroupmembership/post_groups:group_idgroup_memberships.json +++ b/doc/api/usergroupmembership/post_groups:group_idgroup_memberships.json @@ -18,8 +18,8 @@ "requests": [ { "request_method": "POST", - "request_path": "/groups/3654/group_memberships", - "request_body": "group[group_id]=3654", + "request_path": "/groups/3834/group_memberships", + "request_body": "group[group_id]=3834", "request_headers": { "Content-Type": "application/x-www-form-urlencoded" }, diff --git a/spec/acceptance/users_spec.rb b/spec/acceptance/users_spec.rb index 10ba56a..75f56f9 100644 --- a/spec/acceptance/users_spec.rb +++ b/spec/acceptance/users_spec.rb @@ -81,7 +81,7 @@ let(:id) { authenticated_user.id } - example_request "DELETE /users/:id" do + example_request "DELETE /user" do expect(status).to eq 204 end end