add documentation
authorHenry Story <henry.story@bblfish.net>
Tue, 26 Jun 2012 23:05:11 +0200
changeset 235 6104e3809b62
parent 234 cff4d0159b26
child 236 d680f5d15862
add documentation
README.markdown
--- a/README.markdown	Tue Jun 26 22:46:35 2012 +0200
+++ b/README.markdown	Tue Jun 26 23:05:11 2012 +0200
@@ -119,8 +119,11 @@
     HTTP/1.1 200 OK
     ...
 
-In the `test_www` directory there is a [.meta.n3](https://dvcs.w3.org/hg/read-write-web/file/fae877adc4d2/test_www/.meta.n3) file which contains the access rules as defined by the http://www.w3.org/wiki/WebAccessControl vocabulary. ( this is still a very minimal implementation of what is possible ) These say that private.n3 requires authentication. And indeed:
- 
+In the `test_www` directory there is a [.meta.n3.off](https://dvcs.w3.org/hg/read-write-web/file/cff4d0159b26/test_www/.meta.n3.off) file which contains the access rules as defined by the http://www.w3.org/wiki/WebAccessControl vocabulary. ( this is still a very minimal implementation of what is possible ) These say that private.n3 requires authentication. 
+For it to be enabled you need to rename .meta.n3.off to .meta.n3 . When that is done :
+
+    $ cd test_www
+    $ mv .meta.n3.off .meta.n3 
     $ curl -k -i -H "Accept: application/rdf+xml" https://localhost:8443/2012/private.n3
     curl: (56) SSL read: error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate, errno 0
 
@@ -157,6 +160,12 @@
 
    > openssl pkcs12  -in cert.p12 -out myCert.pem
 
+### Testing GET/PUT/POST/DELETE with javascript
+
+In the `test_www` directory there is a `rest.html` file that allows you to test RESTful
+actions with node.js. Just open [https://localhost:8443/2012/test.html](https://localhost:8443/2012/test.html) 
+in your browser and see how the files change on your drive. (Make sure the access control rules don't interfere)
+
 Extra Userful Services provided  
 -------------------------------