v1

latestOpenAPI 3.0.0Apache 2.02026-07-179611.3 KB
devices

Add a new mobile device to the store

post/mobile-devices

Request body

idinteger
namestring required
manufacturerstring
modelstring
pricestring
status'available' | 'out-of-stock'

device status in the store

Example request

{
  "id": 1,
  "category": {
    "id": 10,
    "name": "phone"
  },
  "name": "IPhone 11",
  "manufacturer": "Apple Inc.",
  "model": "QQ123Q",
  "price": "$2000",
  "tags": [
    {
      "id": 1,
      "name": "dual-camera"
    }
  ],
  "status": "available"
}

Response

Sucessfully created the device

idinteger
namestring required
manufacturerstring
modelstring
pricestring
status'available' | 'out-of-stock'

device status in the store

Example response

{
  "id": 1,
  "category": {
    "id": 10,
    "name": "phone"
  },
  "name": "IPhone 11",
  "manufacturer": "Apple Inc.",
  "model": "QQ123Q",
  "price": "$2000",
  "tags": [
    {
      "id": 1,
      "name": "dual-camera"
    }
  ],
  "status": "available"
}