Documentation
Webshop (v1)
Product
Get all products to an indiividual starId
GET /webshop/product[/:product_id]
Fields
| Field | Type | Description | Required |
|---|---|---|---|
| starId | integer | ID des Stars im schlager.de Portal |
YES |
| StarName | string | Name des Stars |
NO |
| title | string | Produkt Titel |
NO |
| shortDescription | text | Kurzbeschreibung des Produkts |
NO |
| image | string | Url Pfad zum produktfoto |
NO |
| link | string | Produktlink zum online Shop |
NO |
| price | float | Produktpreis |
NO |
| discount | float | Produkt Rabatt |
NO |
Request
Headers
| Header | Value |
|---|---|
| Accept | application/vnd.webshop.v1+json
application/hal+json
application/json |
Response
Status Codes
- 406: Not Acceptable
- 415: Unsupported Media Type
- 200: OK
Headers
| Header | Value |
|---|---|
| Content-Type | application/vnd.webshop.v1+json
application/hal+json
application/json |
| Allow | Comma-separated list of all HTTP methods allowed |
Body
{
"_links": {
"self": {
"href": "/product"
},
"first": {
"href": "/product?page={page}"
},
"prev": {
"href": "/product?page={page}"
},
"next": {
"href": "/product?page={page}"
},
"last": {
"href": "/product?page={page}"
}
}
"_embedded": {
"product": [
{
"_links": {
"self": {
"href": "/product[/:product_id]"
}
}
"starId": "ID des Stars im schlager.de Portal",
"StarName": "Name des Stars",
"title": "Produkt Titel",
"shortDescription": "Kurzbeschreibung des Produkts",
"image": "Url Pfad zum produktfoto",
"link": "Produktlink zum online Shop",
"price": "Produktpreis",
"discount": "Produkt Rabatt"
}
]
}
}