Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.

Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.

3.
MotivationCurrently, web services can be accessed through HTTPclients and HTTP libraries over network socketsWhile some web services are accessible over filesysteminterfaces, there is no general support or uniform filesysteminterfaceRestFSs goal is to provide a general filesystem interface tomanage configuration, authentication, and interaction withRESTful web services

6.
Filesystems That Abstract a Web ServiceGmailFS - stores data in a GMail webmail accountFlickrFS - abstracts the Flickr photo service as a filesystem(available on Ubuntu)davfs2 - a WebDAV filesystem

7.
Types of Web Service FilesystemsApplication Filesystems - filesystems that provideconvenient interfaces for programs to interact. A goodexample is FlickrFS presenting image filesObject or storage abstraction - Using a web service as astorage location for a filesystem. Two good examples areGMailFS and SSHFSConnector filesystems - Filesystems that abstract a methodof IPC or a network protocol. Two good examples are Plan9s netfs and RestFS

8.
RestFSA connector filesystem that provides a filesystem abstractionfor RESTful web servicesRequests to and responses from web services are madethrough filesystem system callsConnections are initiated through manipulation ofconfiguration files in the filesystemOAuth authentication can be established by manipulatingauthentication files

10.
RestFS - Resource FilesPrograms can read and write to resource files in a normalwayWhen the triggering filesystem system call is issued on theresource file a HTTP method call will be issued.If the resource file contains data, it will be sent along withthe callThe response will be written back to the resource file

12.
OAuth Authentication in RestFSA special /auth folder exists in every RestFS mount.When a user creates a folder in /auth, 4 files are created: config - contains Access Token, User Auth, and Request Token URLs status - contains the current progress or errors encountered during authentication. If a manual step is required (such as a CAPTCHA test), this file contains the URL to visit verifier - if a manual step is required, any PIN that needs to be associated with RestFS can be written to this file token - after successful authentication, this file contains the authentication tokenThe token file can then be referenced in configuration filesThe associated resource file will automatically work withOAuth

16.
Software Composition with RestFSWith RestFS, it is possible to compose remote web serviceswith local softwareThis software can then be recomposed into new RESTfulweb services or other local software compositionsCan allow many computers to participate in local softwarecompositions of a RESTful service by mounting a RestFSvolume as a network filesystem over Samba or NFS