Download OpenAPI specification:
Returns a paginated list of articles, optionally filtered by source, topic, and/or search query
| sourceId | string Filter by source ID |
| sourceIds | Array of strings Filter to a set of source IDs (e.g. a caller's subscribed sources), so pagination totals are computed post-filter instead of requiring the caller to filter results client-side |
| topicId | string Filter by topic ID |
| q | string Case-insensitive search in headline and snippet |
required | object (Pageable) |
{- "content": [
- {
- "author": "string",
- "body": [
- "string"
], - "externalUrl": "string",
- "fetchedAt": "2019-08-24T14:15:22Z",
- "headline": "string",
- "id": "string",
- "imageUrl": "string",
- "publishedAt": "2019-08-24T14:15:22Z",
- "readingMinutes": 0,
- "snippet": "string",
- "sourceId": "string",
- "topicId": "string"
}
], - "empty": true,
- "first": true,
- "last": true,
- "number": 0,
- "numberOfElements": 0,
- "pageable": {
- "offset": 0,
- "pageNumber": 0,
- "pageSize": 0,
- "paged": true,
- "sort": {
- "empty": true,
- "sorted": true,
- "unsorted": true
}, - "unpaged": true
}, - "size": 0,
- "sort": {
- "empty": true,
- "sorted": true,
- "unsorted": true
}, - "totalElements": 0,
- "totalPages": 0
}Returns articles matching the provided list of IDs, useful for fetching a user's saved articles
[- "string"
][- {
- "author": "string",
- "body": [
- "string"
], - "externalUrl": "string",
- "fetchedAt": "2019-08-24T14:15:22Z",
- "headline": "string",
- "id": "string",
- "imageUrl": "string",
- "publishedAt": "2019-08-24T14:15:22Z",
- "readingMinutes": 0,
- "snippet": "string",
- "sourceId": "string",
- "topicId": "string"
}
]{- "author": "string",
- "body": [
- "string"
], - "externalUrl": "string",
- "fetchedAt": "2019-08-24T14:15:22Z",
- "headline": "string",
- "id": "string",
- "imageUrl": "string",
- "publishedAt": "2019-08-24T14:15:22Z",
- "readingMinutes": 0,
- "snippet": "string",
- "sourceId": "string",
- "topicId": "string"
}[- {
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "fetchError": "string",
- "fetchStatus": "PENDING",
- "id": "string",
- "initials": "string",
- "lastFetchedAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "rssUrl": "string",
- "subscriberCount": 0
}
]Adds a new RSS source. If the URL already exists, returns the existing source.
| name required | string non-empty |
| rssUrl required | string non-empty |
{- "name": "string",
- "rssUrl": "string"
}{- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "fetchError": "string",
- "fetchStatus": "PENDING",
- "id": "string",
- "initials": "string",
- "lastFetchedAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "rssUrl": "string",
- "subscriberCount": 0
}{- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "fetchError": "string",
- "fetchStatus": "PENDING",
- "id": "string",
- "initials": "string",
- "lastFetchedAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "rssUrl": "string",
- "subscriberCount": 0
}Increments the source's subscriber count. Intended for service-to-service use by user-service when a user subscribes.
| id required | string |
{- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "fetchError": "string",
- "fetchStatus": "PENDING",
- "id": "string",
- "initials": "string",
- "lastFetchedAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "rssUrl": "string",
- "subscriberCount": 0
}| password required | string non-empty |
| username required | string non-empty |
{- "password": "string",
- "username": "string"
}{- "token": "string"
}Creates a new user account. The OAuth2 token endpoint at /oauth2/token handles login.
| email required | string <email> non-empty |
| name | string |
| password required | string [ 8 .. 2147483647 ] characters |
| username required | string [ 3 .. 50 ] characters |
{- "email": "user@example.com",
- "name": "string",
- "password": "stringst",
- "username": "string"
}{- "avatarInitials": "string",
- "email": "string",
- "id": "string",
- "name": "string",
- "username": "string"
}string <email> | |
| name | string |
{- "email": "user@example.com",
- "name": "string"
}{- "avatarInitials": "string",
- "email": "string",
- "id": "string",
- "name": "string",
- "username": "string"
}Atomically removes the article from the user's saved list.
| articleId required | string |
{- "enabledSourceIds": [
- "string"
], - "savedArticleIds": [
- "string"
], - "selectedTopicIds": [
- "string"
]
}Atomically adds the article to the user's saved list.
| articleId required | string |
{- "enabledSourceIds": [
- "string"
], - "savedArticleIds": [
- "string"
], - "selectedTopicIds": [
- "string"
]
}| enabledSourceIds | Array of strings |
| savedArticleIds | Array of strings |
| selectedTopicIds | Array of strings |
{- "enabledSourceIds": [
- "string"
], - "savedArticleIds": [
- "string"
], - "selectedTopicIds": [
- "string"
]
}{- "enabledSourceIds": [
- "string"
], - "savedArticleIds": [
- "string"
], - "selectedTopicIds": [
- "string"
]
}Removes the source from the user's enabled sources and decrements the shared subscriber count in content-service (the source is removed there once nobody is subscribed).
| sourceId required | string |
{- "enabledSourceIds": [
- "string"
], - "savedArticleIds": [
- "string"
], - "selectedTopicIds": [
- "string"
]
}Adds the source to the user's enabled sources and increments the shared subscriber count in content-service.
| sourceId required | string |
{- "enabledSourceIds": [
- "string"
], - "savedArticleIds": [
- "string"
], - "selectedTopicIds": [
- "string"
]
}