{
  "swagger": "2.0",
  "info": {
    "version": "v1",
    "title": "WSLoescherDataAPI",
    "contact": {
      "name": "Sviluppatori",
      "email": "sistemi@loescher.it"
    }
  },
  "host": "api.loescher.it",
  "schemes": [
    "https"
  ],
  "paths": {
    "/api/{version}/activatedbooks": {
      "get": {
        "tags": [
          "ActivatedBooks"
        ],
        "operationId": "ActivatedBooks_GetTest",
        "consumes": [],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      },
      "post": {
        "tags": [
          "ActivatedBooks"
        ],
        "operationId": "ActivatedBooks_Post",
        "consumes": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/x-www-form-urlencoded"
        ],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "book",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ActivatedBook"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/activatedbooks2": {
      "post": {
        "tags": [
          "ActivatedBooks2"
        ],
        "operationId": "ActivatedBooks2_Post",
        "consumes": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/x-www-form-urlencoded"
        ],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "data",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UserData"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/activatedbooks2/{email}": {
      "get": {
        "tags": [
          "ActivatedBooks2"
        ],
        "operationId": "ActivatedBooks2_Get",
        "consumes": [],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "email",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/activatedbooks2/feedback": {
      "post": {
        "tags": [
          "ActivatedBooks2"
        ],
        "operationId": "ActivatedBooks2_PostFeedback",
        "consumes": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/x-www-form-urlencoded"
        ],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "o",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PostFeedbackIN"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/activationkeys/{id}": {
      "get": {
        "tags": [
          "ActivationKeys"
        ],
        "operationId": "ActivationKeys_Get",
        "consumes": [],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/activationkeys": {
      "post": {
        "tags": [
          "ActivationKeys"
        ],
        "operationId": "ActivationKeys_Post",
        "consumes": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/x-www-form-urlencoded"
        ],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "data",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ActivateKeyData"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/adozioni": {
      "post": {
        "tags": [
          "Adozioni"
        ],
        "operationId": "Adozioni_Post",
        "consumes": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/x-www-form-urlencoded"
        ],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "data",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ElencoAdozioniIN"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/apiprofile/{id}": {
      "get": {
        "tags": [
          "APIProfile"
        ],
        "operationId": "APIProfile_Get",
        "consumes": [],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/apiprofile/changepassword": {
      "post": {
        "tags": [
          "APIProfile"
        ],
        "operationId": "APIProfile_Post",
        "consumes": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/x-www-form-urlencoded"
        ],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "data",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ChangePasswordIN"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/v1/bsmart/activate_book": {
      "post": {
        "tags": [
          "bSmart"
        ],
        "operationId": "bSmart_Post",
        "consumes": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/x-www-form-urlencoded"
        ],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "data",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ActivateBookPreActivation"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/catalog": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "operationId": "Catalog_Search",
        "consumes": [],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/catalog/testi/digitali/{provider}": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "operationId": "Catalog_GetCodiciPerFornitore",
        "consumes": [],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/documentation": {
      "get": {
        "tags": [
          "Documentation"
        ],
        "operationId": "Documentation_Get",
        "consumes": [],
        "produces": [
          "application/json",
          "text/json"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api": {
      "get": {
        "tags": [
          "ImparoSulWeb"
        ],
        "operationId": "ImparoSulWeb_Get",
        "consumes": [],
        "produces": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "/api/{version}/imparosulweb/tokens/{token}/check": {
      "get": {
        "tags": [
          "ImparoSulWeb"
        ],
        "operationId": "ImparoSulWeb_Get",
        "consumes": [],
        "produces": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml"
        ],
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/CheckTokenResult"
            }
          }
        }
      }
    },
    "/api/{version}/imparosulweb/materiali/{user}/{tipo}": {
      "get": {
        "tags": [
          "ImparoSulWeb"
        ],
        "operationId": "ImparoSulWeb_Get",
        "consumes": [],
        "produces": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml"
        ],
        "parameters": [
          {
            "name": "user",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "tipo",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/imparosulweb/scuolabook/verifica/codice/{codice}": {
      "get": {
        "tags": [
          "ImparoSulWeb"
        ],
        "operationId": "ImparoSulWeb_VerificaCodiceScuolabook",
        "consumes": [],
        "produces": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml"
        ],
        "parameters": [
          {
            "name": "codice",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "string"
            }
          }
        }
      }
    },
    "/api/{version}/imparosulweb/search/opere/contentid/{contentId}/{tipo}": {
      "get": {
        "tags": [
          "ImparoSulWeb"
        ],
        "operationId": "ImparoSulWeb_GetOpereByContentId",
        "consumes": [],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "contentId",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "tipo",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/imparosulweb/webtv/{email}/contents": {
      "get": {
        "tags": [
          "ImparoSulWeb"
        ],
        "operationId": "ImparoSulWeb_GetWebTvContentsIdByUser",
        "consumes": [],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "email",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/imparosulweb/webtv/{email}/subscription": {
      "get": {
        "tags": [
          "ImparoSulWeb"
        ],
        "operationId": "ImparoSulWeb_GetOfferteWebTvByUser",
        "consumes": [],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "email",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/imparosulweb/users/{email}/changepassword": {
      "post": {
        "tags": [
          "ImparoSulWeb"
        ],
        "operationId": "ImparoSulWeb_ChangePassword",
        "consumes": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/x-www-form-urlencoded"
        ],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "changePwd",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ISWChangePasswordIN"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "email",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/3rdparty/integra/checkPromoCode": {
      "post": {
        "tags": [
          "Integra"
        ],
        "operationId": "Integra_Post",
        "consumes": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/x-www-form-urlencoded"
        ],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "data",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CheckPromoCodeInput"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/3rdparty/integra/recoverPromoCode": {
      "post": {
        "tags": [
          "Integra"
        ],
        "operationId": "Integra_Post",
        "consumes": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/x-www-form-urlencoded"
        ],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "data",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/RecoverPromoCodeInput"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/3rdparty/integra/ValidateAuthentication": {
      "post": {
        "tags": [
          "Integra"
        ],
        "operationId": "Integra_Post",
        "consumes": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/x-www-form-urlencoded"
        ],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "data",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ValidateAuthenticationInput"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/3rdparty/integra/GetUserInfo": {
      "post": {
        "tags": [
          "Integra"
        ],
        "operationId": "Integra_Post",
        "consumes": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/x-www-form-urlencoded"
        ],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "data",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/GetUserInfoInput"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/3rdparty/integra/UpdateUserInfo": {
      "post": {
        "tags": [
          "Integra"
        ],
        "operationId": "Integra_Post",
        "consumes": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/x-www-form-urlencoded"
        ],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "data",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UpdateUserInfoInput"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/3rdparty/integra/RegisterUser": {
      "post": {
        "tags": [
          "Integra"
        ],
        "operationId": "Integra_Post",
        "consumes": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/x-www-form-urlencoded"
        ],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "data",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/RegisterUserInput"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/istituti": {
      "post": {
        "tags": [
          "Istituti"
        ],
        "operationId": "Istituti_Post",
        "consumes": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/x-www-form-urlencoded"
        ],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "data",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ElencoIstitutiIN"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/3rdparty/maieutical/users/login": {
      "post": {
        "tags": [
          "MaieuticalLabs"
        ],
        "operationId": "MaieuticalLabs_Post",
        "consumes": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/x-www-form-urlencoded"
        ],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "data",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UserCredentials"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/3rdparty/maieutical/users": {
      "post": {
        "tags": [
          "MaieuticalLabs"
        ],
        "operationId": "MaieuticalLabs_Post",
        "consumes": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/x-www-form-urlencoded"
        ],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "data",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UserCreatedLight"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/3rdparty/maieutical/books/unblocked/{id}": {
      "get": {
        "tags": [
          "MaieuticalLabs"
        ],
        "operationId": "MaieuticalLabs_Get",
        "consumes": [],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/3rdparty/maieutical/books/assets/{id}": {
      "get": {
        "tags": [
          "MaieuticalLabs"
        ],
        "operationId": "MaieuticalLabs_GetAssets",
        "consumes": [],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/mail/unsubscribe": {
      "post": {
        "tags": [
          "Mail"
        ],
        "operationId": "Mail_PostUnsubscribe",
        "consumes": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/x-www-form-urlencoded"
        ],
        "produces": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml"
        ],
        "parameters": [
          {
            "name": "_in",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PostUnsubscribeInput"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/ResponseMessage"
            }
          }
        }
      }
    },
    "/api/{version}/session": {
      "post": {
        "tags": [
          "Session"
        ],
        "operationId": "Session_Post",
        "consumes": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/x-www-form-urlencoded"
        ],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "s",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/Session"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/users/{id}": {
      "get": {
        "tags": [
          "Users"
        ],
        "operationId": "Users_Get",
        "consumes": [],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Users"
        ],
        "operationId": "Users_Delete",
        "consumes": [],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/users/{id}/isw/activations": {
      "get": {
        "tags": [
          "Users"
        ],
        "operationId": "Users_GetIswActivations",
        "consumes": [],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/users/login": {
      "post": {
        "tags": [
          "Users"
        ],
        "operationId": "Users_Post",
        "consumes": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/x-www-form-urlencoded"
        ],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "data",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UserCredentials"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/users": {
      "post": {
        "tags": [
          "Users"
        ],
        "operationId": "Users_Post",
        "consumes": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/x-www-form-urlencoded"
        ],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "data",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UserCreated"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/v2/users/login": {
      "post": {
        "tags": [
          "Users"
        ],
        "operationId": "Users_PostV2",
        "consumes": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/x-www-form-urlencoded"
        ],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "data",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UserCredentialsV2"
            }
          },
          {
            "name": "appname",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/aie/zainodigitale/book/status/{isbn}/{user_id}": {
      "get": {
        "tags": [
          "ZainoDigitale"
        ],
        "operationId": "ZainoDigitale_GetBookStatus",
        "consumes": [],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "isbn",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/aie/zainodigitale/auth/accesstoken/{code}": {
      "get": {
        "tags": [
          "ZainoDigitale"
        ],
        "operationId": "ZainoDigitale_GetAccessToken",
        "consumes": [],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "type": "string"
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/aie/zainodigitale/users/associate": {
      "post": {
        "tags": [
          "ZainoDigitale"
        ],
        "operationId": "ZainoDigitale_PostUsersAssociate",
        "consumes": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/x-www-form-urlencoded"
        ],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "_in",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ZainoDigitaleAssociaInput"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "/api/{version}/aie/zainodigitale/users/info": {
      "post": {
        "tags": [
          "ZainoDigitale"
        ],
        "operationId": "ZainoDigitale_PostUserInfo",
        "consumes": [
          "application/json",
          "text/json",
          "application/xml",
          "text/xml",
          "application/x-www-form-urlencoded"
        ],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "_in",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ZainoDigitaleCredentials"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    }
  },
  "definitions": {
    "ActivatedBook": {
      "required": [
        "book",
        "email",
        "activationkey"
      ],
      "type": "object",
      "properties": {
        "book": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "role": {
          "type": "string"
        },
        "platform": {
          "type": "string"
        },
        "activationkey": {
          "type": "string"
        },
        "school": {
          "type": "string"
        }
      }
    },
    "UserData": {
      "type": "object",
      "properties": {
        "username": {
          "type": "string"
        },
        "password": {
          "type": "string"
        },
        "sessionId": {
          "type": "string"
        },
        "MD5Password": {
          "type": "boolean"
        },
        "partner": {
          "type": "string"
        },
        "zaino_digitale_authorization_code": {
          "type": "string"
        },
        "zaino_digitale_access_token": {
          "type": "string"
        },
        "zaino_digitale_refresh_token": {
          "type": "string"
        },
        "zaino_digitale_redirecturi": {
          "type": "string"
        }
      }
    },
    "PostFeedbackIN": {
      "type": "object",
      "properties": {
        "supplier": {
          "$ref": "#/definitions/Supplier"
        },
        "user": {
          "$ref": "#/definitions/IswUserInfo"
        },
        "book": {
          "$ref": "#/definitions/DigitalBook"
        },
        "reader": {
          "$ref": "#/definitions/Reader"
        }
      }
    },
    "Supplier": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string"
        },
        "Id": {
          "type": "string"
        }
      }
    },
    "IswUserInfo": {
      "type": "object",
      "properties": {
        "Role": {
          "type": "string"
        },
        "Id": {
          "format": "int32",
          "type": "integer"
        },
        "created_at": {
          "type": "string"
        },
        "UserName": {
          "type": "string"
        },
        "registered": {
          "type": "boolean"
        },
        "registrationDt": {
          "format": "date-time",
          "type": "string"
        },
        "lastLoginDt": {
          "format": "date-time",
          "type": "string"
        },
        "Email": {
          "type": "string"
        },
        "Name": {
          "type": "string"
        },
        "Surname": {
          "type": "string"
        },
        "DateOfBirth": {
          "format": "date-time",
          "type": "string"
        }
      }
    },
    "DigitalBook": {
      "type": "object",
      "properties": {
        "stats": {
          "$ref": "#/definitions/BaseStats"
        },
        "userCustomizedContents": {
          "type": "boolean"
        },
        "isbn": {
          "type": "string"
        },
        "isDigitalBook": {
          "type": "boolean"
        },
        "expirationDate": {
          "type": "string"
        },
        "codiceOpera": {
          "type": "string"
        },
        "codiceProdotto": {
          "type": "string"
        }
      }
    },
    "Reader": {
      "type": "object",
      "properties": {
        "web": {
          "type": "boolean"
        },
        "app": {
          "type": "boolean"
        },
        "application": {
          "$ref": "#/definitions/Application"
        },
        "device": {
          "$ref": "#/definitions/Device"
        },
        "stats": {
          "$ref": "#/definitions/BaseStats"
        }
      }
    },
    "BaseStats": {
      "type": "object",
      "properties": {
        "registered": {
          "type": "boolean"
        },
        "registrationDt": {
          "format": "date-time",
          "type": "string"
        },
        "downloaded": {
          "type": "boolean"
        },
        "downloadedDt": {
          "format": "date-time",
          "type": "string"
        },
        "installed": {
          "type": "boolean"
        },
        "installationDt": {
          "format": "date-time",
          "type": "string"
        },
        "opened": {
          "type": "boolean"
        },
        "firstOpenDt": {
          "format": "date-time",
          "type": "string"
        }
      }
    },
    "Application": {
      "type": "object",
      "properties": {
        "supplier": {
          "$ref": "#/definitions/Supplier"
        },
        "name": {
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      }
    },
    "Device": {
      "type": "object",
      "properties": {
        "device_type": {
          "type": "string"
        },
        "device_platform": {
          "$ref": "#/definitions/Platform"
        }
      }
    },
    "Platform": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      }
    },
    "ActivateKeyData": {
      "required": [
        "codice_sblocco"
      ],
      "type": "object",
      "properties": {
        "email": {
          "type": "string"
        },
        "codice_sblocco": {
          "type": "string"
        },
        "activated_at": {
          "type": "string"
        }
      }
    },
    "ElencoAdozioniIN": {
      "required": [
        "CodiceIstituto",
        "ElencoEditori"
      ],
      "type": "object",
      "properties": {
        "CodiceIstituto": {
          "type": "string"
        },
        "Classe": {
          "type": "string"
        },
        "Sezione": {
          "type": "string"
        },
        "Sperimentazione": {
          "type": "string"
        },
        "Specializzazione": {
          "type": "string"
        },
        "ElencoEditori": {
          "type": "string"
        }
      }
    },
    "ChangePasswordIN": {
      "required": [
        "email",
        "OLD_customerSecret",
        "NEW_customerSecret"
      ],
      "type": "object",
      "properties": {
        "email": {
          "type": "string"
        },
        "OLD_customerSecret": {
          "type": "string"
        },
        "NEW_customerSecret": {
          "type": "string"
        }
      }
    },
    "ActivateBookPreActivation": {
      "type": "object",
      "properties": {
        "first_name": {
          "type": "string"
        },
        "last_name": {
          "type": "string"
        },
        "role": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "code": {
          "type": "string"
        },
        "undocumented_skip_sblocco": {
          "type": "boolean"
        }
      }
    },
    "CheckTokenResult": {
      "type": "object",
      "properties": {
        "validation_result": {
          "format": "int32",
          "type": "integer"
        },
        "validation_message": {
          "type": "string"
        }
      }
    },
    "ISWChangePasswordIN": {
      "type": "object",
      "properties": {
        "Username": {
          "type": "string"
        },
        "OldPassword": {
          "type": "string"
        },
        "NewPassword": {
          "type": "string"
        }
      }
    },
    "CheckPromoCodeInput": {
      "type": "object",
      "properties": {
        "Promocode": {
          "type": "string"
        },
        "DeviceID": {
          "type": "string"
        }
      }
    },
    "RecoverPromoCodeInput": {
      "type": "object",
      "properties": {
        "DeviceID": {
          "type": "string"
        }
      }
    },
    "ValidateAuthenticationInput": {
      "type": "object",
      "properties": {
        "DeviceId": {
          "type": "string"
        },
        "Username": {
          "type": "string"
        },
        "Password": {
          "type": "string"
        }
      }
    },
    "GetUserInfoInput": {
      "type": "object",
      "properties": {
        "DeviceId": {
          "type": "string"
        },
        "CommunicationToken": {
          "type": "string"
        },
        "Username": {
          "type": "string"
        }
      }
    },
    "UpdateUserInfoInput": {
      "type": "object",
      "properties": {
        "DeviceId": {
          "type": "string"
        },
        "CommunicationToken": {
          "type": "string"
        },
        "PromoCode": {
          "type": "string"
        },
        "Name": {
          "type": "string"
        },
        "Surname": {
          "type": "string"
        },
        "Email": {
          "type": "string"
        },
        "Password": {
          "type": "string"
        },
        "Profile": {
          "type": "string"
        }
      }
    },
    "RegisterUserInput": {
      "type": "object",
      "properties": {
        "DeviceId": {
          "type": "string"
        },
        "PromoCode": {
          "type": "string"
        },
        "Name": {
          "type": "string"
        },
        "Surname": {
          "type": "string"
        },
        "Email": {
          "type": "string"
        },
        "Password": {
          "type": "string"
        },
        "Profile": {
          "type": "string"
        }
      }
    },
    "ElencoIstitutiIN": {
      "type": "object",
      "properties": {
        "GradoScuola": {
          "type": "string"
        },
        "TipoScuola": {
          "type": "string"
        },
        "Provincia": {
          "type": "string"
        }
      }
    },
    "UserCredentials": {
      "type": "object",
      "properties": {
        "email": {
          "type": "string"
        },
        "password": {
          "type": "string"
        },
        "zaino_digitale_authorization_code": {
          "type": "string"
        },
        "zaino_digitale_access_token": {
          "type": "string"
        },
        "zaino_digitale_refresh_token": {
          "type": "string"
        },
        "zaino_digitale_redirecturi": {
          "type": "string"
        }
      }
    },
    "UserCreatedLight": {
      "required": [
        "email",
        "name",
        "surname",
        "role"
      ],
      "type": "object",
      "properties": {
        "email": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "surname": {
          "type": "string"
        },
        "role": {
          "type": "string"
        }
      }
    },
    "PostUnsubscribeInput": {
      "type": "object",
      "properties": {
        "email": {
          "type": "string"
        },
        "newsletters": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "ResponseMessage": {
      "type": "object",
      "properties": {
        "Status": {
          "type": "boolean"
        },
        "message": {
          "type": "string"
        },
        "error": {
          "type": "string"
        },
        "severity": {
          "format": "int32",
          "type": "integer"
        }
      }
    },
    "Session": {
      "required": [
        "email",
        "password"
      ],
      "type": "object",
      "properties": {
        "email": {
          "type": "string"
        },
        "password": {
          "type": "string"
        }
      }
    },
    "UserCreated": {
      "required": [
        "email",
        "password",
        "name",
        "surname",
        "role"
      ],
      "type": "object",
      "properties": {
        "email": {
          "type": "string"
        },
        "password": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "surname": {
          "type": "string"
        },
        "role": {
          "type": "string"
        },
        "platform": {
          "type": "string"
        },
        "created_at": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "format": "int32",
          "type": "integer"
        }
      }
    },
    "UserCredentialsV2": {
      "type": "object",
      "properties": {
        "md5Password": {
          "type": "boolean"
        },
        "email": {
          "type": "string"
        },
        "password": {
          "type": "string"
        },
        "zaino_digitale_authorization_code": {
          "type": "string"
        },
        "zaino_digitale_access_token": {
          "type": "string"
        },
        "zaino_digitale_refresh_token": {
          "type": "string"
        },
        "zaino_digitale_redirecturi": {
          "type": "string"
        }
      }
    },
    "ZainoDigitaleAssociaInput": {
      "type": "object",
      "properties": {
        "AieId": {
          "type": "string"
        },
        "Email": {
          "type": "string"
        },
        "Password": {
          "type": "string"
        }
      }
    },
    "ZainoDigitaleCredentials": {
      "type": "object",
      "properties": {
        "ClientId": {
          "type": "string"
        },
        "ClientSecret": {
          "type": "string"
        },
        "RedirectUri": {
          "type": "string"
        },
        "AccessToken": {
          "type": "string"
        },
        "RefreshToken": {
          "type": "string"
        },
        "Code": {
          "type": "string"
        }
      }
    }
  }
}