From 0083f44c6a8cf85aa8f101d2888aa239165178cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sat, 21 Jun 2014 18:15:50 +0200 Subject: Add REST diagram for PUT/POST/PATCH --- guide/rest_put_post_patch.svg | 2842 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 2842 insertions(+) create mode 100644 guide/rest_put_post_patch.svg (limited to 'guide') diff --git a/guide/rest_put_post_patch.svg b/guide/rest_put_post_patch.svg new file mode 100644 index 0000000..d23904f --- /dev/null +++ b/guide/rest_put_post_patch.svg @@ -0,0 +1,2842 @@ + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + some text + some text + some text + conneg + resource_exists + + true + + + + + false + + + + + + middlewares + + + + + true + + + + + + + + + + + + + + + cond + + + + + + has if-match? + false + + + + + + method is POST/PATCH? + true + + + + + + + + + + + + + + + + + + + method is POST? + + 412 precondition failed + + + + + + + + + + + + + + previously_existed + + + + + + 404 not found + false + + + + + + + + + true* + false + + 301 moved permanently + + + + + + + + + + moved_temporarily + true* + false + + 307 moved temporarily + + 422 unprocessable entity + + + + + true + + + + + + allow_missing_post + + method is POST? + allow_missing_post + + + + + + method is PUT? + + + + + + + + + + is_conflict + true + + 409 conflict + + + + + + content_types_accepted + + AcceptResource + + + + + + + + + + new resource? + + + + + + + + + + new resource? + + 201 created + + 303 see other + + + + + + + + + + has resp location? + + + + + + + + + + + has resp body? + + + + + + + + + + multiple_choices + false + + 300 multiple choices + + 200 OK + 204 no content + true + + + + + true + + moved_permanently + + 410 gone + false + true + false + false + false + false + + + + + true + + + + + true, URI* + + + + + true + false + true + true + false + true + false + true + false + false + false + + + + + + + + true + + + + + false + + -- cgit v1.2.3