-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sketch out the requirements forthe multi PUT
These are the tests needed to fix #2
- Loading branch information
Showing
5 changed files
with
95 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
"group_name" | ||
"admin" | ||
"user" | ||
"anon" | ||
|
||
"permission_name" | ||
"can-register" | ||
"upload-avatar" | ||
"ban-user" | ||
|
||
"group_name", "permission_name" | ||
"admin", "ban-user" | ||
"anon", "can-register" | ||
"user", "upload-avatar" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Make sure we can PUT all of the config at one time | ||
PUT config / (module.path.join config.csj) 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"webserver" : { | ||
"views/config": { | ||
"view": "fostgres.sql", | ||
"configuration": { | ||
"dbname": ["request", "headers", "__pgdsn", "dbname"], | ||
"sql": [ | ||
{ | ||
"path": [], | ||
"GET": [ | ||
"SELECT name AS group_name FROM groups", | ||
"SELECT name AS permission_name FROM permissions", | ||
"SELECT * FROM group_permissions" | ||
], | ||
"PUT": [ | ||
{ | ||
"table": "groups", | ||
"columns": { | ||
"name": {"key": true, "source": "group_name"} | ||
} | ||
}, | ||
{ | ||
"table": "permissions", | ||
"columns": { | ||
"name": {"key": true, "source": "permission_name"} | ||
} | ||
}, | ||
{ | ||
"table": "group_permissions", | ||
"columns": { | ||
"group_name": {"key": true}, | ||
"permission_name": {"key": true} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
|