aboutsummaryrefslogtreecommitdiffstats
path: root/guide/rest_handlers.md
diff options
context:
space:
mode:
Diffstat (limited to 'guide/rest_handlers.md')
-rw-r--r--guide/rest_handlers.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/guide/rest_handlers.md b/guide/rest_handlers.md
new file mode 100644
index 0000000..df5f841
--- /dev/null
+++ b/guide/rest_handlers.md
@@ -0,0 +1,28 @@
+REST handlers
+=============
+
+Purpose
+-------
+
+REST is a set of constraints that, when applied to HTTP, dictates how
+resources must behave. It is the recommended way to handle requests
+with Cowboy.
+
+REST is implemented in Cowboy as a protocol upgrade. Once upgraded,
+the request is handled as a state machine with many optional callbacks
+describing the resource and modifying the machine's behavior.
+
+Flow diagram
+------------
+
+@todo Add the beautiful flow diagram here.
+
+Callbacks
+---------
+
+@todo Describe the callbacks.
+
+Usage
+-----
+
+@todo Explain how to use them.