Re: Test from Cw Shack Bbs
  By: MRO to Phigan on Fri May 12 2023 16:28:03
+use nntp instead because it's even easier.
Old post now... but replying anyway.  I like a lot about NNTP, but it could be simplified a little bit more even.  Keep thinking an index baseed API from a known base path could work really well.  It could use KV db on an edge provider such as Cloudflare, Deno Deploy, vercel, etc.
GET  <basepath>/groups
  index for list of groups, with highest message id per group
  newline separated json - record per line
GET  <basepath>/groups/:groupId?start=:lastReadId&limit=:count
  index of message headers since LAST_READ
  newline separated json - record per line
GET  <basepath>/groups/:groupId/:messageId
  Message contents
  { type: "post", text: string, html?: string, attachments: string[] }
  .../:messageId/attachment/:attachmentId
POST <basepath>/groups/:groupId
  Post new message header/contents
  { status: "SUCCESS" | "FAILURE", messageId?: string }
Where the structure is JSON in UTF-8 (any other charset converted).
  
   
--    
Michael J. Ryan    
+o roughneckbbs.com   
tracker1@roughneckbbs.com
---
 ■ Synchronet ■ Roughneck BBS - roughneckbbs.com