-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Swagger documentation for test data generation #41
Conversation
@zcon-cychoi, @jjang-go 안녕하세요. API call을 통해 (Data Mold 도구가 실행되고 있는) On-premise Linux에 테스트 데이터를 생성해 보려고 합니다.
이와 관련하여 Request Body sample을 요청드립니다. |
{
"path":"/tmp/dummy",
"checkTXT":"on",
"sizeTXT":"1",
} 데이터 생성 경로 |
@zcon-cychoi Request body 공유 감사드립니다 ^^ (실수로 PR close를 누르셨을까요? ^^;;) |
API: Request body: {
"accessKey": "string",
"bucket": "string",
"checkCSV": "string",
"checkGIF": "string",
"checkJSON": "string",
"checkPNG": "string",
"checkSQL": "string",
"checkServerJSON": "string",
"checkServerSQL": "string",
"checkTXT": "on",
"checkXML": "string",
"checkZIP": "string",
"databaseName": "string",
"endpoint": "string",
"host": "string",
"password": "string",
"path": "/tmp/dummy",
"port": "string",
"projectId": "string",
"provider": "string",
"region": "string",
"secretKey": "string",
"sizeCSV": "string",
"sizeGIF": "string",
"sizeJSON": "string",
"sizePNG": "string",
"sizeSQL": "string",
"sizeServerJSON": "string",
"sizeServerSQL": "string",
"sizeTXT": "1",
"sizeXML": "string",
"sizeZIP": "string",
"username": "string"
} Result: ls -al /tmp/dummy/txt/
total 1031300
drwxr-xr-x 2 root root 4096 Dec 19 14:21 .
drwxr-xr-x 3 root root 4096 Dec 19 14:21 ..
-rw-r--r-- 1 root root 105587719 Dec 19 14:21 randomTxt_0.txt
-rw-r--r-- 1 root root 105604619 Dec 19 14:21 randomTxt_1.txt
-rw-r--r-- 1 root root 105601375 Dec 19 14:21 randomTxt_2.txt
-rw-r--r-- 1 root root 105587860 Dec 19 14:21 randomTxt_3.txt
-rw-r--r-- 1 root root 105588700 Dec 19 14:21 randomTxt_4.txt
-rw-r--r-- 1 root root 105623879 Dec 19 14:21 randomTxt_5.txt
-rw-r--r-- 1 root root 105595197 Dec 19 14:21 randomTxt_6.txt
-rw-r--r-- 1 root root 105589526 Dec 19 14:21 randomTxt_7.txt
-rw-r--r-- 1 root root 105606638 Dec 19 14:21 randomTxt_8.txt
-rw-r--r-- 1 root root 105593187 Dec 19 14:21 randomTxt_9.txt Log:
|
@yunkon-kim PR은 실수로 닫으셨다고 합니다^^;; 궁금한 게 있어서 여쭤보려 합니다! swagger를 다 확인해봤는데 gcp가 아닌 api에도 CredentialGCP이 포함이 되어있던데 별도로 사용하려고 포함하신 건가요? |
Request Body로 사용되는 GenDataParams struct에 CredentialGCP가 포함되어 있어서요. 사용하지 않아도 포함되어야 했던것으로 기억합니다. 확실하지 않은 부분이라서, 수정해보고 필요 없으면 삭제해야겠네요 ^^ (추가) |
Ref. #36
This PR will add Swagger documentation for test data generation.
See details below: