Commit Graph

22 Commits (a7ae2e874a28aed2c190840634db50a19ab1d2e7)

Author SHA1 Message Date
Lukas Reschke e88731a477 Some more PHPDoc fixes 12 years ago
Thomas Müller 88f6dd7db1 fixing method names 12 years ago
Thomas Müller 743addd1e3 set content-type on ocs exceptions 12 years ago
Robin Appelman 26793e1f94 switch OC::getRouter usages to OC::$server->getRouter 12 years ago
Thomas Müller 25f523680a fixing ident 12 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 12 years ago
Jörn Friedrich Dreyer 2a6a9a8cef polish documentation based on scrutinizer patches 12 years ago
Bjoern Schiessle 6845860470 keep response message 12 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 13 years ago
Bernhard Posselt 11afb2e5a8 respect format output 13 years ago
Bernhard Posselt 0f38e6ec9c logout before output to not run into header already sent problems 13 years ago
Bernhard Posselt ed0c23a9cc fix bug that would only return error responses for 3rdparty apps 13 years ago
Florin Peter 3c100af132 revert changes to fbbc76f281 because master is very unstable right now 13 years ago
Tom Needham d33f6b9af6 Use correct variable when checking auth 13 years ago
Tom Needham b3e7485612 Correct the api response when both a shipped app and/or a third party app fail 13 years ago
Bart Visscher 5c4a804ddb Fix SpaceBeforeOpenBrace errors 13 years ago
Tom Needham 28498e1af4 Code style and remove OAuth code 13 years ago
Tom Needham 266ba2806d Remove debug call, correct app identifier 13 years ago
Tom Needham 5ad1b63f76 Fix api result merging. 13 years ago
Tom Needham eefaefe87d Use OC_User::isAdminUser() in lib/api.php 13 years ago
Tom Needham 934735043b API: Remove api response structure from OC_OCS_Result, handle multiple registered methods for api calls 13 years ago
Tom Needham b26279546c Simpler method for getting the first char 13 years ago
Tom Needham d89be72972 Remove some whitespace 13 years ago
Tom Needham 02f8c941f4 API: If key begins with '@' treat it as an xml attribute 13 years ago
Tom Needham 8f9d3cd01d Code style update 13 years ago
tomneedham b4954c0c89 Correct spelling of 'Authorization' 13 years ago
Tom Needham 9dc668740a Check that api methods return the correct result type 13 years ago
Tom Needham 358671ac1d Fix incorrect indentation 13 years ago
Tom Needham 098c84a29c Return 401 headers when authentication is required for the api call 13 years ago
Bart Visscher 5bfe4adbaa Whitespace cleanup 13 years ago
Lukas Reschke 31b1a73e1f Check if user is admin - bool 13 years ago
Tom Needham 39b5199775 API: PUT and DELETE variables are now accessed from the parameters array 13 years ago
Tom Needham 1475ff63dd API: Add check to see if the user is authorised to run the api method 13 years ago
Tom Needham 140141edf2 API: Further tidying, implement OC_OCS_Result object for api results. 13 years ago
Tom Needham 115dbc721d API: Specify the response format using a GET parameter 13 years ago
Tom Needham b079447988 Add API method for sharing a file, currently only via a link. 13 years ago
Tom Needham 3ea01df1cd API: Parse PUT and DELETE variables 13 years ago
Tom Needham 0f07226270 API: Allow admins to access SUBADMIN api methods 13 years ago