milmilmilmil
API 參考

R S S Feeds

RSS feed CRUD, preview and refresh

GET
/api/v1/rss-feeds

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Response Body

application/json

curl -X GET "https://example.com/api/v1/rss-feeds"
[  {    "id": "string",    "name": "string",    "url": "string",    "type": "string",    "enabled": true,    "fetch_interval_minutes": 0,    "last_fetched_at": "string",    "created_at": "string"  }]
POST
/api/v1/rss-feeds

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/v1/rss-feeds" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "url": "string"  }'
{  "id": "string",  "name": "string",  "url": "string",  "type": "string",  "enabled": true,  "fetch_interval_minutes": 0,  "last_fetched_at": "string",  "created_at": "string"}
POST
/api/v1/rss-feeds/preview-url

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/v1/rss-feeds/preview-url" \  -H "Content-Type: application/json" \  -d '{    "url": "string"  }'
[  {    "title": "string",    "url": "string",    "size": 0,    "seeders": 0,    "leechers": 0,    "pub_date": "string",    "source": "string"  }]
DELETE
/api/v1/rss-feeds/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Path Parameters

id*string

Response Body

curl -X DELETE "https://example.com/api/v1/rss-feeds/string"
Empty
PUT
/api/v1/rss-feeds/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PUT "https://example.com/api/v1/rss-feeds/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "name": "string",  "url": "string",  "type": "string",  "enabled": true,  "fetch_interval_minutes": 0,  "last_fetched_at": "string",  "created_at": "string"}
GET
/api/v1/rss-feeds/{id}/preview

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Path Parameters

id*string

Query Parameters

rule_id?string

Response Body

application/json

curl -X GET "https://example.com/api/v1/rss-feeds/string/preview"
[  {    "title": "string",    "url": "string",    "size": 0,    "seeders": 0,    "leechers": 0,    "pub_date": "string",    "source": "string"  }]
POST
/api/v1/rss-feeds/{id}/refresh

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Path Parameters

id*string

Response Body

curl -X POST "https://example.com/api/v1/rss-feeds/string/refresh"
Empty