Commit Graph

63 Commits (eebc15dce0da88dff91dc5249938341cd50b8a85)

Author SHA1 Message Date
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
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
Tom Needham a8c82440d0 API: Use http authentication, check the auth level required 13 years ago
Tom Needham fa5dff22a0 API: Require api calls to register the required auth level 13 years ago
Tom Needham 4224eb8831 API: remove OAuth auth check, respond in ocs formatted xml/json 13 years ago
Tom Needham 0d1d2c0b61 Fix class name 13 years ago
Tom Needham 21f8646ffc API: Fix merging of responses. Return 400 error when no OAuth operation sent. 13 years ago
Tom Needham 6047a5fe51 API: Check if the consumer has permissions to access the requested method 13 years ago
Tom Needham a7906d813a Move OAuth classes into lib/oauth 13 years ago
Michael Gapczynski e3d88270cc OAuth server implementation using oauth library 13 years ago
Bart Visscher 4b9200f6f7 Routing: combine all routes into one set 13 years ago
Bart Visscher 37ef522b05 Quick fix for xml encoding arrays 13 years ago
Bart Visscher 7952c6a31c Change access to router object to getter function 13 years ago
Bart Visscher 93daa9e247 API: Complete respond function 13 years ago
Tom Needham c11c2d0fd4 Logout the user at the end of a call to be stateless 13 years ago
Tom Needham 2afe5f9b2b API: add OC_API::checkLoggedIn() 13 years ago
Bart Visscher 7426217e76 Fix /privatedata/getattribute route 13 years ago
Bart Visscher 71918a820f API: set request method for registered urls 13 years ago
Bart Visscher 7a24f0cd8d Make calling ocs/v1.php/config work 13 years ago
Bart Visscher 180bd69dbb Fix OC_API::register 13 years ago
Bart Visscher 0271bfa3b7 Move loading of routes to OC_Router 13 years ago
Tom Needham 2f84a8d746 Merge the responses recursively 13 years ago
Tom Needham c7c16ac49b Improve merging of api responses 13 years ago