{

"get": {
  "operationId": "getHardwares",
  "description": "List of hardwares",
  "tags": ["Hardware"],
  "parameters": [
    { "$ref": "../../common/components.json#/components/request/parameters/token_param" }
  ],
  "responses": {
    "200": {
      "description": "Object was returned correctly",
      "content": {
        "application/json": {
          "schema": {
            "description": "List of hardwares",
            "type": "array",
            "items": { "$ref": "../../common/schemas/inventory/hardware.json#/components/schemas/response" }
          },
          "example": [{ "$ref": "../../common/examples/hardware.json#/examples/response" }]
        },
        "application/xml": {
          "schema": {
            "description": "List of hardwares",
            "type": "array",
            "xml": { "name": "/", "wrapped": true },
            "items": { "$ref": "../../common/schemas/inventory/hardware.json#/components/schemas/response" }
          }
        }
      }
    },
    "400": { "description": "Bad request" },
    "404": { "description": "Not found" },
    "500": { "description": "Server error" }
  }
},
"post": {
  "operationId": "createHardware",
  "description": "Create new hardware",
  "tags": ["Hardware"],
  "parameters": [
    { "$ref": "../../common/components.json#/components/request/parameters/token_param" }
  ],
  "requestBody": {
    "required": true,
    "description": "Hardware fields to fill",
    "content": {
      "application/json": {
        "schema": { "$ref": "../../common/schemas/inventory/hardware.json#/components/schemas/request/post" },
        "example": { "$ref": "../../common/examples/hardware.json#/examples/request" }
      },
      "application/xml": { "schema": { "$ref": "../../common/schemas/inventory/hardware.json#/components/schemas/request/post" } }
    }
  },
  "responses": {
    "200": {
      "description": "Object created and 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" },
    "500": { "description": "Server error" }
  }
}

}