angular/angular.js

View on GitHub
images/docs/Diagrams.svg/RESTful_URL.svg

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xl="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 576 733" width="48pc" height="733pt" xmlns:dc="http://purl.org/dc/elements/1.1/"><metadata> Produced by OmniGraffle 6.5.2 <dc:date>2016-04-12 13:18:31 +0000</dc:date></metadata><defs><filter id="Shadow" filterUnits="userSpaceOnUse"><feGaussianBlur in="SourceAlpha" result="blur" stdDeviation="1.308"/><feOffset in="blur" result="offset" dx="0" dy="2"/><feFlood flood-color="black" flood-opacity=".5" result="flood"/><feComposite in="flood" in2="offset" operator="in" result="color"/><feMerge><feMergeNode in="color"/><feMergeNode in="SourceGraphic"/></feMerge></filter><font-face font-family="Helvetica" font-size="18" units-per-em="1000" underline-position="-75.683594" underline-thickness="49.316406" slope="0" x-height="532.22656" cap-height="719.72656" ascent="770.01953" descent="-229.98047" font-weight="bold"><font-face-src><font-face-name name="Helvetica-Bold"/></font-face-src></font-face><font-face font-family="Helvetica" font-size="30" units-per-em="1000" underline-position="-75.683594" underline-thickness="49.316406" slope="0" x-height="522.94922" cap-height="717.28516" ascent="770.01953" descent="-229.98047" font-weight="500"><font-face-src><font-face-name name="Helvetica"/></font-face-src></font-face><font-face font-family="Courier" font-size="24" units-per-em="1000" underline-position="-178.22266" underline-thickness="57.617188" slope="0" x-height="462.40234" cap-height="594.72656" ascent="753.90625" descent="-246.09375" font-weight="500"><font-face-src><font-face-name name="Courier"/></font-face-src></font-face><font-face font-family="Courier" font-size="24" units-per-em="1000" underline-position="-144.04297" underline-thickness="91.796875" slope="-500" x-height="462.40234" cap-height="594.72656" ascent="753.90625" descent="-246.09375" font-style="italic" font-weight="bold"><font-face-src><font-face-name name="Courier-BoldOblique"/></font-face-src></font-face><font-face font-family="Courier" font-size="24" units-per-em="1000" underline-position="-178.22266" underline-thickness="57.617188" slope="-500" x-height="462.40234" cap-height="594.72656" ascent="753.90625" descent="-246.09375" font-style="italic" font-weight="500"><font-face-src><font-face-name name="Courier-Oblique"/></font-face-src></font-face><font-face font-family="Courier" font-size="14" units-per-em="1000" underline-position="-178.22266" underline-thickness="57.617188" slope="0" x-height="462.40234" cap-height="594.72656" ascent="753.90625" descent="-246.09375" font-weight="500"><font-face-src><font-face-name name="Courier"/></font-face-src></font-face><filter id="Shadow_2" filterUnits="userSpaceOnUse"><feGaussianBlur in="SourceAlpha" result="blur" stdDeviation="1.308"/><feOffset in="blur" result="offset" dx="0" dy="2"/><feFlood flood-color="black" flood-opacity=".5" result="flood"/><feComposite in="flood" in2="offset" operator="in"/></filter><font-face font-family="Helvetica" font-size="14" units-per-em="1000" underline-position="-75.683594" underline-thickness="49.316406" slope="0" x-height="532.22656" cap-height="719.72656" ascent="770.01953" descent="-229.98047" font-weight="bold"><font-face-src><font-face-name name="Helvetica-Bold"/></font-face-src></font-face></defs><g stroke="none" stroke-opacity="1" stroke-dasharray="none" fill="none" fill-opacity="1"><title>RESTful URL</title><rect fill="white" width="576" height="733"/><g><title>Layer 1</title><g filter="url(#Shadow)"><path d="M 38.0005 487.9995 L 38.0005 304.2255 C 38.0005 299.25494 42.029937 295.2255 47.0005 295.2255 L 527.2335 295.2255 C 532.20406 295.2255 536.2335 299.25494 536.2335 304.2255 L 536.2335 487.9995 C 536.2335 492.97006 532.20406 496.9995 527.2335 496.9995 C 527.2335 496.9995 527.2335 496.9995 527.2335 496.9995 L 47.0005 496.9995 C 42.029937 496.9995 38.0005 492.97006 38.0005 487.9995 C 38.0005 487.9995 38.0005 487.9995 38.0005 487.9995 Z" fill="#a9d9a9"/><path d="M 38.0005 487.9995 L 38.0005 304.2255 C 38.0005 299.25494 42.029937 295.2255 47.0005 295.2255 L 527.2335 295.2255 C 532.20406 295.2255 536.2335 299.25494 536.2335 304.2255 L 536.2335 487.9995 C 536.2335 492.97006 532.20406 496.9995 527.2335 496.9995 C 527.2335 496.9995 527.2335 496.9995 527.2335 496.9995 L 47.0005 496.9995 C 42.029937 496.9995 38.0005 492.97006 38.0005 487.9995 C 38.0005 487.9995 38.0005 487.9995 38.0005 487.9995 Z" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/><text transform="translate(43.0005 491.9995) rotate(-90)" fill="black"><tspan font-family="Helvetica" font-size="18" font-weight="bold" x="147.758375" y="18" textLength="44.015625">Read</tspan></text></g><g filter="url(#Shadow)"><path d="M 39.7665 576.0965 L 39.7665 518.0965 C 39.7665 513.12594 43.795937 509.0965 48.7665 509.0965 L 528.9995 509.0965 C 533.97006 509.0965 537.9995 513.12594 537.9995 518.0965 C 537.9995 518.0965 537.9995 518.0965 537.9995 518.0965 L 537.9995 576.0965 C 537.9995 581.06706 533.97006 585.0965 528.9995 585.0965 L 48.7665 585.0965 C 43.795937 585.0965 39.7665 581.06706 39.7665 576.0965 Z" fill="#8ec7e8"/><path d="M 39.7665 576.0965 L 39.7665 518.0965 C 39.7665 513.12594 43.795937 509.0965 48.7665 509.0965 L 528.9995 509.0965 C 533.97006 509.0965 537.9995 513.12594 537.9995 518.0965 C 537.9995 518.0965 537.9995 518.0965 537.9995 518.0965 L 537.9995 576.0965 C 537.9995 581.06706 533.97006 585.0965 528.9995 585.0965 L 48.7665 585.0965 C 43.795937 585.0965 39.7665 581.06706 39.7665 576.0965 Z" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/><text transform="translate(44.7665 580.0965) rotate(-90)" fill="black"><tspan font-family="Helvetica" font-size="18" font-weight="bold" x="4.9951172" y="18" textLength="61.004883">Update</tspan></text></g><g filter="url(#Shadow)"><path d="M 39.76715 659.12915 L 39.76715 607.99985 C 39.76715 603.0293 43.796587 598.99985 48.76715 598.99985 L 529.00015 598.99985 C 533.9707 598.99985 538.00015 603.0293 538.00015 607.99985 C 538.00015 607.99985 538.00015 607.99985 538.00015 607.99985 L 538.00015 659.12915 C 538.00015 664.0997 533.9707 668.12915 529.00015 668.12915 L 48.76715 668.12915 C 43.796587 668.12915 39.76715 664.0997 39.76715 659.12915 C 39.76715 659.12915 39.76715 659.12915 39.76715 659.12915 Z" fill="#ff9498"/><path d="M 39.76715 659.12915 L 39.76715 607.99985 C 39.76715 603.0293 43.796587 598.99985 48.76715 598.99985 L 529.00015 598.99985 C 533.9707 598.99985 538.00015 603.0293 538.00015 607.99985 C 538.00015 607.99985 538.00015 607.99985 538.00015 607.99985 L 538.00015 659.12915 C 538.00015 664.0997 533.9707 668.12915 529.00015 668.12915 L 48.76715 668.12915 C 43.796587 668.12915 39.76715 664.0997 39.76715 659.12915 C 39.76715 659.12915 39.76715 659.12915 39.76715 659.12915 Z" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/><text transform="translate(44.76715 663.12915) rotate(-90)" fill="black"><tspan font-family="Helvetica" font-size="18" font-weight="bold" x="5.1029328" y="18" textLength="54.026367">Delete</tspan></text></g><g filter="url(#Shadow)"><path d="M 39.7665 274.1291 L 39.7665 195.1291 C 39.7665 190.15854 43.795937 186.1291 48.7665 186.1291 L 528.9995 186.1291 C 533.97006 186.1291 537.9995 190.15854 537.9995 195.1291 C 537.9995 195.1291 537.9995 195.1291 537.9995 195.1291 L 537.9995 274.1291 C 537.9995 279.09966 533.97006 283.1291 528.9995 283.1291 L 48.7665 283.1291 C 43.795937 283.1291 39.7665 279.09966 39.7665 274.1291 C 39.7665 274.1291 39.7665 274.1291 39.7665 274.1291 Z" fill="#ff9498"/><path d="M 39.7665 274.1291 L 39.7665 195.1291 C 39.7665 190.15854 43.795937 186.1291 48.7665 186.1291 L 528.9995 186.1291 C 533.97006 186.1291 537.9995 190.15854 537.9995 195.1291 C 537.9995 195.1291 537.9995 195.1291 537.9995 195.1291 L 537.9995 274.1291 C 537.9995 279.09966 533.97006 283.1291 528.9995 283.1291 L 48.7665 283.1291 C 43.795937 283.1291 39.7665 279.09966 39.7665 274.1291 C 39.7665 274.1291 39.7665 274.1291 39.7665 274.1291 Z" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/><text transform="translate(44.7665 278.1291) rotate(-90)" fill="black"><tspan font-family="Helvetica" font-size="18" font-weight="bold" x="30.969727" y="18" textLength="56.030273">Create</tspan></text></g><text transform="translate(190 59)" fill="black"><tspan font-family="Helvetica" font-size="30" font-weight="500" x=".47802734" y="29" textLength="195.04395">RESTful URLs</tspan></text><text transform="translate(35.5 103)" fill="black"><tspan font-family="Courier" font-size="24" font-weight="500" x=".16015625" y="23" textLength="273.64453">http://server/data/</tspan><tspan font-family="Courier" font-size="24" font-style="italic" font-weight="bold" x="273.80469" y="23" textLength="144.02344">Collection</tspan><tspan font-family="Courier" font-size="24" font-style="italic" font-weight="500" x="417.82812" y="23" textLength="14.402344">[</tspan><tspan font-family="Courier" font-size="24" font-style="italic" font-weight="bold" x="432.23047" y="23" textLength="43.20703">/ID</tspan><tspan font-family="Courier" font-size="24" font-style="italic" font-weight="500" x="475.4375" y="23" textLength="14.402344">]</tspan></text><text transform="translate(138.021 186.403)" fill="black"><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="14" textLength="42.006836">/Book</tspan></text><text transform="translate(75.9893 186.403)" fill="black"><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="14" textLength="33.605469">POST</tspan></text><text transform="translate(227.5 186.403)" fill="black"><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="14" textLength="126.02051">{ name:&apos;Moby&apos; }</tspan></text><text transform="translate(378.728 186.403)" fill="black"><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="14" textLength="75.612305">{ id:123,</tspan><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="31" textLength="126.02051">  name:&apos;Moby&apos; }</tspan></text><text transform="translate(138.021 241.065)" fill="black"><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="14" textLength="42.006836">/Book</tspan></text><text transform="translate(75.9893 241.065)" fill="black"><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="14" textLength="33.605469">POST</tspan></text><text transform="translate(227.271 241.065)" fill="black"><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="14" textLength="134.421875">{ name:&apos;Gatsby&apos;}</tspan></text><text transform="translate(378.728 241.065)" fill="black"><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="14" textLength="75.612305">{ id:456,</tspan><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="31" textLength="117.61914">  name:&apos;Rye&apos; }</tspan></text><text transform="translate(138.021 298.307)" fill="black"><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="14" textLength="75.612305">/Book/123</tspan></text><text transform="translate(75.9893 298.307)" fill="black"><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="14" textLength="25.204102">GET</tspan></text><text transform="translate(378.728 298.307)" fill="black"><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="14" textLength="75.612305">{ id:123,</tspan><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="31" textLength="126.02051">  name:&apos;Moby&apos; }</tspan></text><text transform="translate(138.021 352.435)" fill="black"><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="14" textLength="75.612305">/Book/456</tspan></text><text transform="translate(75.9893 352.435)" fill="black"><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="14" textLength="25.204102">GET</tspan></text><text transform="translate(378.728 352.435)" fill="black"><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="14" textLength="75.612305">{ id:456,</tspan><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="31" textLength="142.82324">  name:&apos;Gatsby&apos; }</tspan></text><text transform="translate(138.021 405.064)" fill="black"><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="14" textLength="42.006836">/Book</tspan></text><text transform="translate(75.9893 405.064)" fill="black"><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="14" textLength="25.204102">GET</tspan></text><text transform="translate(378.728 405.064)" fill="black"><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="14" textLength="92.41504">[ { id:123,</tspan><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="31" textLength="151.22461">    name:&apos;Moby&apos; },</tspan><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="48" textLength="92.41504">  { id:456,</tspan><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="65" textLength="134.421875">    name:&apos;Rye&apos; }</tspan><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="82" textLength="8.401367">]</tspan></text><text transform="translate(138.021 512.322)" fill="black"><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="14" textLength="75.612305">/Book/456</tspan></text><text transform="translate(75.9893 512.322)" fill="black"><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="14" textLength="33.605469">POST</tspan></text><text transform="translate(227.814 512.322)" fill="black"><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="14" textLength="84.01367">{ id: 456,</tspan><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="31" textLength="134.421875">  name:&apos;Catch&apos; }</tspan></text><text transform="translate(378.728 512.322)" fill="black"><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="14" textLength="75.612305">{ id:456,</tspan><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="31" textLength="134.421875">  name:&apos;Catch&apos; }</tspan></text><text transform="translate(138.021 604.629)" fill="black"><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="14" textLength="75.612305">/Book/456</tspan></text><text transform="translate(75.9893 604.629)" fill="black"><tspan font-family="Courier" font-size="14" font-weight="500" x="0" y="14" textLength="50.408203">DELETE</tspan></text></g><g><title>Columns</title><g><xl:use xl:href="#id20_Graphic" filter="url(#Shadow_2)"/><xl:use xl:href="#id10_Graphic" filter="url(#Shadow_2)"/><xl:use xl:href="#id21_Graphic" filter="url(#Shadow_2)"/><xl:use xl:href="#id23_Graphic" filter="url(#Shadow_2)"/></g><g id="id20_Graphic"><path d="M 231.521 159 L 362.564 159 C 367.53456 159 371.564 163.02944 371.564 168 L 371.564 672 C 371.564 676.97056 367.53456 681 362.564 681 L 231.521 681 C 226.55044 681 222.521 676.97056 222.521 672 L 222.521 168 C 222.521 163.02944 226.55044 159 231.521 159 Z" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" stroke-dasharray="8,5"/><text transform="translate(227.521 164)" fill="black"><tspan font-family="Helvetica" font-size="14" font-weight="bold" x="0" y="14" textLength="34.22754">Send</tspan></text></g><g id="id10_Graphic"><path d="M 80.7928 159 L 118.7713 159 C 123.74186 159 127.7713 163.02944 127.7713 168 L 127.7713 672 C 127.7713 676.97056 123.74186 681 118.7713 681 L 80.7928 681 C 75.822237 681 71.7928 676.97056 71.7928 672 L 71.7928 168 C 71.7928 163.02944 75.822237 159 80.7928 159 Z" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" stroke-dasharray="8,5"/><text transform="translate(76.7928 164)" fill="black"><tspan font-family="Helvetica" font-size="14" font-weight="bold" x="0" y="14" textLength="9.3378906">V</tspan><tspan font-family="Helvetica" font-size="14" font-weight="bold" x="8.5722656" y="14" textLength="21.786133">erb</tspan></text></g><g id="id21_Graphic"><path d="M 142 159 L 208.0215 159 C 212.99206 159 217.0215 163.02944 217.0215 168 L 217.0215 672 C 217.0215 676.97056 212.99206 681 208.0215 681 L 142 681 C 137.02944 681 133 676.97056 133 672 L 133 168 C 133 163.02944 137.02944 159 142 159 Z" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" stroke-dasharray="8,5"/><text transform="translate(138 164)" fill="black"><tspan font-family="Helvetica" font-size="14" font-weight="bold" x="0" y="14" textLength="28.772461">URL</tspan></text></g><g id="id23_Graphic"><path d="M 384.479 159 L 515.522 159 C 520.49256 159 524.522 163.02944 524.522 168 L 524.522 672 C 524.522 676.97056 520.49256 681 515.522 681 L 384.479 681 C 379.50844 681 375.479 676.97056 375.479 672 L 375.479 168 C 375.479 163.02944 379.50844 159 384.479 159 Z" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" stroke-dasharray="8,5"/><text transform="translate(380.479 164)" fill="black"><tspan font-family="Helvetica" font-size="14" font-weight="bold" x="0" y="14" textLength="52.930664">Receive</tspan></text></g></g></g></svg>