summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2015-02-15update NEWSFlorian Pritz1-0/+1
Maybe I remember to do it when merging next time... Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-15Merge branch 'api-rework' into workingFlorian Pritz88-461/+2987
2015-02-14Fix consistency of error_idsFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-14Use assoc array for service/files/verify_uploaded_filesFlorian Pritz2-2/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-14Use assoc array for service/user/apikeysFlorian Pritz3-6/+10
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-14Fix typo in error messageFlorian Pritz2-2/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-14Unify exceptions for unknown/invalid endpointsFlorian Pritz1-4/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-10api: Require the version to start with vFlorian Pritz2-2/+9
Makes the URL easier to understand (especially the v1 case). Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-08Add tests for \s\f::verify_uploaded_filesFlorian Pritz1-0/+85
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-08run-tests.sh: drop database in cleanupFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-08Add tests for invalid loginFlorian Pritz1-0/+32
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-08run-tests.sh: use trap to clean upFlorian Pritz1-5/+8
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-08tests: Remember previous state; print elapsed timeFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-08tests: Fix php dev server being slowFlorian Pritz2-3/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-08Add more testsFlorian Pritz1-0/+36
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-08Improve testcasesFlorian Pritz1-48/+189
- create apikeys/users on demand (no magic numbers) - add some more testcases - extract api version into function - readability cleanup Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-08run-tests.sh: Clean up old database before running testsFlorian Pritz2-0/+5
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-06Add more testsFlorian Pritz2-2/+56
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-06service/files::delete: Fix incorrect error when wrong ownerFlorian Pritz1-3/+4
Also improve the variable name for easier understanding. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-06fixup! Support database table prefixesFlorian Pritz1-8/+8
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-05service/files::history: Fix total_size if no resultsFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-05Add simple testsuiteFlorian Pritz6-1/+320
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-05fixup! Support database table prefixesFlorian Pritz2-7/+7
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-05Improve error line information in Test-MoreFlorian Pritz1-4/+8
This finds the last frame before Test-More instead of using the topmost frame. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-05Make Test-More useable for our usecaseFlorian Pritz2-5/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-05Add Test-MoreFlorian Pritz35-0/+1250
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03Support database table prefixesFlorian Pritz14-120/+212
This also cleans up some inconsistencies with quotes. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03lib/Image->get: check if ob_get_clean workedFlorian Pritz2-6/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03Use exceptions instead of show_errorFlorian Pritz18-35/+66
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03use function instead of variableFlorian Pritz1-2/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03generalize authentication handlingFlorian Pritz6-13/+50
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03api: implement file/create_multipasteFlorian Pritz5-47/+90
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03api: implement file/deleteFlorian Pritz3-49/+68
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03Remove unstable json apiFlorian Pritz4-67/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03Improve general exception handlingFlorian Pritz2-4/+13
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03api: handle json reply in api controllerFlorian Pritz3-9/+9
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03implement api/user/create_apikeyFlorian Pritz2-3/+19
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03Rework error handling in upload validatorFlorian Pritz8-22/+49
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-02Rework api error handlingFlorian Pritz5-33/+77
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16add some TODOsFlorian Pritz3-1/+8
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16fix multipaste in service/historyFlorian Pritz2-2/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16refactor service/file/historyFlorian Pritz1-24/+28
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16add initial user apiFlorian Pritz3-39/+102
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16add max_files_per_request to api/file/get_configFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16improve api errorsFlorian Pritz3-8/+9
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16Fix error in file/upload_historyFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16Improve history api for multipastesFlorian Pritz2-11/+37
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16add missing filesFlorian Pritz2-0/+88
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16miscFlorian Pritz4-93/+27
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16first go at reworking; needs to be redesignedFlorian Pritz7-76/+285
Signed-off-by: Florian Pritz <bluewind@xinu.at>