Commit Graph

14 Commits (0671c58e361f2ccf2cd23d73a9712c1a31e838ce)

Author SHA1 Message Date
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
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