Seafile learning and WebDAV and Restful API comparison

When it comes to write this blog

These days, because the epidemic at home
have nothing else on the Internet about the application of several open source private network disk, such as nextcloud and seafile

Found in the actual deployment nextcloud Although the interface is beautiful, but overall is a php development, and the document is in English, not my thing (I'm looking for open source network disk on the Internet but also want their own hands to develop applications a need for cloud storage data, but I have to vue + spring development-oriented, php could not touch the Caesar)

Contrast nextcloud, seafile was developed by a team of people, also provide a relatively nextcloud more comprehensive API interface.

seafile API documentation Address

Coming back to the focus

Niche see seafile document the two unfamiliar words and WebDAV FUSE, which is a virtual file system technology, you can mount a virtual directory on the file system. If combined with some Web API can achieve cloud server disk (or network application) to mount local , hey, I'm very convenient for me to mount the data on multiple servers, running some inconvenience expansion tool, such as fsl, FreeSurfer, MATLAB, etc., do not repeatedly download deleted, this is excellent.

But how to develop, the niche unfortunately do not know much, but found the code directly with others, the code is relatively simple and easy to learn, here on Github .

This is really the focus

About WebDAV term, the answer I give is either after Baidu Han Han Han WebDAV-based service advertising ah, or is this explanation Baidu Encyclopedia

WebDAV (Web-based Distributed Authoring and Versioning) a communication protocol based on the HTTP 1.1 protocol. It extends the HTTP 1.1, other than GET, POST, HEAD, and several other HTTP standard way to add a number of new ways in which applications can read and write directly on the Web Server, and support write file locking (Locking) and unlock (Unlock) , also supports file versioning.

But for me, not entirely Sao itch ah!
It summarizes what WebDAV WebDAV is wisdom but did not say how to use ah

  • And is WebSocket, HTTPS as it has its own protocol header?
  • Or are there any special operation?

Searched and searched, looking around found the
original WebDAV and Restful API is almost a kind of API specification is based on Http protocol

In this record it

WEBDEV method for document management (RFC2518)

http webdav method is a method, but to collaborate on documents, tailored specifications. It can also be used Restful API design.

PROPFIND: Web resource to be retrieved from the stored XML format attributes. It is also overloaded to allow a structure to retrieve a set of remote system (also called directory hierarchy)
PROPPATCH: Changing multiple properties and delete resources in a single atomic action
MKCOL: create a collection or catalog
COPY: resources from a copy URI to another URI
mOVE: move resources from one URI to another URI
lOCK: lock a resource. WebDAV support for sharing and mutex lock
UNLOCK: the unlock resources

And Restful is

GET、POST、PUT、PATCH、DELETE、OPTIONS、HEAD、TRACE

First wrote this, what comes to mind plus

发布了1 篇原创文章 · 获赞 0 · 访问量 83

Guess you like

Origin blog.csdn.net/qq_39848621/article/details/104485528