{"openapi":"3.0.1","info":{"title":"Content Service API","description":"Content Service API documentation","termsOfService":"","contact":{"name":"","url":"","email":""},"license":{"name":"unlicensed","url":""},"version":"0.0.1"},"servers":[{"url":"https://dev-api-content.hoponbd.com","description":"Generated server url"}],"paths":{"/api/content/uploads":{"post":{"tags":["media-content-resource"],"summary":"Upload media content","description":"Allows uploading a file with an additional description","operationId":"uploadFiles","parameters":[{"name":"files","in":"query","required":true,"schema":{"type":"array","items":{"type":"string","format":"binary"}}},{"name":"contentCategory","in":"query","required":true,"schema":{"type":"string","enum":["PRODUCT","SERVICE","CATEGORY","CAMPAIGN","BRAND","TAG","USER","SELLER","OTHERS"]}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SuccessResponseObject"}}}}}}},"/api/content/upload":{"post":{"tags":["media-content-resource"],"summary":"Upload media content","description":"Allows uploading a file with an additional description","operationId":"uploadFile","parameters":[{"name":"contentCategory","in":"query","required":true,"schema":{"type":"string","enum":["PRODUCT","SERVICE","CATEGORY","CAMPAIGN","BRAND","TAG","USER","SELLER","OTHERS"]}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"required":["file"],"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SuccessResponseObject"}}}}}}},"/api/content/search":{"post":{"tags":["media-content-resource"],"operationId":"searchAllMediaContents","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"minimum":0,"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"minimum":1,"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"contentCategory","in":"query","required":false,"schema":{"type":"string","enum":["PRODUCT","SERVICE","CATEGORY","CAMPAIGN","BRAND","TAG","USER","SELLER","OTHERS"]}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CollectionSuccessResponseObject"}}}}}}}},"components":{"schemas":{"ContentObject":{"type":"object","properties":{"content":{"type":"object"}}},"SuccessResponseObject":{"type":"object","properties":{"errorTitle":{"type":"string"},"errorMessage":{"type":"string"},"errorCode":{"type":"string"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/ContentObject"},"success":{"type":"boolean"}}},"CollectionSuccessResponseObject":{"type":"object","properties":{"errorTitle":{"type":"string"},"errorMessage":{"type":"string"},"errorCode":{"type":"string"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/ContentsListObject"},"success":{"type":"boolean"}}},"ContentsListObject":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"totalPage":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"},"count":{"type":"integer","format":"int32"},"content":{"type":"array","items":{"type":"object"}}}}}}}