en:db_api
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:db_api [2026/06/03 09:50] – administrator | en:db_api [2026/06/05 07:14] (current) – administrator | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| ===== iGarment API: Query ===== | ===== iGarment API: Query ===== | ||
| Line 36: | Line 36: | ||
| Example, single SQL | Example, single SQL | ||
| - | { | ||
| | | ||
| | | ||
| - | } | ||
| Return data | Return data | ||
| Line 93: | Line 91: | ||
| DROP INDEX T_A_KEY1; | DROP INDEX T_A_KEY1; | ||
| | | ||
| - | + | ===== iGarment API: Get file ===== | |
| - | + | ||
| - | iGarment API: Get file | + | |
| API to download file. Supported method is GET. | API to download file. Supported method is GET. | ||
| Line 101: | Line 98: | ||
| < | < | ||
| - | Request Example | + | |
| + | **Request Example** | ||
| eg: get style image (example with trial505, https:// | eg: get style image (example with trial505, https:// | ||
| + | |||
| step 1. get real file name from system image table: ~/db/query | step 1. get real file name from system image table: ~/db/query | ||
| - | sql: select b.ImageType, | + | |
| return: | return: | ||
| [{ | [{ | ||
| Line 113: | Line 112: | ||
| " | " | ||
| }] | }] | ||
| + | | ||
| step 2. url: ~/ | step 2. url: ~/ | ||
| - | Return Example | + | **Return Example** |
| - | { | + | |
| " | " | ||
| " | " | ||
| " | " | ||
| # file data, encoded in Base64 | # file data, encoded in Base64 | ||
| - | } | + | |
| - | If file_type is blank, can get file type from system image table. | + | |
| + | '' | ||
en/db_api.1780480205.txt.gzip · Last modified: by administrator
