This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-Open a command shell and go to the root folder of the maven project. | |
-execute: mvn dependency:copy-dependencies -DoutputDirectory=[the output folder] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.0 | |
info: | |
title: Sample | |
version: 1.0.0 | |
paths: | |
/employees: | |
get: | |
operationId: getEmployees | |
responses: | |
'200': |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private storeMedia(systemNumber: string, picture: Media, imageData: string, uploadFileName: string, asThumb: boolean): Promise<any> { | |
const extension = uploadFileName.substring(uploadFileName.lastIndexOf('.') + 1, uploadFileName.length); | |
let fileName = picture.mediaType + '-' + (picture.creationDate || new Date()).getTime() + '.' + extension; | |
fileName = asThumb ? 'thumb-' + fileName : fileName; | |
const filePath = 'M' + systemNumber + '/' + fileName; | |
console.log('Saving media at', filePath, 'size', imageData.length); | |
const tmpParts = imageData.split('/'); | |
const tmpFileName = tmpParts.pop(); | |
const tmpFolder = tmpParts.join('/'); |