Commit Graph
71 Commits
Author SHA1 Message Date
Joe Nelson be2f1f8e9e Merge pull request #83 from begriffs/404
Issue 404 for nonexistent tables
2014-10-14 19:02:06 -07:00
Joe Nelson 93c573ab4f Issue 404 for nonexistent tables
Fixes #44
2014-10-14 18:58:55 -07:00
Joe Nelson 37c0a2d831 All tests passing, none pending
Standardize the order of enum value lists
2014-10-14 15:03:07 -07:00
Joe Nelson 36b62de998 Merge pull request #79 from begriffs/favicon
Added a favicon, so important!
2014-10-14 13:47:15 -07:00
Joe Nelson f1feaecf27 Fix Content-Location header when there are no params
Fixes #68
2014-10-14 11:49:36 -07:00
Joe Nelson 21e4e583ec Return [] rather than nothing on no results
Fixes #70
2014-10-14 11:23:26 -07:00
Joe Nelson 2338d000e1 Added a favicon, so important!
Fixes #71
2014-10-14 11:13:55 -07:00
Joe Nelson fbb13f4ab3 Accept order query param
Fixes #66
2014-10-13 22:29:28 -07:00
Joe Nelson 9c84cf9c3d Fix lint warnings 2014-10-13 18:16:41 -07:00
Adam C. Baker 5630ee52fd Merge branch 'master' into errors
Conflicts:
	src/Main.hs
	src/Middleware.hs
2014-10-13 17:45:32 -07:00
Adam C. Baker f81ca8bf0b move auth out of dbapi, use middleware, put in main 2014-10-13 16:52:14 -07:00
Adam C. Baker fff84cca90 rename reportPgErrors to clientErrors 2014-10-13 16:51:21 -07:00
Adam C. Baker dcdca445b5 authenticated middleware 2014-10-13 16:48:20 -07:00
Adam C. Baker f7c825f646 rename pgSetRole, pgResetRole to setRole, resetRole 2014-10-13 16:46:33 -07:00
Adam C. Baker 2028500da7 withSavepoint middleware 2014-10-13 13:04:25 -07:00
Joe Nelson abccb295a3 Remove internal TLS, add option for HTTPS redirection 2014-10-12 19:52:20 -07:00
Adam C. Baker a984fe3bf9 flip args to inTransaction 2014-10-10 17:32:17 -07:00
Adam C. Baker e4669dcb37 handle all requests in a transaction. 2014-10-10 17:16:56 -07:00
Adam C. Baker a973020748 handle inserting no data correctly
with "insert into [table] default values"
2014-10-10 16:52:01 -07:00
Adam C. Baker 0879ed7110 flip app args 2014-10-10 15:54:05 -07:00
Joe Nelson a34051b177 Successful PUT requests actually return 200 2014-10-09 18:00:37 -07:00
Adam C. Baker ef6b38ea1e reformat raw sql for readability 2014-10-09 14:11:35 -07:00
Adam C. Baker ea17642f08 Better error for mkColumn 2014-10-09 14:11:21 -07:00
Adam C. Baker 5dd3f9c79a Merge branch 'fk'
Conflicts:
	src/PgStructure.hs
	test/Feature/StructureSpec.hs
	test/fixtures/schema.sql
2014-10-09 12:30:39 -07:00
Joe Nelson ecff987f31 Include "enum" field in column details 2014-10-08 16:51:42 -07:00
Adam C. Baker ee02a98cf2 emit references for columns with foreign keys 2014-10-08 16:38:12 -07:00
Adam C. Baker c9fc2154ab fix basic auth parsing 2014-10-08 16:37:30 -07:00
Adam C. Baker f0e8d23dd2 getting foreign key data with a column. 2014-10-08 15:20:26 -07:00
Adam C. Baker 59f9855362 return a map of foreign keys 2014-10-08 15:20:26 -07:00
Adam C. Baker d16ecdc28f data/procedure for foreign key 2014-10-08 15:20:26 -07:00
Joe Nelson 527d51670c WIP: Trap postgres errors in middleware
Fixes #39
2014-10-08 14:58:38 -07:00
Joe Nelson 68d0a38806 WIP: feature specs for auth 2014-10-08 14:48:31 -07:00
Joe Nelson 8fbe3839a6 Allow browsers to load table OPTIONS after preflight
Fixes #51
2014-10-07 14:55:11 -07:00
Joe Nelson 496e8421a9 Provide column default values in OPTIONS
Fixes #43
2014-10-07 11:56:54 -07:00
Joe Nelson 2f37b6caeb Rudimentary cors feature spec 2014-10-03 16:00:06 -07:00
Adam C. BakerandJoe Nelson dac9f02578 allow options, capital Authorization. 2014-10-03 14:47:29 -07:00
Adam C. BakerandJoe Nelson 0067f60316 first pass at CORS handling. 2014-10-03 14:47:29 -07:00
Joe Nelson 6b325e0139 Make the anonymous pg role a mandatory argument 2014-10-03 13:56:02 -07:00
Adam C. Baker bfa6a968a6 more unit-y unit tests 2014-10-01 15:42:57 -07:00
Joe Nelson 598d70579e WIP: change db roles based on HTTP basic auth headers 2014-09-29 22:52:02 -07:00
Joe Nelson b29e07538c Manage passwords with bcrypt 2014-09-29 17:45:36 -07:00
Adam C. BakerandJoe Nelson 14fa20f0e6 addUser function. 2014-09-29 15:52:01 -07:00
Joe Nelson e5c4567166 Gzip compression 2014-09-29 14:06:42 -07:00
Joe Nelson 2f584be0d6 HTTPS only 2014-09-29 14:06:20 -07:00
Joe Nelson 631f651f44 List table columns as array, not hash 2014-09-29 11:40:20 -07:00
Joe Nelson 29d278f6bd One string conversion to rule them all 2014-09-28 10:41:37 -07:00
Adam C. Baker 29b70ca035 selective exports hides implementation details. 2014-09-26 13:25:32 -07:00
Adam C. Baker a93065a887 specify schema as a string everywhere in the app.
This will make it easier to support semantic API versioning,
and makes code reuse easier right now.
2014-09-26 12:51:36 -07:00
Joe Nelson 909661f899 Remove random comments 2014-09-11 20:22:52 -07:00
Joe Nelson 016490bea7 Fix hlint 2014-09-10 21:32:30 -07:00