Commit Graph

50 Commits (a03d70209fabbb3d2ae7137a6edde1f0712cd9e1)

Author SHA1 Message Date
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
Tom Needham b0dc4383e1 Clean code slightly 13 years ago
Tom Needham b563dff10a Record the app that is registering a call to use later with OAuth 13 years ago
Tom Needham 9ffaea480f Add the format parameter inside OC_API 13 years ago
Tom Needham 9072106048 Move OCS methods to lib/ocs/.php 13 years ago
Tom Needham e33174f115 Add core routes and include them in OC_API::call() 13 years ago
Tom Needham 9dbe5f3703 Load routes before calling actions 13 years ago
Tom Needham c375774fca Fix odd indentation issue 13 years ago
Tom Needham 20838bb9c2 Basic structure and functionality of api class 13 years ago