Commit Graph

25 Commits (ae72f0c158a0eb0f6bbb098aa61d3b031ece0d66)

Author SHA1 Message Date
Jörn Friedrich Dreyer 5a588333b2 introduce and use getCurrentConnection() 11 years ago
Jörn Friedrich Dreyer dd20b9f672 reset collection to 'root' after adding a route to the api 11 years ago
Vincent Petry 972fffbe02 Return 503 OCS response with requested format 11 years ago
Lukas Reschke e88731a477 Some more PHPDoc fixes 11 years ago
Thomas Müller 88f6dd7db1 fixing method names 11 years ago
Thomas Müller 743addd1e3 set content-type on ocs exceptions 11 years ago
Robin Appelman 26793e1f94 switch OC::getRouter usages to OC::$server->getRouter 11 years ago
Thomas Müller 25f523680a fixing ident 11 years ago
Thomas Müller 0d90b90d94 we first shall check if the current session is valid - otherwise the session-id will be regenerated on login via basic auth 11 years ago
Jörn Friedrich Dreyer 2a6a9a8cef polish documentation based on scrutinizer patches 11 years ago
Bjoern Schiessle 6845860470 keep response message 11 years ago
tomneedham 1449437c9e Merge multiple failed third party responses when returning the result 12 years ago
tomneedham bb182bbfb2 Merge multiple shipped failures before responding. 12 years ago
tomneedham ca5c39a3a1 Return failed shipped responses over succedded shipped responses 12 years ago
tomneedham a39f3fdbf9 Return result object when only one successful response is returned 12 years ago
tomneedham 790055571d Update lib/private/api.php after merge conflict 12 years ago
tomneedham f19caeed33 Remove OC_App dependancy from OC_API::mergeResponses() 12 years ago
Tom Needham 17e45e2002 Pick any none 100 status code before defaulting to 100 12 years ago
Thomas Müller f93dcc5d77 the filesystem has to be initialized once we know the user 12 years ago
Lukas Reschke cba12e009f Added missing HTTP prefix to the $_SERVER variable 12 years ago
Thomas Müller 3d42e402c5 http header OCS-ApiRequest: true is required in case of session based OCS API calls 12 years ago
Thomas Müller 581cd9bb9c Support existing sessions within OCS API calls 12 years ago
Thomas Müller 9c9dc276b7 move the private namespace OC into lib/private - OCP will stay in lib/public 12 years ago
Bart Visscher 8ca0a957ad Allow setting defaults and requirements for the api route 12 years ago
Bernhard Posselt 11afb2e5a8 respect format output 12 years ago
Bernhard Posselt 0f38e6ec9c logout before output to not run into header already sent problems 12 years ago
Bernhard Posselt ed0c23a9cc fix bug that would only return error responses for 3rdparty apps 12 years ago
Florin Peter 3c100af132 revert changes to fbbc76f281 because master is very unstable right now 12 years ago
Tom Needham d33f6b9af6 Use correct variable when checking auth 12 years ago
Tom Needham b3e7485612 Correct the api response when both a shipped app and/or a third party app fail 12 years ago
Bart Visscher 5c4a804ddb Fix SpaceBeforeOpenBrace errors 12 years ago
Tom Needham 28498e1af4 Code style and remove OAuth code 12 years ago
Tom Needham 266ba2806d Remove debug call, correct app identifier 12 years ago
Tom Needham 5ad1b63f76 Fix api result merging. 12 years ago
Tom Needham eefaefe87d Use OC_User::isAdminUser() in lib/api.php 12 years ago
Tom Needham 934735043b API: Remove api response structure from OC_OCS_Result, handle multiple registered methods for api calls 12 years ago
Tom Needham b26279546c Simpler method for getting the first char 12 years ago
Tom Needham d89be72972 Remove some whitespace 12 years ago
Tom Needham 02f8c941f4 API: If key begins with '@' treat it as an xml attribute 12 years ago
Tom Needham 8f9d3cd01d Code style update 12 years ago
tomneedham b4954c0c89 Correct spelling of 'Authorization' 12 years ago
Tom Needham 9dc668740a Check that api methods return the correct result type 12 years ago
Tom Needham 358671ac1d Fix incorrect indentation 12 years ago
Tom Needham 098c84a29c Return 401 headers when authentication is required for the api call 12 years ago
Bart Visscher 5bfe4adbaa Whitespace cleanup 12 years ago
Lukas Reschke 31b1a73e1f Check if user is admin - bool 12 years ago
Tom Needham 39b5199775 API: PUT and DELETE variables are now accessed from the parameters array 12 years ago
Tom Needham 1475ff63dd API: Add check to see if the user is authorised to run the api method 12 years ago
Tom Needham 140141edf2 API: Further tidying, implement OC_OCS_Result object for api results. 12 years ago
Tom Needham 115dbc721d API: Specify the response format using a GET parameter 12 years ago