Supported Formats

json

GET /api/caras/por_producto
Devuelve las caras de un producto

### Ejemplo cURL

curl -X GET -H "Cache-Control: no-cache" -H "Postman-Token: 7121d0f6-2cd3-2e27-8b17-1a9409dc6bd8" 'http://localhost:3000/api/caras/por_producto.json?producto_id=1'

### Ejemplo Retorno

[
  {
    "id": 9716,
    "foto_url": "https://interceramic.com/application/public/uploads/PS.3WOD.BEIG.1066.1001.1_C9716.jpg",
    "producto_id": 259657
  },
  {
    "id": 9717,
    "foto_url": "https://interceramic.com/application/public/uploads/PS.3WOD.BEIG.1066.1001.1_C9717.jpg",
    "producto_id": 259657
  }

]

Supported Formats

json

Errors

401 Unauthorized - Returned when authentication can't be achieved via login or missing/expired api token

Params

Param Name Description
producto_id
Required

Value:

Must be String


GET /api/caras/all
Devuelve todas las caras

### Ejemplo cURL

curl -X GET -H "Cache-Control: no-cache" -H "Postman-Token: 7121d0f6-2cd3-2e27-8b17-1a9409dc6bd8" 'http://localhost:3000/api/caras/all'

### Ejemplo Retorno

[
  {
    "id": 9716,
    "foto_url": "https://interceramic.com/application/public/uploads/PS.3WOD.BEIG.1066.1001.1_C9716.jpg",
    "producto_id": 259657
  },
  {
    "id": 9717,
    "foto_url": "https://interceramic.com/application/public/uploads/PS.3WOD.BEIG.1066.1001.1_C9717.jpg",
    "producto_id": 259657
  }
]

Supported Formats

json

Errors

401 Unauthorized - Returned when authentication can't be achieved via login or missing/expired api token

GET /api/caras/total
Devuelve el total de caras

### Ejemplo cURL

curl -X GET -H "Cache-Control: no-cache" -H "Postman-Token: 7121d0f6-2cd3-2e27-8b17-1a9409dc6bd8" 'http://localhost:3000/api/caras/total'

### Ejemplo Retorno

{
  "total":3210
}

Supported Formats

json

Errors

401 Unauthorized - Returned when authentication can't be achieved via login or missing/expired api token