{"swagger":"2.0","info":{"version":"v1","title":"RrpWebApi"},"host":"rrp-service.reemers.de","schemes":["https"],"paths":{"/api/Process/ToInDesignAsync":{"post":{"tags":["Process"],"summary":"Starts Indesign and execute the given script","operationId":"Process_ToInDesignAsync","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"guid","in":"query","description":"The guid optained from PostFileAsync","required":true,"type":"string"},{"name":"X-API-Key","in":"header","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/InDesignResult"}}}}},"/api/Process/UploadFilesToSpAsync":{"post":{"tags":["Process"],"summary":"Uploads files to Sharepoint.","operationId":"Process_UploadFilesToSpAsync","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"guid","in":"query","description":"The guid optained from PostFileAsync","required":true,"type":"string"},{"name":"subfolder","in":"query","description":"Subfolder within the GUID folder, e.g. \"result\" or \"out\" (optional)","required":true,"type":"string"},{"name":"X-API-Key","in":"header","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"format":"int32","type":"integer"}}}}},"/api/Process/UploadOneFileToSpAsync":{"post":{"tags":["Process"],"summary":"Uploads one file to Sharepoint.","operationId":"Process_UploadOneFileToSpAsync","consumes":[],"produces":[],"parameters":[{"name":"guid","in":"query","description":"The guid optained from PostFileAsync","required":true,"type":"string"},{"name":"file","in":"query","description":"File path within the GUID folder, e.g. \"result/xyz.pdf\"","required":true,"type":"string"},{"name":"X-API-Key","in":"header","required":true,"type":"string"}],"responses":{"204":{"description":"No Content"}}}},"/api/Process/SharepointDownloadAsync":{"post":{"tags":["Process"],"summary":"Downloads the in the Json given IDs from Sharepoint.","operationId":"Process_SharepointDownloadAsync","consumes":[],"produces":[],"parameters":[{"name":"guid","in":"query","description":"The guid optained from PostFileAsync","required":true,"type":"string"},{"name":"file","in":"query","description":"File path within the GUID folder, e.g. \"result/xyz.pdf\"","required":true,"type":"string"},{"name":"X-API-Key","in":"header","required":true,"type":"string"}],"responses":{"204":{"description":"No Content"}}}},"/api/Process/SharepointUploadAsync":{"post":{"tags":["Process"],"summary":"Uploads the in the Json given IDs to Sharepoint.","operationId":"Process_SharepointUploadAsync","consumes":[],"produces":[],"parameters":[{"name":"guid","in":"query","description":"The guid optained from PostFileAsync","required":true,"type":"string"},{"name":"file","in":"query","description":"File path within the GUID folder, e.g. \"result/xyz.pdf\"","required":true,"type":"string"},{"name":"X-API-Key","in":"header","required":true,"type":"string"}],"responses":{"204":{"description":"No Content"}}}},"/api/Process/Link2LookUPAsync":{"post":{"tags":["Process"],"summary":"Uploads a File into LookUp. Expects submitted L2LTicket.json file (via PostFileAsync) in addition to PDF files (via AddFileAsync).","operationId":"Process_Link2LookUPAsync","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"guid","in":"query","description":"The guid optained from PostFileAsync","required":true,"type":"string"},{"name":"X-API-Key","in":"header","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/LookUpResult"}}}}},"/api/Process/ProcessorAsync":{"post":{"tags":["Process"],"summary":"Converts files via Reemers Processor","operationId":"Process_ProcessorAsync","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"guid","in":"query","description":"The guid optained from PostFileAsync","required":true,"type":"string"},{"name":"configName","in":"query","description":"The configuration which must be used to convert","required":true,"type":"string"},{"name":"X-API-Key","in":"header","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ProcessorResult"}}}}},"/api/Process/ToPdfAsync":{"post":{"tags":["Process"],"summary":"Converts an uploaded DOCX file to PDF","operationId":"Process_ToPdfAsync","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"guid","in":"query","description":"The guid optained from PostFileAsync","required":true,"type":"string"},{"name":"configName","in":"query","description":"The configuration which must be used to convert","required":true,"type":"string"},{"name":"X-API-Key","in":"header","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ScriptResult"}}}}},"/api/Process/PdfMergeAsync":{"post":{"tags":["Process"],"summary":"Merges multiple PDF files into one PDF file. Expects submitted pdfmerge.json file (via PostFileAsync) in addition to PDF files (via AddFileAsync).","operationId":"Process_PdfMergeAsync","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"guid","in":"query","description":"The guid optained from PostFileAsync","required":true,"type":"string"},{"name":"X-API-Key","in":"header","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/PdfMergeResult"}}}}},"/api/Process/PostFileAsync":{"post":{"tags":["Process"],"summary":"Transmits a file which has to be processed to the server. File has to be transmitted as multipart/form-data.","description":"Don't forget to call DeleteFileAsync to remove the file. Files may be removed after some time.","operationId":"Process_PostFileAsync","consumes":["multipart/form-data"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"forCommand","in":"query","description":"Give the processing command you want to call, so that load balancing can decide server.","required":true,"type":"string"},{"name":"X-API-Key","in":"header","required":true,"type":"string"},{"name":"file","in":"formData","required":true,"type":"file"}],"responses":{"200":{"description":"GUID is returned as plain text","schema":{"type":"string"}}}}},"/api/Process/AddFileAsync":{"post":{"tags":["Process"],"summary":"Transmits an additional file (mainly media) for the given guid to the server. File has to be transmitted as multipart/form-data.","operationId":"Process_AddFileAsync","consumes":["multipart/form-data"],"produces":[],"parameters":[{"name":"guid","in":"query","required":true,"type":"string"},{"name":"X-API-Key","in":"header","required":true,"type":"string"},{"name":"file","in":"formData","required":true,"type":"file"}],"responses":{"204":{"description":"No Content"}}}},"/api/Process/GetFileAsync":{"get":{"tags":["Process"],"summary":"Returns the given file","operationId":"Process_GetFileAsync","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"guid","in":"query","description":"The guid optained from PostFileAsync","required":true,"type":"string"},{"name":"file","in":"query","description":"Relative file path","required":true,"type":"string"},{"name":"X-API-Key","in":"header","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"format":"byte","type":"string"}}}}},"/api/Process/GetCurrentFilesAsync":{"get":{"tags":["Process"],"summary":"Returns all current files in this folder","operationId":"Process_GetCurrentFilesAsync","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"guid","in":"query","description":"The guid optained from PostFileAsync","required":true,"type":"string"},{"name":"folder","in":"query","description":"Relative folder path","required":true,"type":"string"},{"name":"X-API-Key","in":"header","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"type":"string"}}}}}},"/api/Process/GetFileContentAsync":{"get":{"tags":["Process"],"summary":"Returns the given file (alternate way)","operationId":"Process_GetFileContentAsync","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"guid","in":"query","description":"The guid optained from PostFileAsync","required":true,"type":"string"},{"name":"file","in":"query","description":"Relative file path","required":true,"type":"string"},{"name":"X-API-Key","in":"header","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/FileContentResult"}}}}},"/api/Process":{"post":{"tags":["Process"],"summary":"For customer Dav\r\nMerges multiple PDF files into one PDF file. Expects submitted pdfmerge.json file (via PostFileAsync) in addition to PDF files (via AddFileAsync).","operationId":"Process_PdfMergeScriptAsync","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"guid","in":"query","required":true,"type":"string"},{"name":"configName","in":"query","required":true,"type":"string"},{"name":"X-API-Key","in":"header","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ScriptResult"}}}},"delete":{"tags":["Process"],"summary":"Removes the file from the server. Always call this after you have processed the file.","operationId":"Process_DeleteFileAsync","consumes":[],"produces":[],"parameters":[{"name":"guid","in":"query","description":"The guid optained from PostFileAsync","required":true,"type":"string"},{"name":"X-API-Key","in":"header","required":true,"type":"string"}],"responses":{"204":{"description":"No Content"}}}}},"definitions":{"InDesignResult":{"type":"object","properties":{"ResultFileNames":{"type":"array","items":{"type":"string"}}}},"LookUpResult":{"type":"object","properties":{"ResultFileNames":{"type":"array","items":{"type":"string"}}}},"ProcessorResult":{"type":"object","properties":{"FilesFailed":{"type":"object","additionalProperties":{"type":"string"}},"FilesFinished":{"type":"object","additionalProperties":{"type":"string"}},"Logs":{"type":"object","additionalProperties":{"type":"string"}},"ResultFileNames":{"type":"array","items":{"type":"string"}}}},"ScriptResult":{"type":"object","properties":{"ResultFileNames":{"type":"array","items":{"type":"string"}}}},"PdfMergeResult":{"type":"object","properties":{"Error":{"type":"string"},"ResultFileNames":{"type":"array","items":{"type":"string"}}}},"FileContentResult":{"type":"object","properties":{"FileContents":{"format":"byte","type":"string","readOnly":true},"ContentType":{"type":"string","readOnly":true},"FileDownloadName":{"type":"string"}}}}}