Skip to content

Instantly share code, notes, and snippets.

@wochap
Last active September 20, 2016 15:58
Show Gist options
  • Save wochap/a9b5ef148a3eea39f0c36f2a9be679c0 to your computer and use it in GitHub Desktop.
Save wochap/a9b5ef148a3eea39f0c36f2a9be679c0 to your computer and use it in GitHub Desktop.
wiltex api

Items

1. [GET] items

Example

GET

Link: api/admin/products/{id}

Response

{
  "data": {
    "promotion": "false",
    "promotionDiscount": 0,
    "sizesPromotion": [
      ""
    ],
    "id": "4",
    "name": "Gimnasia DMS con cuello redondo",
    "description": "Polera Liceo Gimnasia",
    "link": "http://localhost:8000/productos/gimnasia-dms-con-cuello-redondo",
    "categoryId": "1",
    "subCategoryId": "7",
    "categoryName": "Linea Escolar",
    "colors": [
      ...manyColors, {
        "id": "1",
        "name": "Blanco",
        "color": "#FFFFFF",
        "images": [
          ...manyImages, {
            "id": "0",
            "imageUrl": "http://localhost:8000/img/image-404.png",
            "imageHdUrl": "http://localhost:8000/img/image-404.png"
          }
        ],
        "sizes": [
          ...manySizes, {
            "id": "1",
            "name": "2",
            "promotion": false,
            "coins": [
              ...manyCoins, {
                "id": "1",
                "price": "16.00",
                "wholesalePrice": "13.00",
                "unitPrice": "16.00",
                "priceBefore": 0
              }
            ]
          }
        ]
      }
    ]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment