https://github.com/creationix/refresh
Refreshing REST/Webdav for node
https://github.com/creationix/refresh
Last synced: 9 months ago
JSON representation
Refreshing REST/Webdav for node
- Host: GitHub
- URL: https://github.com/creationix/refresh
- Owner: creationix
- License: mit
- Created: 2010-02-23T20:07:55.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2022-05-12T19:11:20.000Z (about 4 years ago)
- Last Synced: 2025-04-10T02:55:42.956Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 18.6 KB
- Stars: 33
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
# Refresh REST/Webdav for node
This project will be a module that exposes ANY data source as HTTP. The goals are as follows:
- Implement GET/PUT/POST/DELETE as typically done in web apps
- Implement enough of WebDav to enable mounting read/write in Finder
- Further implement WebDav for other clients as time allows and need arises.
The main goal is to make a simple resource provider for web-apps and other http clients. This will work with, but not be tied to [node-persistence][]
## RESTful Web Service HTTP methods
Resource
GET
PUT
POST
DELETE
Collection URI, such as http://example.com/resources/
List the members of the collection, complete with their member URIs for further navigation. For example, list all the cars for sale.
Meaning defined as "replace the entire collection with another collection".
Create a new entry in the collection where the ID is assigned automatically by the collection. The ID created is usually included as part of the data returned by this operation.
Meaning defined as "delete the entire collection".
Element URI, such as http://example.com/resources/7HOU57Y
Retrieve a representation of the addressed member of the collection expressed in an appropriate MIME type
Update the addressed member of the collection or create it with the specified ID.
Treats the addressed member as a collection in its own right and creates a new subordinate of it.
Delete the addressed member of the collection.
## WebDav Notes
WebDav clients aren't good about following the spec, here are some notes.
[node-persistence]: http://github.com/creationix/node-persistence