2.7 KiB
2.7 KiB
seadex
Base URL: https://notifier.gansejunge.com/internal/seadex
POST /admin/update/names
Update All Names To Most Recently Available
Example:
curl -X POST 'https://notifier.gansejunge.com/internal/seadex/admin/update/names' \
-H 'X-API-Key: <api_key>'
Responses:
200: Successful Response
POST /anime/add
Add Anime
| Name | In | Type | Required |
|---|---|---|---|
X-User-Id |
header | integer | yes |
Request body:
{
"anilist_id": 0,
"custom_name": "string"
}
Example:
curl -X POST 'https://notifier.gansejunge.com/internal/seadex/anime/add' \
-H 'X-API-Key: <api_key>' \
-H 'Content-Type: application/json' \
-d '{"anilist_id": 0, "custom_name": "string"}'
Responses:
200: Successful Response422: Validation Error{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string", "input": null, "ctx": {} } ] }
POST /anime/delete
Remove Anime
| Name | In | Type | Required |
|---|---|---|---|
X-User-Id |
header | integer | yes |
Request body:
{
"anilist_id": 0
}
Example:
curl -X POST 'https://notifier.gansejunge.com/internal/seadex/anime/delete' \
-H 'X-API-Key: <api_key>' \
-H 'Content-Type: application/json' \
-d '{"anilist_id": 0}'
Responses:
200: Successful Response422: Validation Error{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string", "input": null, "ctx": {} } ] }
GET /anime/list
List Active And Inactive Anime
| Name | In | Type | Required |
|---|---|---|---|
X-User-Id |
header | integer | yes |
Example:
curl -X GET 'https://notifier.gansejunge.com/internal/seadex/anime/list' \
-H 'X-API-Key: <api_key>'
Responses:
200: Successful Response{ "active": [ { "name": "string", "anilist_id": 0, "last_updated": "string" } ], "inactive": [ { "name": "string", "anilist_id": 0, "last_updated": "string" } ], "counts": { "active": 0, "inactive": 0 } }422: Validation Error{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string", "input": null, "ctx": {} } ] }
POST /update
Check Seadex
Example:
curl -X POST 'https://notifier.gansejunge.com/internal/seadex/update' \
-H 'X-API-Key: <api_key>'
Responses:
200: Successful Response