{

"get": {
  "operationId": "getHardwareById",
  "description": "Get hardware",
  "tags": ["Hardware"],
  "parameters": [
    { "$ref": "../../common/components.json#/components/request/parameters/token_param" },
    { "$ref": "../../common/components.json#/components/request/parameters/id_param" }
  ],
  "responses": {
    "200": {
      "description": "Object was returned correctly",
      "content": {
        "application/json": {
          "schema": { "$ref": "../../common/schemas/inventory/hardware.json#/components/schemas/response" },
          "example": { "$ref": "../../common/examples/hardware.json#/examples/response" }
        },
        "application/xml": { "schema": { "$ref": "../../common/schemas/inventory/hardware.json#/components/schemas/response" } }
      }
    },
    "400": { "description": "Bad request" },
    "404": { "description": "Not found" },
    "500": { "description": "Internal Server Error" }
  }
},
"put": {
  "operationId": "updateHardwareById",
  "description": "Update hardware with specified fields",
  "tags": ["Hardware"],
  "parameters": [
    { "$ref": "../../common/components.json#/components/request/parameters/token_param" },
    { "$ref": "../../common/components.json#/components/request/parameters/id_param" }
  ],
  "requestBody": {
    "required": true,
    "description": "Hardware fields to update",
    "content": {
      "application/json": {
        "schema": { "$ref": "../../common/schemas/inventory/hardware.json#/components/schemas/request/put" },
        "example": { "$ref": "../../common/examples/hardware.json#/examples/request" }
      },
      "application/xml": { "schema": { "$ref": "../../common/schemas/inventory/hardware.json#/components/schemas/request/put" } }
    }
  },
  "responses": {
    "200": {
      "description": "Object was updated correctly",
      "content": {
        "application/json": {
          "schema": { "$ref": "../../common/schemas/inventory/hardware.json#/components/schemas/response" },
          "example": { "$ref": "../../common/examples/hardware.json#/examples/response" }
        },
        "application/xml": { "schema": { "$ref": "../../common/schemas/inventory/hardware.json#/components/schemas/response" } }
      }
    },
    "400": { "description": "Bad request" },
    "404": { "description": "Not found" },
    "500": { "description": "Internal Server Error" }
  }
},
"delete": {
  "operationId": "deleteHardwareById",
  "description": "Delete hardware",
  "tags": ["Hardware"],
  "parameters": [
    { "$ref": "../../common/components.json#/components/request/parameters/token_param" },
    { "$ref": "../../common/components.json#/components/request/parameters/id_param" }
  ],
  "responses": {
    "200": {
      "description": "Returns the deleted hardware's id",
      "content": {
        "application/json": {
          "example": { "deleted_ids": ["1"] }
        }
      }
    },
    "400": { "description": "Bad request" },
    "404": { "description": "Not found" },
    "500": { "description": "Internal Server Error" }
  }
}

}