Permalink
Browse files

demo script

  • Loading branch information...
1 parent 649b59d commit e0a839a8f520bed35c9bb8ef79768a8942ba71ae @ghosthack committed Jul 26, 2012
Showing with 27 additions and 0 deletions.
  1. +27 −0 demo.txt
View
@@ -0,0 +1,27 @@
+# proto demo script
+
+# check status:
+http://localhost:8080/proto/content/check
+
+# create a test template:
+curl -v -X POST --data "This is a test: {name}" "http://localhost:8080/proto/content/template/2"
+
+# create a test element:
+curl -v -X POST --data "{\"name\": \"Test\"}" "http://localhost:8080/proto/content/element/2"
+
+
+# update a test template:
+curl -v -X PUT --data "This is a test: {name}" "http://localhost:8080/proto/content/template/2"
+
+# update a test element:
+curl -v -X PUT --data "{\"name\": \"Test\"}" "http://localhost:8080/proto/content/element/2"
+
+
+# render an element:
+curl -v -X GET "http://localhost:8080/proto/content/render/2/2"
+
+
+# link a view:
+curl -v -X PUT "http://localhost:8080/proto/content/view/2/2"
+
+

0 comments on commit e0a839a

Please sign in to comment.