From 244e76a552ef05a5067134b1065d26dd89246d8c Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Tue, 17 Apr 2018 00:49:04 +0200 Subject: feature: initial syndication feeds support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Provides rss 2.0, atom 1.0 and json 1.0 feeds for videos (instance and account-wide) on listings and video-watch views. * still lacks redis caching * still lacks lastBuildDate support * still lacks channel-wide support * still lacks semantic annotation (for licenses, NSFW warnings, etc.) * still lacks love ( ˘ ³˘) * RSS: has MRSS support for torrent lists! * RSS: includes the first torrent in an enclosure * JSON: lists all torrents in the 'attachments' object * ATOM: lacking torrent listing support Advances #23 Partial implementation for the accountId generation in the client, which will need a hotfix to add a way to get the proper account id. --- support/doc/api/openapi.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'support') diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index c3efa512d..0729ac8ec 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml @@ -78,6 +78,38 @@ paths: description: successful operation schema: $ref: '#/definitions/ServerConfig' + /feeds/videos.{format}: + get: + tags: + - Feeds + consumes: + - application/json + produces: + - application/json + parameters: + - name: format + in: path + required: true + type: string + enum: ['xml', 'atom' 'json'] + default: 'xml' + description: 'The format expected (xml defaults to RSS 2.0, atom to ATOM 1.0 and json to JSON FEED 1.0' + - name: accountId + in: query + required: false + type: number + description: 'The id of the local account to filter to (beware, users IDs and not actors IDs which will return empty feeds' + - name: accountName + in: query + required: false + type: string + description: 'The name of the local account to filter to' + responses: + '200': + description: successful operation + content: + application/json: + application/xml: /jobs: get: security: -- cgit v1.2.3