NextCloud 편집하기
편집을 되돌릴 수 있습니다.
이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 저장해주세요.
최신판 | 당신의 편집 | ||
1번째 줄: | 1번째 줄: | ||
== Server == | == Server == | ||
− | [[ | + | |
+ | === Developer === | ||
+ | |||
+ | ==== Client API ==== | ||
+ | |||
+ | ===== Webdav ===== | ||
+ | |||
+ | ====== Basic APIs ====== | ||
+ | '''WebDAV basics''' | ||
+ | |||
+ | base url: /remote.php/dav | ||
+ | |||
+ | 모든 요청은 인증정보가 필요하다. | ||
+ | |||
+ | '''Testing requests with curl''' | ||
+ | |||
+ | [[WebDAV]] 요청은 curl로 간단하게 테스트할 수 있다. | ||
+ | |||
+ | 예를 들어, 폴더에서 파일들을 찾는 요청을 할 수 있다.<syntaxhighlight lang="bash"> | ||
+ | $ curl -u username:password 'https://cloud.example.com/remote.php/dav/files/username/folder' -X PROPFIND --data '<?xml version="1.0" encoding="UTF-8"?> | ||
+ | <d:propfind xmlns:d="DAV:"> | ||
+ | <d:prop xmlns:oc="http://owncloud.org/ns"> | ||
+ | <d:getlastmodified/> | ||
+ | <d:getcontentlength/> | ||
+ | <d:getcontenttype/> | ||
+ | <oc:permissions/> | ||
+ | <d:resourcetype/> | ||
+ | <d:getetag/> | ||
+ | </d:prop> | ||
+ | </d:propfind>' | ||
+ | </syntaxhighlight><br /> | ||
==memcache== | ==memcache== | ||
sudo apt install php-apcu | sudo apt install php-apcu |