{"openapi":"3.0.1","info":{"title":"3PL File Upload API","description":"API for uploading files from the 3PL vendor for RMS system.","version":"1.0.0"},"paths":{"/api/v1/dcintg/upload/init":{"post":{"summary":"Initialize file upload","description":"Initialize file upload by providing file metadata and receiving a session ID.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"file_name":{"type":"string","description":"Name of the file"},"size":{"type":"integer","description":"Size of the file in bytes"},"checksum":{"type":"string","description":"Checksum for file integrity"}}},"examples":{"example1":{"value":{"file_name":"example.csv","size":35000000,"checksum":"a1b2c3d4e5f6"}}}}}},"responses":{"200":{"description":"Upload initialized successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"session_id":{"type":"string","description":"Session ID for managing chunks"}}},"examples":{"example1":{"value":{"session_id":"a6b7c8d9e0"}}}}}}}}},"/api/v1/dcintg/upload/chunk":{"post":{"summary":"Upload a file chunk","description":"Upload a file chunk to the API.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"session_id":{"type":"string","description":"Session ID"},"chunk_index":{"type":"integer","description":"Index of the chunk"},"data":{"type":"string","format":"binary","description":"Binary data of the chunk"}}},"examples":{"example1":{"value":{"session_id":"a6b7c8d9e0","chunk_index":1,"data":"<binary data>"}}}}}},"responses":{"200":{"description":"Chunk uploaded successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"}}},"examples":{"example1":{"value":{"status":"success","message":"Chunk uploaded successfully."}}}}}}}}},"/api/v1/dcintg/upload/complete":{"post":{"summary":"Complete file upload","description":"Complete file upload by providing the final session ID and checksum.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"session_id":{"type":"string","description":"Session ID"},"checksum":{"type":"string","description":"Checksum for file integrity"}}},"examples":{"example1":{"value":{"session_id":"a6b7c8d9e0","checksum":"a1b2c3d4e5f6"}}}}}},"responses":{"200":{"description":"Upload completed successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"}}},"examples":{"example1":{"value":{"status":"success","message":"Upload completed successfully."}}}}}}}}},"/api/v1/dcintg/upload/status":{"get":{"summary":"Check upload status","description":"Get the status of an ongoing file upload.","parameters":[{"in":"query","name":"session_id","required":true,"schema":{"type":"string"},"description":"Session ID"}],"responses":{"200":{"description":"Returns the last successfully uploaded chunk index.","content":{"application/json":{"schema":{"type":"object","properties":{"last_chunk_index":{"type":"integer","description":"Index of the last uploaded chunk"}}},"examples":{"example1":{"value":{"last_chunk_index":2}}}}}}}}}},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/abhisheksaxena1984/3pl/1.0.0"}]}