Design Resources

compared with
Current by Tino Liebich
on Feb 27, 2013 15:29.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (22)

View Page History








h2. Retrieve Shop DesignCategory Designs List









h2. Retrieve Shop Designs List









h2. Retrieve Shop Design Entity









h2. Create Shop Design

Create shop design. Initial state is without uploaded design image. However, design image can be uploaded or modified. A design commission (design/price) cannot be set. This is only possible for user design.


|| Url | .../api/v1/shops/\{shopId\}/designs ||
|| Sample | [http://api.spreadshirt.net/api/v1/shops/40000/designs] ||








*Response Representation:*









h2. Delete Shop Design









h2. Retrieve User DesignCategory Designs List









h2. Retrieve User Designs List









h2. Retrieve User Design Entity









h2. Create User Design

Create user design. Initial state is without uploaded design image. However, design can be uploaded or modified.
Create user design. Use an active session in order to make your uploaded designs visible in your Spreadshirt user area under Designs > Show all.
This creates an "empty" design and responds with its design ID. In the next step the actual image (pixel / vector file) needs to be uploaded using this design ID => [https://developer.spreadshirt.net/display/API/Image+Resources#ImageResources-Update%28Upload%29DesignImage] Later one can also modify the design by its ID. A design commission (design/price) can be set for user designs.


|| Url | .../api/v1/users/\{userId\}/designs ||
|| Sample | [http://api.spreadshirt.net/api/v1/users/40000/designs] ||








*Response Representation:*









h2. Delete User Design

| design/restrictions \\ | The restrictions tell you what you can't do with the design. \\ |
| design/restrictions/fixedColors \\ | FixedColors means you can't change the colors of a vector design. \\ |
| design/restrictions/colorCount \\ | Number of colors for the different color layers of a vector design. \\ |
| design/restrictions/movable \\ | Movable means you can move the design. \\ |
| design/restrictions/minimumScale \\ | MinimumScale is the scale max scale by which you can downsize the design image. \\ |
| design/restrictions/denyOtherText | Defines whether this design can be used together with other text configuration on print area or product. Valid values are _no, onProduct, onPrintArea_. |
| design/restrictions/denyOtherDesigns | Defines whether this design can be used together with other design configuration on print area or product. Valid values are _no, onProduct, onPrintArea_. |
| design/restrictions/allowScale | Defines whether this design can be scaled (svg scale). |
| design/restrictions/allowFlip | Defines whether this design can be flipped (svg scale x + y). |
| design/restrictions/allowRotate | Defines whether this design can be rotated (svg rotate). |
| design/size \\ | Upload size of the image in mm. \\ |
| design/colors \\ | List of colors for the different color layers of a vector design, i.e. svg, cdr, ai. \\ |
| design/designCategories \\ | List of design categories to which the design is assigned to (either shop or marketplace categories). \\ |
| design/designCategories/designCategory \\ | |
| design/price \\ | The design price in the currency of the shop. This is actually the design commission that the owner of the design will earn once an article holding this design is sold. Can be set for user designs only. \\ |
| design/resources \\ | List of connected resources (aka images). Use the links in case you need to display an image for the design. Please note that we can display vector designs as pixel designs only for legal reasons (means we can't deliver an svg there). |
| design/resources/resource \\ | |
        <fixedColors>false</fixedColors>
       <ownText>true</ownText>
<colorCount>0</colorCount>
        <obligatory>false</obligatory>
        <movable>true</movable>


Create design meta data via API. This creates an "empty" design and responds with its design ID. In the next step the actual image (pixel / vector file) can be uploaded using this design ID and later modified too.

Get *Location* header to the created design meta data.