Changes for page Design Details
Last modified by Shop Team on 2023/02/13 22:56
Summary
-
Page properties (3 modified, 0 added, 0 removed)
-
Attachments (0 modified, 1 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -Design 1 +Design Details - Parent
-
... ... @@ -1,0 +1,1 @@ 1 +API.Spreadshirt Public Shop API Documentation.API REST Resources.WebHome - Content
-
... ... @@ -1,7 +1,5 @@ 1 -In our terminology, a design represents a pixel (png, jpg, gif) or vector image (svg) that acustomeror partnercan use toput it on a product type.1 +In our terminology, a design represents a pixel (png, jpg, gif) or vector image (svg) that you uploaded in the Partner Area. Every entry from theĀ [[Sellables endpoint>>doc:API.Sellables]] contains a field "mainDesignId". This id can be used to access the resource below in order to retrieve additional information about the upload. In the vast majority of implementations, this information is not necessary and it suffices to use the "Sellables" resource. 2 2 3 -= List of all designs in the shop = 4 - 5 5 (% class="wrapped" %) 6 6 |=((( 7 7 Method ... ... @@ -13,63 +13,6 @@ 13 13 |((( 14 14 GET 15 15 )))|((( 16 -/api/v1/shops/<shopId>/designs 17 -)))|((( 18 -[[https:~~/~~/api.spreadshirt.net/api/v1/shops/100488332/designs?mediaType=json>>url:https://api.spreadshirt.net/api/v1/shops/100488332/designs?mediaType=json||shape="rect"]] 19 -))) 20 - 21 -\\ 22 - 23 -{{code language="js" theme="Emacs" title="Example Payload" collapse="true"}} 24 -{ 25 - "offset":0, 26 - "limit":10, 27 - "count":2, 28 - "designs":[ 29 - { 30 - "id":"163261757", 31 - "href":"https://api.spreadshirt.net/api/v1/shops/100488332/designs/163261757", 32 - "name":"I love you", 33 - "backgroundColor":"#666666", 34 - "resources":[ 35 - { 36 - "href":"https://image.spreadshirtmedia.net/image-server/v1/designs/163261757", 37 - "mediaType":"png", 38 - "type":"preview" 39 - } 40 - ], 41 - }, 42 - { 43 - "id":"163261722", 44 - "href":"https://api.spreadshirt.net/api/v1/shops/100488332/designs/163261722", 45 - "name":"pinguine", 46 - "resources":[ 47 - { 48 - "href":"https://image.spreadshirtmedia.net/image-server/v1/designs/163261722", 49 - "mediaType":"png", 50 - "type":"preview" 51 - } 52 - ], 53 - }, 54 - ] 55 -} 56 -{{/code}} 57 - 58 -\\ 59 - 60 -= Details about a design = 61 - 62 -(% class="wrapped" %) 63 -|=((( 64 -Method 65 -)))|=((( 66 -URL 67 -)))|=((( 68 -Example 69 -))) 70 -|((( 71 -GET 72 -)))|((( 73 73 /api/v1/shops/<shopId>/designs/<designId> 74 74 )))|((( 75 75 [[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"]] ... ... @@ -79,7 +79,7 @@ 79 79 80 80 A design has the following characteristics: 81 81 82 -* 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.23 +* Each design has a name, a description, a size. 83 83 * **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. 84 84 * **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: 85 85 [[image:attach:design-layer2.png]] ... ... @@ -120,18 +120,6 @@ 120 120 "id":"1" 121 121 }, 122 122 ], 123 - "designCategories":[ 124 - 125 - ], 126 - "price":{ 127 - "vatExcluded":0.00, 128 - "vatIncluded":0.00, 129 - "vat":19.00, 130 - "currency":{ 131 - "href":"https://api.spreadshirt.net/api/v1/currencies/1", 132 - "id":"1" 133 - } 134 - }, 135 135 "resources":[ 136 136 { 137 137 "mediaType":"png",
- design-layer2.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.XWikiGuest - Size
-
... ... @@ -1,0 +1,1 @@ 1 +31.8 KB - Content
- Confluence.Code.ConfluencePageClass[0]
-
- id
-
... ... @@ -1,1 +1,1 @@ 1 -282788 651 +28278856 - url
-
... ... @@ -1,1 +1,1 @@ 1 -https://developer.spreadshirt.net/wiki/spaces/API/pages/282788 65/Design1 +https://developer.spreadshirt.net/wiki/spaces/API/pages/28278856/Design Details