Skip to content

Commit

Permalink
Merge pull request #134 from npauzenga/features/api-to-me-config
Browse files Browse the repository at this point in the history
fix User#delete
  • Loading branch information
npauzenga committed Feb 17, 2016
2 parents 99dfef3 + 989518f commit f468dc8
Show file tree
Hide file tree
Showing 19 changed files with 106 additions and 106 deletions.
2 changes: 1 addition & 1 deletion doc/api/gamenight/delete_game_nights:id.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion doc/api/gamenight/get_game_nights.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions doc/api/gamenight/get_game_nights:id.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"requests": [
{
"request_method": "GET",
"request_path": "/game_nights/3717",
"request_path": "/game_nights/3888",
"request_body": null,
"request_headers": {
},
Expand All @@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions doc/api/gamenight/patch_game_nights:id.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion doc/api/gamenight/post_game_nights.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion doc/api/group/delete_groups:id.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion doc/api/group/get_groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions doc/api/group/get_groups:id.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"requests": [
{
"request_method": "GET",
"request_path": "/groups/3660",
"request_path": "/groups/3839",
"request_body": null,
"request_headers": {
},
Expand All @@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions doc/api/group/patch_groups:id.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion doc/api/group/post_groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
162 changes: 81 additions & 81 deletions doc/api/index.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
},
Expand Down Expand Up @@ -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",
Expand All @@ -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"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion doc/api/profile/get_profiles.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions doc/api/profile/get_profiles:id.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"requests": [
{
"request_method": "GET",
"request_path": "/profiles/8874",
"request_path": "/profiles/9324",
"request_body": null,
"request_headers": {
},
Expand All @@ -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"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"resource": "User",
"http_method": "DELETE",
"route": "/user",
"description": "DELETE /users/:id",
"description": "DELETE /user",
"explanation": null,
"parameters": [

Expand Down

0 comments on commit f468dc8

Please sign in to comment.