This repository was archived by the owner on Oct 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
WebAPI
Yang KaiQi edited this page Sep 21, 2023
·
7 revisions
- Url: /submit.
- Method: POST.
- Format: Form.
- Parameter:
| Name | Type | Require | Illustrate |
|---|---|---|---|
| target | File | Yes | |
| source | File | No | Require when mode contains replace |
| modes | List | Yes | Only fill in replace,enhance |
| keepFPS | Number | No | Can be filled in when the mode contains replace,0 represents false,1 represents true |
| skipAudio | Number | No | Can be filled in when the mode contains replace,0 represents false,1 represents true |
| manyFace | Number | No | 0 represents false,1 represents true |
- Format: JSON.
- Parameter:
| Name | Type | Illustrate |
|---|---|---|
| code | Integer | |
| message | String | |
| data | String | Token |
- Example:
{
"code": 200,
"message": "success",
"data": "1c40f444-716d-4159-a1f5-063dd0bf3978"
}- Url: /delete.
- Method: GET/POST.
- Format: JSON(When the method is POST).
- Parameter:
| Name | Type | Require | Illustrate |
|---|---|---|---|
| token | String | Yes |
- Format: JSON.
- Parameter:
| Name | Type | Illustrate |
|---|---|---|
| code | Integer | |
| message | String | |
| data | String |
- Example:
{
"code": 200,
"message": "success",
"data": "success"
}- Url: /get_state.
- Method: GET/POST.
- Format: JSON(When the method is POST).
- Parameter:
| Name | Type | Require | Illustrate |
|---|---|---|---|
| token | String | Yes |
- Format: JSON.
- Parameter:
| Name | Type | Illustrate |
|---|---|---|
| code | Integer | |
| message | String | |
| data | Number |
- Example:
{
"code": 200,
"message": "success",
"data": 0
}- Url: /download.
- Method: GET.
- Parameter:
| Name | Type | Require | Illustrate |
|---|---|---|---|
| token | String | Yes |
Format: Binary.