From c807880f7ac73f813b2660ea81a00f7712a4e793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 29 Aug 2016 12:39:49 +0200 Subject: Add old mailing list archives --- .../static/archives/extend/2014-August/000443.html | 85 ++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 _build/static/archives/extend/2014-August/000443.html (limited to '_build/static/archives/extend/2014-August/000443.html') diff --git a/_build/static/archives/extend/2014-August/000443.html b/_build/static/archives/extend/2014-August/000443.html new file mode 100644 index 00000000..d36a6858 --- /dev/null +++ b/_build/static/archives/extend/2014-August/000443.html @@ -0,0 +1,85 @@ + + + + [99s-extend] Full example of cowboy_rest? + + + + + + + + + + +

[99s-extend] Full example of cowboy_rest?

+ Stéphane Wirtel + stephane at wirtel.be +
+ Sun Aug 24 11:54:58 CEST 2014 +

+
+ +
Hi all,
+
+Do you have a concrete example of cowboy_rest ? with POST, GET, HEAD, 
+PUT and DELETE ?
+
+POST will use resource_exists and allow_missing_post
+PUT will use is_conflict
+DELETE delete_resource, etc...
+
+Currently, I started with the example with put_json and get_json and in 
+the functions, I fetch the Method and I use the pattern matching with 
+the Method, but I think it's not the right solution.
+
+What are the best practices?
+
+The examples in the repository of cowboy don't cover all the 
+possibilities of a simple rest api with these verbs.
+
+Thanks in advance,
+
+Stephane
+
+--
+Stéphane Wirtel - http://wirtel.be - @matrixise
+
+ + + +
+

+ +
+More information about the Extend +mailing list
+ -- cgit v1.2.3