mirror of
https://github.com/lifegpc/pixiv_downloader.git
synced 2026-06-06 13:59:08 +08:00
1.4 KiB
1.4 KiB
Authentication related APIs
Get server authentication status
- route:
/auth/statusor/api/auth/status - method:
GETorPOST - auth: Not needed
- parameters: None
- Example of the response
- JSON schema of the response
Get server public key
- route:
/auth/pubkeyor/api/auth/pubkey - method:
GETorPOST - auth: Not needed
- parameters: None
- Example of the response
- JSON schema of the response
User management
Add user
- route:
/auth/user/addor/api/auth/user/add - method:
GETorPOST - RESTful:
PUT /api/auth/user或PUT /auth/user - auth: Needed (If
has_root_userin server status istrue, authentication is not needed. Admin privilege is needed) - parameters:
| Name | Type | Required | Description |
|---|---|---|---|
name |
string |
Yes | User's name |
username |
string |
Yes | User's name (unique and used to login) |
password |
string |
Yes | User's password (RSA encrypted) |
is_admin |
boolean |
No | Whether the user is an admin Default: false. Root user will always have admin privillege. |
id |
uint64 |
No | The user's id which want to be modified |
- Example of the response
- JSON schema of the response