Hi, I started working on a REST API using wso2 MSF4J for uploading analytics data as a zip archive to the analytics server which was discussed in [1]. This was developed as a JAX_RS web app but now we are revamping it to use MSF4J.
Please find the swagger definition for the api. > ###################################################### > # The "Upload zip" resource API > ###################################################### > paths: > /usage/upload-file/: > > #----------------------------------------------------- > # Upload analytics data as a zip archive > #----------------------------------------------------- > post: > consumes: > - multipart/form-data > security: > - OAuth2Security: > summary: | > Uploading File > description: | > Receives analytics data as a zip archive and upload it to persist in > data base. > parameters: > - in: formData > name: analytics > description: zip archieve of the analytics data > type: file > required: true > headers: > FileName: > description: | > File name > type: > string > responses: > 201: > description: | > Created. > File uploaded successfully. > headers: > Location: > description: | > The URL of the newly created resource. > type: string > 400: > description: | > Bad Request. > Invalid request or validation error. > schema: > $ref: '#/definitions/Error' > 415: > description: | > Unsupported Media Type. > The entity of the request was in a not supported format. > schema: > $ref: '#/definitions/Error' > > > Appreciate if any suggestions? [1] "[Architecture] [APIM][Micro-Gateway][Analytics] Analytics for Micro-gateway" Thanks & Regards, Ishara Cooray Senior Software Engineer Mobile : +9477 262 9512 WSO2, Inc. | http://wso2.com/ Lean . Enterprise . Middleware
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
