server icon indicating copy to clipboard operation
server copied to clipboard

Share API documentation - mistake?

Open tomtomas99911 opened this issue 8 years ago • 4 comments

I want to use "publicUpload" how is defined in share API documentation https://docs.nextcloud.com/server/14/developer_manual/core/ocs-share-api.html

But there is defined that argument is boolean type but in code i can see that there is string type.

Code - ./apps/files_sharing/lib/Controller/ShareAPIController.php - line 367

Is it mistake in documentation or mistake in NX code?

tomtomas99911 avatar Nov 22 '18 09:11 tomtomas99911

GitMate.io thinks possibly related issues are https://github.com/nextcloud/server/issues/4159 (Shared API ), https://github.com/nextcloud/server/issues/7350 (Improve OCS Share API documentation (share_type and permissions)), https://github.com/nextcloud/server/issues/3327 (Share tags), https://github.com/nextcloud/server/issues/676 (Search API), and https://github.com/nextcloud/server/issues/3923 (Preview API).

nextcloud-bot avatar Nov 22 '18 10:11 nextcloud-bot

cc @nextcloud/documentation

violoncelloCH avatar Nov 22 '18 10:11 violoncelloCH

@tomtomas99911 yes, it should be a string which is either "true" or "false".

schiessle avatar Nov 22 '18 13:11 schiessle

fix is here: https://github.com/nextcloud/documentation/pull/938

schiessle avatar Nov 22 '18 13:11 schiessle