<?xml version="1.0" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="wadl_documentation.xsl"?>
<application xmlns="http://research.sun.com/wadl/2006/10" xmlns:html="http://www.w3.org/1999/xhtml">
   <doc title="Spreadshirt Image Service API V1">Spreadshirt's Image Service API allows you to access image resources. To find out how it works, click on the example Urls below.</doc>
   <resources base="http://image.spreadshirt.net/image-server/v1/">
      <resource path="designs/{designId}">
         <doc>Returns a design image.</doc>
         <doc>Please note that you need to put the query params - the part that is usually added to an URL after ?, e.g.  ?key1=value1... - as comma separated list after the last url segment and put the mediaType after the dot, e.g. ...designs/175635241,key1=value1,key2=value2.png.<html:br/>This is necessary as our CDN does not cache images with queries right.<html:br/></doc>
         <doc>Sample Url is: <html:a href="http://image.spreadshirt.net/image-server/v1/designs/1781320,height=100,width=100.png">http://image.spreadshirt.net/image-server/v1/designs/1781320,height=100,width=100.png</html:a></doc>
         <method name="GET">
            <request>
               <param style="query" name="backgroundColor" type="xsd:string">
                  <doc>The color to render in background as a hexadecimal RGB color without leading '#' (optional)</doc>
               </param>
               <param style="query" name="mediaType" type="xsd:string">
                  <doc>The requested mediaType, e.g. png. <html:br/>Default media type is png.</doc>
                  <option id="png">
                     <doc>png</doc>
                  </option>
                  <option id="jpg">
                     <doc>jpg</doc>
                  </option>
                  <option id="gif">
                     <doc>gif</doc>
                  </option>
                  <option id="swf">
                     <doc>swf</doc>
                  </option>
               </param>
               <param style="template" name="designId" type="xsd:string" required="true">
                  <doc>Identifier of the design to render, e.g. 1781320.</doc>
               </param>
               <param style="query" name="width" type="xsd:string">
                  <doc>The desired width of the design in pixel, e.g. 100.</doc>
               </param>
               <param style="query" name="height" type="xsd:string">
                  <doc>The desired height of the design in pixel, e.g. 100.</doc>
               </param>
               <param style="query" name="colors[n]" type="xsd:string">
                  <doc>Change the color of an svg layer according to the given index and color.</doc>
               </param>
            </request>
            <response>
               <representation mediaType="image/png" status="200">
                  <doc title="design image">The requested design image as PNG image</doc>
               </representation>
               <representation mediaType="image/jpeg" status="200">
                  <doc title="design image">The requested design image as JPEG image</doc>
               </representation>
               <representation mediaType="image/gif" status="200">
                  <doc title="design image">The requested design image as GIF image</doc>
               </representation>
               <representation mediaType="application/x-shockwave-flash" status="200">
                  <doc title="design image">The requested design image as Shockwave Flash object</doc>
               </representation>
               <fault status="404">
                  <doc title="Design image not found">The requested design image does not exist or is in wrong state, e.g. not activated.</doc>
               </fault>
               <fault status="400">
                  <doc title="Bad request for a design image">The request for a design image is wrong somehow and can not be answered correctly.</doc>
               </fault>
            </response>
         </method>
         <method name="PUT">
            <request>
               <param style="query" name="mediaType" type="xsd:string">
                  <doc>The requested mediaType, e.g. png. <html:br/>Default media type is png.</doc>
                  <option id="png">
                     <doc>png</doc>
                  </option>
                  <option id="jpg">
                     <doc>jpg</doc>
                  </option>
                  <option id="jpg">
                     <doc>jpg</doc>
                  </option>
                  <option id="gif">
                     <doc>gif</doc>
                  </option>
                  <option id="svg">
                     <doc>svg</doc>
                  </option>
                  <option id="ai">
                     <doc>ai</doc>
                  </option>
                  <option id="eps">
                     <doc>eps</doc>
                  </option>
                  <option id="cdr">
                     <doc>cdr</doc>
                  </option>
                  <option id="pdf">
                     <doc>pdf</doc>
                  </option>
                  <option id="xml">
                     <doc>xml</doc>
                  </option>
               </param>
               <representation mediaType="image/png">
                  <doc title="design image"/></representation>
               <representation mediaType="image/jpeg">
                  <doc title="design image"/></representation>
               <representation mediaType="image/jpeg">
                  <doc title="design image"/></representation>
               <representation mediaType="image/gif">
                  <doc title="design image"/></representation>
               <representation mediaType="image/svg+xml">
                  <doc title="design image"/></representation>
               <representation mediaType="application/ai">
                  <doc title="design image"/></representation>
               <representation mediaType="application/eps">
                  <doc title="design image"/></representation>
               <representation mediaType="image/x-coreldraw">
                  <doc title="design image"/></representation>
               <representation mediaType="application/pdf">
                  <doc title="design image"/></representation>
               <representation mediaType="application/xml">
                  <doc title="design image"/></representation>
            </request>
            <response>
               <representation status="200">
                  <doc title="Success"/></representation>
               <fault status="404">
                  <doc title="Design image not found">The requested design image does not exist or is in wrong state, e.g. not activated.</doc>
               </fault>
               <fault status="400">
                  <doc title="Bad request for a design image">The request for a design image is wrong somehow and can not be answered correctly.</doc>
               </fault>
               <fault status="415">
                  <doc title="MeidaType not supported">The media type of the uploaded image is not supported!</doc>
               </fault>
            </response>
         </method>
      </resource>
      <resource path="configurations/{configurationId}">
         <doc>Returns a configuration image.</doc>
         <doc>Please note that you need to put the query params - the part that is usually added to an URL after ?, e.g.  ?key1=value1... - as comma separated list after the last url segment and put the mediaType after the dot, e.g. ...designs/175635241,key1=value1,key2=value2.png.<html:br/>This is necessary as our CDN does not cache images with queries right.<html:br/></doc>
         <doc>Sample Url is: <html:a href="http://image.spreadshirt.net/image-server/v1/configurations/2052127,height=100,width=100.png">http://image.spreadshirt.net/image-server/v1/configurations/2052127,height=100,width=100.png</html:a></doc>
         <method name="GET">
            <request>
               <param style="query" name="backgroundColor" type="xsd:string">
                  <doc>The color to render in background as a hexadecimal RGB color without leading '#' (optional)</doc>
               </param>
               <param style="query" name="mediaType" type="xsd:string">
                  <doc>The requested mediaType, e.g. png. <html:br/>Default media type is png.</doc>
                  <option id="png">
                     <doc>png</doc>
                  </option>
                  <option id="jpg">
                     <doc>jpg</doc>
                  </option>
                  <option id="gif">
                     <doc>gif</doc>
                  </option>
               </param>
               <param style="template" name="configurationId" type="xsd:int" required="true">
                  <doc>Identifier of the configuration to display, e.g. 2052127.</doc>
               </param>
               <param style="query" name="appearanceId" type="xsd:int">
                  <doc>Id of the appearance which should be shown instead of the original one (optional)</doc>
               </param>
               <param style="query" name="width" type="xsd:string">
                  <doc>The desired width of the configuration in pixel, e.g. 100.</doc>
               </param>
               <param style="query" name="height" type="xsd:string">
                  <doc>The desired height of the configuration in pixel, e.g. 100.</doc>
               </param>
            </request>
            <response>
               <representation mediaType="image/png" status="200">
                  <doc title="configuration image">The requested configuration image as PNG image</doc>
               </representation>
               <representation mediaType="image/jpeg" status="200">
                  <doc title="configuration image">The requested configuration image as JPEG image</doc>
               </representation>
               <representation mediaType="image/gif" status="200">
                  <doc title="configuration image">The requested configuration image as GIF image</doc>
               </representation>
               <fault status="404">
                  <doc title="Configuration image not found">The requested configuration image does not exist or is in wrong state, e.g. not activated.</doc>
               </fault>
               <fault status="400">
                  <doc title="Bad request for a configuration image">The request for a configuration image is wrong somehow and can not be answered correctly.</doc>
               </fault>
            </response>
         </method>
      </resource>
      <resource path="compositions/{productId}/views/{viewId}">
         <doc>Returns a composition image.</doc>
         <doc>Please note that you need to put the query params - the part that is usually added to an URL after ?, e.g.  ?key1=value1... - as comma separated list after the last url segment and put the mediaType after the dot, e.g. ...designs/175635241,key1=value1,key2=value2.png.<html:br/>This is necessary as our CDN does not cache images with queries right.<html:br/></doc>
         <doc>Sample Url is: <html:a href="http://image.spreadshirt.net/image-server/v1/compositions/1604700/views/1,height=100,width=100.png">http://image.spreadshirt.net/image-server/v1/compositions/1604700/views/1,height=100,width=100.png</html:a></doc>
         <method name="GET">
            <request>
               <param style="query" name="backgroundColor" type="xsd:string">
                  <doc>The color to render in background as a hexadecimal RGB color without leading '#' (optional)</doc>
               </param>
               <param style="query" name="mediaType" type="xsd:string">
                  <doc>The requested mediaType, e.g. png. <html:br/>Default media type is png.</doc>
                  <option id="png">
                     <doc>png</doc>
                  </option>
                  <option id="jpg">
                     <doc>jpg</doc>
                  </option>
                  <option id="gif">
                     <doc>gif</doc>
                  </option>
                  <option id="swf">
                     <doc>swf</doc>
                  </option>
               </param>
               <param style="template" name="productId" type="xsd:int" required="true">
                  <doc>Identifier of the product to display the composition of, e.g. 1604700.</doc>
               </param>
               <param style="template" name="viewId" type="xsd:int" required="true">
                  <doc>The identifier of the shown view</doc>
               </param>
               <param style="query" name="appearanceId" type="xsd:int">
                  <doc>Id of the appearance which should be shown instead of the original one (optional)</doc>
               </param>
               <param style="query" name="width" type="xsd:string">
                  <doc>The desired width of the composition in pixel, e.g. 100.</doc>
               </param>
               <param style="query" name="height" type="xsd:string">
                  <doc>The desired height of the composition in pixel, e.g. 100.</doc>
               </param>
            </request>
            <response>
               <representation mediaType="image/png" status="200">
                  <doc title="composition image">The requested composition image as PNG image</doc>
               </representation>
               <representation mediaType="image/jpeg" status="200">
                  <doc title="composition image">The requested composition image as JPEG image</doc>
               </representation>
               <representation mediaType="image/gif" status="200">
                  <doc title="composition image">The requested composition image as GIF image</doc>
               </representation>
               <representation mediaType="application/x-shockwave-flash" status="200">
                  <doc title="composition image">The requested composition image as Shockwave Flash object</doc>
               </representation>
               <fault status="404">
                  <doc title="Composition image not found">The requested composition image does not exist or is in wrong state, e.g. not activated.</doc>
               </fault>
               <fault status="400">
                  <doc title="Bad request for a composition image">The request for a composition image is wrong somehow and can not be answered correctly.</doc>
               </fault>
            </response>
         </method>
      </resource>
      <resource path="products/{productId}/views/{viewId}">
         <doc>Returns a product image.</doc>
         <doc>Please note that you need to put the query params - the part that is usually added to an URL after ?, e.g.  ?key1=value1... - as comma separated list after the last url segment and put the mediaType after the dot, e.g. ...designs/175635241,key1=value1,key2=value2.png.<html:br/>This is necessary as our CDN does not cache images with queries right.<html:br/></doc>
         <doc>Sample Url is: <html:a href="http://image.spreadshirt.net/image-server/v1/products/1604700/views/1,height=100,width=100.png">http://image.spreadshirt.net/image-server/v1/products/1604700/views/1,height=100,width=100.png</html:a></doc>
         <method name="GET">
            <request>
               <param style="query" name="backgroundColor" type="xsd:string">
                  <doc>The color to render in background as a hexadecimal RGB color without leading '#' (optional)</doc>
               </param>
               <param style="query" name="mediaType" type="xsd:string">
                  <doc>The requested mediaType, e.g. png. <html:br/>Default media type is png.</doc>
                  <option id="png">
                     <doc>png</doc>
                  </option>
                  <option id="jpg">
                     <doc>jpg</doc>
                  </option>
                  <option id="gif">
                     <doc>gif</doc>
                  </option>
                  <option id="swf">
                     <doc>swf</doc>
                  </option>
               </param>
               <param style="template" name="productId" type="xsd:int" required="true">
                  <doc>Identifier of the product to display, e.g. 1604700.</doc>
               </param>
               <param style="template" name="viewId" type="xsd:int" required="true">
                  <doc>The id of the shown view</doc>
               </param>
               <param style="query" name="appearanceId" type="xsd:int">
                  <doc>Id of the appearance which should be shown instead of the original one (optional)</doc>
               </param>
               <param style="query" name="width" type="xsd:string">
                  <doc>The desired width of the product in pixel, e.g. 100.</doc>
               </param>
               <param style="query" name="height" type="xsd:string">
                  <doc>The desired height of the product in pixel, e.g. 100.</doc>
               </param>
            </request>
            <response>
               <representation mediaType="image/png" status="200">
                  <doc title="product image">The requested product image as PNG image</doc>
               </representation>
               <representation mediaType="image/jpeg" status="200">
                  <doc title="product image">The requested product image as JPEG image</doc>
               </representation>
               <representation mediaType="image/gif" status="200">
                  <doc title="product image">The requested product image as GIF image</doc>
               </representation>
               <representation mediaType="application/x-shockwave-flash" status="200">
                  <doc title="product image">The requested product image as Shockwave Flash object</doc>
               </representation>
               <fault status="404">
                  <doc title="Product image not found">The requested product image does not exist or is in wrong state, e.g. not activated.</doc>
               </fault>
               <fault status="400">
                  <doc title="Bad request for a product image">The request for a product image is wrong somehow and can not be answered correctly.</doc>
               </fault>
            </response>
         </method>
      </resource>
      <resource path="productTypes/{productTypeId}/views/{viewId}/appearances/{appearanceId}">
         <doc>Returns a producttype image.</doc>
         <doc>Please note that you need to put the query params - the part that is usually added to an URL after ?, e.g.  ?key1=value1... - as comma separated list after the last url segment and put the mediaType after the dot, e.g. ...designs/175635241,key1=value1,key2=value2.png.<html:br/>This is necessary as our CDN does not cache images with queries right.<html:br/></doc>
         <doc>Sample Url is: <html:a href="http://image.spreadshirt.net/image-server/v1/productTypes/175/views/1/appearances/131,height=100,width=100.png">http://image.spreadshirt.net/image-server/v1/productTypes/175/views/1/appearances/131,height=100,width=100.png</html:a></doc>
         <method name="GET">
            <request>
               <param style="query" name="backgroundColor" type="xsd:string">
                  <doc>The color to render in background as a hexadecimal RGB color without leading '#' (optional)</doc>
               </param>
               <param style="query" name="mediaType" type="xsd:string">
                  <doc>The requested mediaType, e.g. png. <html:br/>Default media type is png.</doc>
                  <option id="png">
                     <doc>png</doc>
                  </option>
                  <option id="jpg">
                     <doc>jpg</doc>
                  </option>
                  <option id="gif">
                     <doc>gif</doc>
                  </option>
                  <option id="swf">
                     <doc>swf</doc>
                  </option>
               </param>
               <param style="template" name="productTypeId" type="xsd:int" required="true">
                  <doc>Identifier of the producttype to display, e.g. 175.</doc>
               </param>
               <param style="template" name="viewId" type="xsd:int" required="true">
                  <doc>The id of the shown view</doc>
               </param>
               <param style="template" name="appearanceId" type="xsd:int" required="true">
                  <doc>The id of the producttype appearance</doc>
               </param>
               <param style="query" name="width" type="xsd:string">
                  <doc>The desired width of the product type in pixel, e.g. 100.</doc>
               </param>
               <param style="query" name="height" type="xsd:string">
                  <doc>The desired height of the product type in pixel, e.g. 100.</doc>
               </param>
            </request>
            <response>
               <representation mediaType="image/png" status="200">
                  <doc title="producttype image">The requested producttype image as PNG image</doc>
               </representation>
               <representation mediaType="image/jpeg" status="200">
                  <doc title="producttype image">The requested producttype image as JPEG image</doc>
               </representation>
               <representation mediaType="image/gif" status="200">
                  <doc title="producttype image">The requested producttype image as GIF image</doc>
               </representation>
               <representation mediaType="application/x-shockwave-flash" status="200">
                  <doc title="producttype image">The requested producttype image as Shockwave Flash object</doc>
               </representation>
               <fault status="404">
                  <doc title="Producttype image not found">The requested producttype image does not exist or is in wrong state, e.g. not activated.</doc>
               </fault>
               <fault status="400">
                  <doc title="Bad request for a producttype image">The request for a producttype image is wrong somehow and can not be answered correctly.</doc>
               </fault>
            </response>
         </method>
      </resource>
      <resource path="productTypes/{productTypeId}/variants/{variant}">
         <doc>Returns a producttype variant image.</doc>
         <doc>Please note that you need to put the query params - the part that is usually added to an URL after ?, e.g.  ?key1=value1... - as comma separated list after the last url segment and put the mediaType after the dot, e.g. ...designs/175635241,key1=value1,key2=value2.png.<html:br/>This is necessary as our CDN does not cache images with queries right.<html:br/></doc>
         <doc>Sample Url is: <html:a href="http://image.spreadshirt.net/image-server/v1/productTypes/175/variants/detail,height=100,width=100.png">http://image.spreadshirt.net/image-server/v1/productTypes/175/variants/detail,height=100,width=100.png</html:a></doc>
         <method name="GET">
            <request>
               <param style="query" name="backgroundColor" type="xsd:string">
                  <doc>The color to render in background as a hexadecimal RGB color without leading '#' (optional)</doc>
               </param>
               <param style="query" name="mediaType" type="xsd:string">
                  <doc>The requested mediaType, e.g. png. <html:br/>Default media type is png.</doc>
                  <option id="png">
                     <doc>png</doc>
                  </option>
                  <option id="jpg">
                     <doc>jpg</doc>
                  </option>
                  <option id="gif">
                     <doc>gif</doc>
                  </option>
                  <option id="swf">
                     <doc>swf</doc>
                  </option>
               </param>
               <param style="template" name="productTypeId" type="xsd:int" required="true">
                  <doc>Identifier of the producttype to display, e.g. 175.</doc>
               </param>
               <param style="template" name="variant" type="One of &quot;size&quot;, &quot;size_lafraise&quot; or &quot;detail&quot;" required="true">
                  <doc>Variant of producttype image.</doc>
               </param>
               <param style="query" name="width" type="xsd:string">
                  <doc>The desired width of the product type variant in pixel, e.g. 100.</doc>
               </param>
               <param style="query" name="height" type="xsd:string">
                  <doc>The desired height of the product type variant in pixel, e.g. 100.</doc>
               </param>
            </request>
            <response>
               <representation mediaType="image/png" status="200">
                  <doc title="producttype variant image">The requested producttype variant image as PNG image</doc>
               </representation>
               <representation mediaType="image/jpeg" status="200">
                  <doc title="producttype variant image">The requested producttype variant image as JPEG image</doc>
               </representation>
               <representation mediaType="image/gif" status="200">
                  <doc title="producttype variant image">The requested producttype variant image as GIF image</doc>
               </representation>
               <representation mediaType="application/x-shockwave-flash" status="200">
                  <doc title="producttype variant image">The requested producttype variant image as Shockwave Flash object</doc>
               </representation>
               <fault status="404">
                  <doc title="Producttype variant image not found">The requested producttype variant image does not exist or is in wrong state, e.g. not activated.</doc>
               </fault>
               <fault status="400">
                  <doc title="Bad request for a producttype variant image">The request for a producttype variant image is wrong somehow and can not be answered correctly.</doc>
               </fault>
            </response>
         </method>
      </resource>
      <resource path="appearances/{appearanceId}">
         <doc>Returns an appearance image.</doc>
         <doc>Please note that you need to put the query params - the part that is usually added to an URL after ?, e.g.  ?key1=value1... - as comma separated list after the last url segment and put the mediaType after the dot, e.g. ...designs/175635241,key1=value1,key2=value2.png.<html:br/>This is necessary as our CDN does not cache images with queries right.<html:br/></doc>
         <doc>Sample Url is: <html:a href="http://image.spreadshirt.net/image-server/v1/appearances/23.png">http://image.spreadshirt.net/image-server/v1/appearances/23.png</html:a></doc>
         <method name="GET">
            <request>
               <param style="query" name="backgroundColor" type="xsd:string">
                  <doc>The color to render in background as a hexadecimal RGB color without leading '#' (optional)</doc>
               </param>
               <param style="query" name="mediaType" type="xsd:string">
                  <doc>The requested mediaType, e.g. png. <html:br/>Default media type is png.</doc>
                  <option id="png">
                     <doc>png</doc>
                  </option>
                  <option id="jpg">
                     <doc>jpg</doc>
                  </option>
                  <option id="gif">
                     <doc>gif</doc>
                  </option>
                  <option id="swf">
                     <doc>swf</doc>
                  </option>
               </param>
               <param style="template" name="appearanceId" type="xsd:int" required="true">
                  <doc>Identifier of the appearance to display, e.g. 23.</doc>
               </param>
            </request>
            <response>
               <representation mediaType="image/png" status="200">
                  <doc title="appearance image">The requested appearance image as PNG image</doc>
               </representation>
               <representation mediaType="image/jpeg" status="200">
                  <doc title="appearance image">The requested appearance image as JPEG image</doc>
               </representation>
               <representation mediaType="image/gif" status="200">
                  <doc title="appearance image">The requested appearance image as GIF image</doc>
               </representation>
               <representation mediaType="application/x-shockwave-flash" status="200">
                  <doc title="appearance image">The requested appearance image as Shockwave Flash object</doc>
               </representation>
               <fault status="404">
                  <doc title="Appearance image not found">The requested appearance image does not exist or is in wrong state, e.g. not activated.</doc>
               </fault>
               <fault status="400">
                  <doc title="Bad request for a appearance image">The request for a appearance image is wrong somehow and can not be answered correctly.</doc>
               </fault>
            </response>
         </method>
      </resource>
      <resource path="printColors/{printColorId}">
         <doc>Returns an print color image.</doc>
         <doc>Please note that you need to put the query params - the part that is usually added to an URL after ?, e.g.  ?key1=value1... - as comma separated list after the last url segment and put the mediaType after the dot, e.g. ...designs/175635241,key1=value1,key2=value2.png.<html:br/>This is necessary as our CDN does not cache images with queries right.<html:br/></doc>
         <doc>Sample Url is: <html:a href="http://image.spreadshirt.net/image-server/v1/printColors/13.png">http://image.spreadshirt.net/image-server/v1/printColors/13.png</html:a></doc>
         <method name="GET">
            <request>
               <param style="query" name="backgroundColor" type="xsd:string">
                  <doc>The color to render in background as a hexadecimal RGB color without leading '#' (optional)</doc>
               </param>
               <param style="query" name="mediaType" type="xsd:string">
                  <doc>The requested mediaType, e.g. png. <html:br/>Default media type is png.</doc>
                  <option id="png">
                     <doc>png</doc>
                  </option>
                  <option id="jpg">
                     <doc>jpg</doc>
                  </option>
                  <option id="gif">
                     <doc>gif</doc>
                  </option>
                  <option id="swf">
                     <doc>swf</doc>
                  </option>
               </param>
               <param style="template" name="printColorId" type="xsd:int" required="true">
                  <doc>Identifier of the print color to display, e.g. 13.</doc>
               </param>
            </request>
            <response>
               <representation mediaType="image/png" status="200">
                  <doc title="print color image">The requested print color image as PNG image</doc>
               </representation>
               <representation mediaType="image/jpeg" status="200">
                  <doc title="print color image">The requested print color image as JPEG image</doc>
               </representation>
               <representation mediaType="image/gif" status="200">
                  <doc title="print color image">The requested print color image as GIF image</doc>
               </representation>
               <representation mediaType="application/x-shockwave-flash" status="200">
                  <doc title="print color image">The requested print color image as Shockwave Flash object</doc>
               </representation>
               <fault status="404">
                  <doc title="Print color image not found">The requested print color image does not exist or is in wrong state, e.g. not activated.</doc>
               </fault>
               <fault status="400">
                  <doc title="Bad request for a print color image">The request for a print color image is wrong somehow and can not be answered correctly.</doc>
               </fault>
            </response>
         </method>
      </resource>
      <resource path="fontFamilies/{fontFamilyId}/fonts/{fontId}">
         <doc>Returns a font file.</doc>
         <doc>Please note th