WebAPI - Ykaiqx/Roop-WebAPI GitHub Wiki
Submit
Request
- 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 |
Response
- Format: JSON.
- Parameter:
Name |
Type |
Illustrate |
code |
Integer |
|
message |
String |
|
data |
String |
Token |
- Example:
{
"code": 200,
"message": "success",
"data": "1c40f444-716d-4159-a1f5-063dd0bf3978"
}
Delete
Request
- Url: /delete.
- Method: GET/POST.
- Format: JSON(When the method is POST).
- Parameter:
Name |
Type |
Require |
Illustrate |
token |
String |
Yes |
|
Response
- Format: JSON.
- Parameter:
Name |
Type |
Illustrate |
code |
Integer |
|
message |
String |
|
data |
String |
|
- Example:
{
"code": 200,
"message": "success",
"data": "success"
}
Get State
Request
- Url: /get_state.
- Method: GET/POST.
- Format: JSON(When the method is POST).
- Parameter:
Name |
Type |
Require |
Illustrate |
token |
String |
Yes |
|
Response
- Format: JSON.
- Parameter:
Name |
Type |
Illustrate |
code |
Integer |
|
message |
String |
|
data |
Number |
|
- Example:
{
"code": 200,
"message": "success",
"data": 0
}
Download
Request
- Url: /download.
- Method: GET.
- Parameter:
Name |
Type |
Require |
Illustrate |
token |
String |
Yes |
|
Response
Format: Binary.