{
	"info": {
		"_postman_id": "5e9a51fa-759c-4593-baaf-3dde83f6b353",
		"name": "webdemo-api-3",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "23807707"
	},
	"item": [
		{
			"name": "Get Job Status",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "ITWD-Access-Token",
						"value": "Du7rrriMwAmT",
						"type": "text"
					}
				],
				"url": {
					"raw": "http://ec2-34-216-198-140.us-west-2.compute.amazonaws.com:8080/api/job/8ee09bd0-1fab-48b6-a5cc-ab30847e59bf",
					"protocol": "http",
					"host": [
						"ec2-34-216-198-140",
						"us-west-2",
						"compute",
						"amazonaws",
						"com"
					],
					"port": "8080",
					"path": [
						"api",
						"job",
						"8ee09bd0-1fab-48b6-a5cc-ab30847e59bf"
					]
				},
				"description": "Get job info by id. Use it to check job processing status"
			},
			"response": []
		},
		{
			"name": "Get File",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "ITWD-Access-Token",
						"value": "AR3XX37nfuIg",
						"type": "text"
					}
				],
				"url": {
					"raw": "http://ec2-34-216-198-140.us-west-2.compute.amazonaws.com:8080/api/job/8ee09bd0-1fab-48b6-a5cc-ab30847e59bf/file/result",
					"protocol": "http",
					"host": [
						"ec2-34-216-198-140",
						"us-west-2",
						"compute",
						"amazonaws",
						"com"
					],
					"port": "8080",
					"path": [
						"api",
						"job",
						"8ee09bd0-1fab-48b6-a5cc-ab30847e59bf",
						"file",
						"result"
					]
				},
				"description": "Get a result of job processing"
			},
			"response": []
		},
		{
			"name": "Send PDF to Image",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "ITWD-Access-Token",
						"value": "BE/yySVREiMz",
						"type": "text"
					}
				],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "job",
							"value": "{\"request\": {\n    \"type\":\"PDF_TO_IMAGES\",\n    \"imageType\":\"JPEG\",\n    \"pageNumbers\":\"9-15\",\n    \"defaultPageScaling\":1\n    },\n \"sourceFiles\":\n  [{\n   \"checksum\":\"5b3241add53b790f3e815dde5d7ceffb\",\n    \"fileType\":\"application/pdf\",\n    \"fileSize\":680490,\n    \"fileName\":\"test.pdf\"}]\n}",
							"contentType": "application/json",
							"type": "text"
						},
						{
							"key": "file",
							"contentType": "application/pdf",
							"type": "file",
							"src": "/Users/victoria/webdemo-backend/backend/src/test/resources/files/test.pdf"
						}
					]
				},
				"url": {
					"raw": "http://localhost:8080/api/job/",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8080",
					"path": [
						"api",
						"job",
						""
					]
				},
				"description": "Create and start a job with a set request. Note that sample request body contains PDF_TO_IMAGES use-case."
			},
			"response": []
		},
		{
			"name": "Upload License File",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "licenseFiles",
							"type": "file",
							"src": "/Users/victoria/itext/licenses/license.json"
						}
					]
				},
				"url": {
					"raw": "http://18.222.229.160:8080/api/license/upload",
					"protocol": "http",
					"host": [
						"18",
						"222",
						"229",
						"160"
					],
					"port": "8080",
					"path": [
						"api",
						"license",
						"upload"
					]
				},
				"description": "Upload an iText license file. note that only license files in JSON format are supported."
			},
			"response": []
		},
		{
			"name": "Send DOC for PDF",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "job",
							"value": "{\"request\": {\n    \"type\":\"PDF_OFFICE\",\n    \"fileExt\":\"docx\"\n   },\n \"sourceFiles\":\n  [{\n   \"checksum\":\"1a52931615f8c923f7b2a6c2a1655043\",\n    \"fileType\":\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\n    \"fileSize\":533234,\n    \"fileName\":\"pdf2Data editor UX.docx\"}]\n}",
							"contentType": "application/json",
							"type": "text"
						},
						{
							"key": "file",
							"type": "file",
							"src": "pdf2Data editor UX.docx"
						}
					]
				},
				"url": {
					"raw": "http://3.143.233.206:8080/api/job/",
					"protocol": "http",
					"host": [
						"3",
						"143",
						"233",
						"206"
					],
					"port": "8080",
					"path": [
						"api",
						"job",
						""
					]
				},
				"description": "Creates and starets a new PdfOffice job."
			},
			"response": []
		},
		{
			"name": "Send HTML to PDF",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "job",
							"value": "{\n\t\"sourceFiles\": [\n\t\t{\n\t\t\t\"id\": \"6970e33b-4818-4971-901a-8e176d4eab47\",\n\t\t\t\"checksum\": \"e7b71a73bd854d1aa35bfeba856e02a6\",\n\t\t\t\"fileType\": \"text/html\",\n\t\t\t\"fileSize\": 2140,\n\t\t\t\"fileName\": \"html-to-pdf.html\"\n\t\t}\n\t],\n\t\"request\": {\n\t\t\"type\": \"HTML_TO_PDF\"\n\t}\n}",
							"contentType": "application/json",
							"type": "text"
						},
						{
							"key": "file",
							"type": "file",
							"src": "/Users/andrelemos/html-to-pdf.html"
						}
					]
				},
				"url": {
					"raw": "http://ec2-34-216-198-140.us-west-2.compute.amazonaws.com:8080/api/job/",
					"protocol": "http",
					"host": [
						"ec2-34-216-198-140",
						"us-west-2",
						"compute",
						"amazonaws",
						"com"
					],
					"port": "8080",
					"path": [
						"api",
						"job",
						""
					]
				},
				"description": "Creates and starets a new PdfOffice job."
			},
			"response": []
		}
	],
	"variable": [
		{
			"key": "AWS IP",
			"value": "3.143.233.206"
		}
	]
}