{
	"openapi": "3.0.1",
	"info": {
		"title": "PDFManager APIs",
		"version": "v1"
	},
	"paths": {
		"/api/configuration/licenses": {
			"get": {
				"tags": [
					"Configuration"
				],
				"summary": "",
				"parameters": [
					{
						"name": "name",
						"in": "query",
						"schema": {
							"type": "string"
						}
					}
				],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"text/plain": {
								"schema": {
									"type": "array",
									"items": {
										"$ref": "#/components/schemas/LicenseDetailsO"
									}
								}
							},
							"application/json": {
								"schema": {
									"type": "array",
									"items": {
										"$ref": "#/components/schemas/LicenseDetailsO"
									}
								}
							},
							"text/json": {
								"schema": {
									"type": "array",
									"items": {
										"$ref": "#/components/schemas/LicenseDetailsO"
									}
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					}
				},
				"security": [
					{
						"Bearer": []
					},
					{
						"BearerToken": []
					}
				]
			}
		},
		"/api/configuration/generate": {
			"post": {
				"tags": [
					"Configuration"
				],
				"summary": "API to compile a PDF file with a given dictionary of key-values.",
				"requestBody": {
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/LicenseI"
							}
						},
						"text/json": {
							"schema": {
								"$ref": "#/components/schemas/LicenseI"
							}
						},
						"application/*+json": {
							"schema": {
								"$ref": "#/components/schemas/LicenseI"
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/LicenseO"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/LicenseO"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/LicenseO"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					}
				},
				"security": [
					{
						"Bearer": []
					},
					{
						"BearerToken": []
					}
				]
			}
		},
		"/api/configuration/disable": {
			"post": {
				"tags": [
					"Configuration"
				],
				"summary": "API to compile a PDF file with a given dictionary of key-values.",
				"requestBody": {
					"content": {
						"application/json": {
							"schema": {
								"type": "string",
								"format": "uuid"
							}
						},
						"text/json": {
							"schema": {
								"type": "string",
								"format": "uuid"
							}
						},
						"application/*+json": {
							"schema": {
								"type": "string",
								"format": "uuid"
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "Success"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					}
				},
				"security": [
					{
						"Bearer": []
					},
					{
						"BearerToken": []
					}
				]
			}
		},
		"/api/iTextLicenseInfo": {
			"get": {
				"tags": [
					"Lookup"
				],
				"summary": "Get iText license information.",
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/LicenseITextInfoO"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/LicenseITextInfoO"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/LicenseITextInfoO"
								}
							}
						}
					}
				}
			}
		},
		"/api/pdfCompile": {
			"post": {
				"tags": [
					"Main"
				],
				"summary": "API to compile a PDF file with a given dictionary of key-values.",
				"parameters": [
					{
						"name": "x-api-key",
						"in": "header",
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"content": {
						"multipart/form-data": {
							"schema": {
								"type": "object",
								"properties": {
									"InputDocument": {
										"type": "string",
										"format": "binary"
									},
									"FieldValues": {
										"type": "string"
									}
								}
							},
							"encoding": {
								"InputDocument": {
									"style": "form"
								},
								"FieldValues": {
									"style": "form"
								}
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "Success"
					}
				}
			}
		}
	},
	"components": {
		"schemas": {
			"LicenseDetailsO": {
				"type": "object",
				"properties": {
					"id": {
						"type": "string",
						"format": "uuid"
					},
					"name": {
						"type": "string",
						"nullable": true
					},
					"apiKey": {
						"type": "string",
						"nullable": true
					},
					"createdOn": {
						"type": "string",
						"format": "date-time"
					},
					"activationDate": {
						"type": "string",
						"format": "date-time"
					},
					"expirationDate": {
						"type": "string",
						"format": "date-time"
					},
					"maxInvocationsForMonth": {
						"type": "integer",
						"format": "int32",
						"nullable": true
					},
					"isActive": {
						"type": "boolean"
					}
				},
				"additionalProperties": false
			},
			"LicenseI": {
				"type": "object",
				"properties": {
					"name": {
						"type": "string",
						"nullable": true
					},
					"activationDate": {
						"type": "string",
						"format": "date-time"
					},
					"expirationDate": {
						"type": "string",
						"format": "date-time"
					},
					"maxInvocationsForMonth": {
						"type": "integer",
						"format": "int32",
						"nullable": true
					}
				},
				"additionalProperties": false
			},
			"LicenseITextInfoO": {
				"type": "object",
				"properties": {
					"remainingVolume": {
						"type": "string",
						"nullable": true
					},
					"limitInfoType": {
						"type": "string",
						"nullable": true
					},
					"licenseType": {
						"type": "string",
						"nullable": true
					},
					"productName": {
						"type": "string",
						"nullable": true
					},
					"expireDate": {
						"type": "string",
						"format": "date-time"
					}
				},
				"additionalProperties": false
			},
			"LicenseO": {
				"type": "object",
				"properties": {
					"apiKey": {
						"type": "string",
						"nullable": true
					},
					"name": {
						"type": "string",
						"nullable": true
					},
					"activationDate": {
						"type": "string",
						"format": "date-time"
					},
					"expirationDate": {
						"type": "string",
						"format": "date-time"
					}
				},
				"additionalProperties": false
			}
		},
		"securitySchemes": {
			"Bearer": {
				"type": "oauth2",
				"description": "Make sure to set-up on https://identityserver.ineo.it: <br/>_ scope *ApiScope.PDFManager* <br/>_ resource *ApiResource.PDFManager* <br/>_ allow above scope for the client you wish to use",
				"flows": {
					"authorizationCode": {
						"authorizationUrl": "https://identityserver.ineo.it/connect/authorize",
						"tokenUrl": "https://identityserver.ineo.it/connect/token",
						"scopes": {
							"ApiScope.PDFManager": "ApiResource.PDFManager"
						}
					}
				}
			}
		}
	},
	"tags": [
		{
			"name": "Configuration",
			"description": "Main Controller that contains all the endpoints of the API."
		},
		{
			"name": "Main",
			"description": "Main Controller that contains all the endpoints of the API."
		}
	]
}