From c500a2be38afcbb5688537d97c7c3ee30a57dba4 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Fri, 30 Dec 2022 21:20:02 -0500 Subject: parse and persist feeds from handlers --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 3c2dcd0..094e6ce 100644 --- a/README.md +++ b/README.md @@ -13,11 +13,19 @@ Communique uses CGI as the API between itself and your scripts. These scripts ar ## Response API +> The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL +> NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and +> "OPTIONAL" in this document are to be interpreted as described in +> RFC 2119. + Your CGI script MUST emit a valid CGI response. -Your CGI script reponse MUST be of content type `application/activity+json`. +Your CGI script reponse MUST be of one of these content types: + +* `application/atom+xml` +* `application/rss+xml` -Your CGI script reponse MUST be an `OrderedCollection` of ActivityStream `Object`s. +Your CGI script reponse MUST be an RSS or ATOM feed (or at least something [gofeed](https://github.com/mmcdole/gofeed) can parse) See `sample-cgi-handler.sh` for an example -- cgit v1.2.3