Changes for page Design Details

Last modified by Shop Team on 2023/02/13 22:56

<
From version < 2.1 >
edited by Shop Team
on 2019/08/01 11:55
To version < 4.1 >
edited by Shop Team
on 2019/08/01 12:20
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,5 +1,6 @@
1 1  = List of all designs in the shop =
2 2  
3 +(% class="wrapped" %)
3 3  |=(((
4 4  Method
5 5  )))|=(((
... ... @@ -74,7 +74,97 @@
74 74  }
75 75  {{/code}}
76 76  
77 -(% class="auto-cursor-target" %)
78 78  \\
79 79  
80 += Details about a design =
81 +
82 +(% class="wrapped" %)
83 +|=(((
84 +Method
85 +)))|=(((
86 +URL
87 +)))|=(((
88 +Example
89 +)))
90 +|(((
91 +GET
92 +)))|(((
93 +/api/v1/shops/<shopId>/designs/<designId>
94 +)))|(((
95 +[[https:~~/~~/api.spreadshirt.net/api/v1/shops/100488332/designs/163261757?mediaType=json>>url:https://api.spreadshirt.net/api/v1/shops/100488332/designs/163261757?mediaType=json||shape="rect"]]
96 +)))
97 +
80 80  \\
99 +
100 +In our terminology, a design represents a pixel (png, jpg, gif) or vector image (svg) that a customer or partner can use to put it on a product type. A typical design, e.g. the "I Heart" design from the Spreadshirt marketplace, is illustrated in the picture above. A design has the following characteristics:
101 +
102 +* Each design has a name, a description, a size and a price. The price is in this case the commission that the owner of the design earns for each usage.
103 +* **Images:** To retrieve a design image, you can use a URL similar to the following one: [[https:~~/~~/image.spreadshirtmedia.net/image-server/v1/designs/2484607>>url:https://image.spreadshirtmedia.net/image-server/v1/designs/2484607||shape="rect"]]. These URLs are provided within the resources part of the design payload.
104 +* **Color Layers:** Vector designs consist of one or more color layers. We provide for each color layer, the original color of the uploaded design as well as the color set by the owner as actual default color. Example:
105 +[[image:attach:design-layer2.png]]
106 +\\
107 +* **Allowed Print Types:** For each design, we provide a list of print types, e.g. flock, flex or digital direct print, that can be used to print that design. Vector and pixel images are printed using different print types!
108 +
109 +\\
110 +
111 +{{code language="js" title="Example Payload"}}
112 +{
113 + "href":"https://api.spreadshirt.net/api/v1/shops/100488332/designs/163261757",
114 + "id":"163261757",
115 + "created":"2019-07-08T08:03:56.000+0000",
116 + "modified":"2019-07-22T10:17:39.000+0000",
117 + "name":"I love you",
118 + "description":"A lovely design for you",
119 + "tags":"Love,Love hurts,Love me,Love parade,Love with heart,Loved,Lovestruck,You,Young money,Young wild and free,Your,Youtube,migration,shop api,test",
120 + "user":{
121 + "href":"https://api.spreadshirt.net/api/v1/users/117878306",
122 + "id":"117878306"
123 + },
124 + "size":{
125 + "width":3938.0,
126 + "height":1149.0,
127 + "unit":"px"
128 + },
129 + "colors":[
130 +
131 + ],
132 + "backgroundColor":"#666666",
133 + "printTypes":[
134 + {
135 + "href":"https://api.spreadshirt.net/api/v1/shops/100488332/printTypes/17",
136 + "id":"17"
137 + },
138 + {
139 + "href":"https://api.spreadshirt.net/api/v1/shops/100488332/printTypes/1",
140 + "id":"1"
141 + },
142 + ],
143 + "designCategories":[
144 +
145 + ],
146 + "price":{
147 + "vatExcluded":0.00,
148 + "vatIncluded":0.00,
149 + "vat":19.00,
150 + "currency":{
151 + "href":"https://api.spreadshirt.net/api/v1/currencies/1",
152 + "id":"1"
153 + }
154 + },
155 + "resources":[
156 + {
157 + "mediaType":"png",
158 + "type":"preview",
159 + "href":"https://image.spreadshirtmedia.net/image-server/v1/designs/163261757,backgroundColor=666666"
160 + },
161 + {
162 + "mediaType":"png",
163 + "type":"montage",
164 + "href":"https://image.spreadshirtmedia.net/image-server/v1/designs/163261757"
165 + }
166 + ],
167 +}
168 +{{/code}}
169 +
170 +(% class="auto-cursor-target" %)
171 +\\
Confluence.Code.ConfluencePageClass[0]
id
... ... @@ -1,1 +1,1 @@
1 -28278859
1 +28278862
url
... ... @@ -1,1 +1,1 @@
1 -https://developer.spreadshirt.net/wiki/spaces/API/pages/28278859/Design
1 +https://developer.spreadshirt.net/wiki/spaces/API/pages/28278862/Design