From 2b3852635115ad0aeeade9aeb88f285cfcd870b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 6 Oct 2019 12:48:35 +0200 Subject: Fix PUT when resource doesn't exist in flowchart This required moving around a lot of things so hopefully I did not add errors while doing so. Only time will tell. Also add the 415 that can result from content_types_accepted. --- doc/src/guide/rest_put_post_patch.png | Bin 209100 -> 234474 bytes doc/src/guide/rest_put_post_patch.svg | 1357 ++++++++++++++++++--------------- 2 files changed, 752 insertions(+), 605 deletions(-) diff --git a/doc/src/guide/rest_put_post_patch.png b/doc/src/guide/rest_put_post_patch.png index d8e7068..d287036 100644 Binary files a/doc/src/guide/rest_put_post_patch.png and b/doc/src/guide/rest_put_post_patch.png differ diff --git a/doc/src/guide/rest_put_post_patch.svg b/doc/src/guide/rest_put_post_patch.svg index 091dc68..4562722 100644 --- a/doc/src/guide/rest_put_post_patch.svg +++ b/doc/src/guide/rest_put_post_patch.svg @@ -64,9 +64,9 @@ borderopacity="1.0" inkscape:pageopacity="1" inkscape:pageshadow="2" - inkscape:zoom="0.70710678" - inkscape:cx="1029.1677" - inkscape:cy="180.32072" + inkscape:zoom="1.4142136" + inkscape:cx="497.47589" + inkscape:cy="714.09334" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="false" @@ -102,6 +102,214 @@ inkscape:groupmode="layer" id="layer1" transform="translate(0,1.5472441e-4)"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - false + d="m -57.78256,343.20394 v 61.59661" + style="opacity:0.8;fill:none;stroke:#9b3b1c;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> true - - - - @@ -654,7 +778,7 @@ sodipodi:cx="-222.73865" sodipodi:sides="3" id="path5576-12-1-7-58-6-1-1" - style="opacity:0.8;fill:#6d8e41;fill-opacity:1;fill-rule:nonzero;stroke:#6d8e41;stroke-width:0;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" + style="opacity:0.8;fill:#6d8e41;fill-opacity:1;fill-rule:nonzero;stroke:#6d8e41;stroke-width:0;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" sodipodi:type="star" inkscape:transform-center-x="5.134315" /> @@ -684,17 +808,17 @@ id="tspan17171-6" style="font-size:16px;line-height:1.25;font-family:sans-serif">cond + transform="rotate(90,-13.918835,262.77429)" /> has if-match? false + d="m -57.78256,351.41962 v 52.3259" + style="opacity:0.8;fill:none;stroke:#6d8e41;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> method is POST/PATCH? true + d="m -57.78256,351.41962 v 52.3259" + style="opacity:0.8;fill:none;stroke:#6d8e41;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> - - - - + d="m -57.78256,343.20394 v 61.59661" + style="opacity:0.8;fill:none;stroke:#9b3b1c;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> - - - - method is POST? 412 precondition failed + d="m -57.78256,340.48769 v 63.05283" + style="opacity:0.8;fill:none;stroke:#6d8e41;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> + d="m -57.78256,343.20394 v 61.59661" + style="opacity:0.8;fill:none;stroke:#9b3b1c;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> previously_existed - - - - - - 404 not found false + d="m -57.78256,343.20394 v 61.59661" + style="opacity:0.8;fill:none;stroke:#9b3b1c;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> + transform="rotate(90,-13.918835,262.77429)" /> true* false 301 moved permanently + d="m -57.78256,343.20394 v 61.59661" + style="opacity:0.8;fill:none;stroke:#9b3b1c;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> + transform="rotate(90,-13.918835,262.77429)" /> moved_temporarily true* false 307 moved temporarily 400 bad request + id="g640" + transform="matrix(0.93440547,0.35621121,-0.48193086,1.2641905,627.74736,-706.85648)" + inkscape:export-xdpi="89" + inkscape:export-ydpi="89"> - - true - - - - - allow_missing_post - - method is POST? allow_missing_post + d="m -57.78256,351.41962 v 52.3259" + style="opacity:0.8;fill:none;stroke:#6d8e41;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> method is PUT? + style="font-size:16px;line-height:1.25;font-family:sans-serif">method is PUT + d="m -57.78256,343.20394 v 61.59661" + style="opacity:0.8;fill:none;stroke:#9b3b1c;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> - - - - is_conflict true 409 conflict true true moved_permanently 410 gone false - true - false - false - false false false false - false false - - - - - - true false + + + + + + + + + + 404 not found + + + + + + allow_missing_post + + method is POST? + false + true + false true true + + 415 unsupported media type + not accepted* + + moved_permanently + + 301 moved permanently + true* + false + + + + + false -- cgit v1.2.3