Wiki source code of ProductType departments
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | (% class="auto-cursor-target" %) | ||
2 | \\ | ||
3 | |||
4 | (% class="relative-table" style="width: 57.0968%;" %) | ||
5 | |=((( | ||
6 | Method | ||
7 | )))|=((( | ||
8 | URL | ||
9 | )))|=((( | ||
10 | Example | ||
11 | ))) | ||
12 | |((( | ||
13 | GET | ||
14 | )))|((( | ||
15 | /api/v1/shops/<shopId>/productTypeDetpartments | ||
16 | )))|((( | ||
17 | [[https:~~/~~/api.spreadshirt.net/api/v1/shops/100488332/productTypeDetpartments?mediaType=json>>url:https://api.spreadshirt.net/api/v1/shops/100488332/productTypeDetpartments?mediaType=json||shape="rect"]] | ||
18 | ))) | ||
19 | |||
20 | \\ | ||
21 | |||
22 | This resource is probably only relevant for somewhat generic implementations because it allows them to access a shop's name and localization settings. | ||
23 | |||
24 | \\ | ||
25 | |||
26 | {{code language="js" title="Example Payload"}} | ||
27 | { | ||
28 | "href" : "https://api.spreadshirt.net/api/v1/shops/100488332", | ||
29 | "id" : "100488332", | ||
30 | "name" : "shop-api-migration-example", | ||
31 | "descriptionName" : "shop-api-migration-example", | ||
32 | "country" : | ||
33 | { | ||
34 | "href" : "https://api.spreadshirt.net/api/v1/countries/1", | ||
35 | "id" : "1" | ||
36 | }, | ||
37 | "language" : | ||
38 | { | ||
39 | "href" : "https://api.spreadshirt.net/api/v1/languages/1", | ||
40 | "id" : "1" | ||
41 | }, | ||
42 | "currency" : | ||
43 | { | ||
44 | "href" : "https://api.spreadshirt.net/api/v1/currencies/1", | ||
45 | "id" : "1" | ||
46 | } | ||
47 | } | ||
48 | {{/code}} | ||
49 | |||
50 | (% class="auto-cursor-target" %) | ||
51 | \\ |