{

  "get": {
    "operationId": "getSolutions",
    "description": "List of solutions",
    "tags": ["Solution"],
    "parameters": [
      { "$ref": "../../common/components.json#/components/request/parameters/token_param" }
    ],
    "responses": {
      "200": {
        "description": "Object was returned correctly",
        "content": {
          "application/json": {
            "schema": {
              "description": "List of solutions",
              "type": "array",
              "items": { "$ref": "../../common/schemas/service_desk/solution.json#/components/schemas/response" }
            },
            "example": [{ "$ref": "../../common/examples/solution.json#/examples/response/json" }]
          },
          "application/xml": {
            "schema": {
              "description": "List of solutions",
              "type": "array",
              "xml": { "name": "/", "wrapped": true },
              "items": { "$ref": "../../common/schemas/service_desk/solution.json#/components/schemas/response" }
            }
          }
        }
      },
      "400": { "description": "Bad request" },
      "404": { "description": "Not found" },
      "500": { "description": "Server error" }
    }
  },
  "post": {
    "operationId": "createSolution",
    "description": "Create new solution",
    "tags": ["Solution"],
    "parameters": [
      { "$ref": "../../common/components.json#/components/request/parameters/token_param" }
    ],
    "requestBody": {
      "required": true,
      "description": "solution fields to fill",
      "content": {
        "application/json": {
          "schema": { "$ref": "../../common/schemas/service_desk/solution.json#/components/schemas/request/post" },
          "example": { "$ref": "../../common/examples/solution.json#/examples/request/json" }
        },
        "application/xml": { "schema": { "$ref": "../../common/schemas/service_desk/solution.json#/components/schemas/request/post" } }
      }
    },
    "responses": {
      "200": {
        "description": "Object created and returned correctly",
        "content": {
          "application/json": {
            "schema": { "$ref": "../../common/schemas/service_desk/solution.json#/components/schemas/response" },
            "example": { "$ref": "../../common/examples/solution.json#/examples/response/json" }
          },
          "application/xml": { "schema": { "$ref": "../../common/schemas/service_desk/solution.json#/components/schemas/response" } }
        }
      },
      "400": { "description": "Bad request" },
      "500": { "description": "Server error" }
    }
  }
}