decentraleyes-posts v0.0.12
decentraleyes-posts
Decentraleyes.net Posts service reference implementation
Architecture
Every service in Decentraleyes.net is shipped as a standalone module to allow SysOps the freedom to:
- Determine whether or not they use each module;
- Determine when/if they upgrade them; and
- Change or even entirely rewrite them from scratch.
Each service module implements an interface made of public methods and routes. If the public interface is maintained, Decentraleyes.net doesn't care what amount of actual work is performed within the service as long as it succeeds and generates a result expected by the user per the documented interface contract of the service.
For example, a SysOp might not want to use MongoDB or might even want to use a database they created. Such a user could create a new service and write the logic needed to use their custom database while providing service as expected through Decentraleyes.net including beacons, notifications and so on.
service-options.json
Model
created
Date and time at which the post was created.
modified
Date and time at which the last modification to the post occurred.
author
The ID of the user that created the post.
status 'draft','publish', default: 'draft'
The current publication status of the post (draft or publish). Drafts are only shown to the user that created them.
privacy
Sets the privacy options for the post.
title
The title of the post.
summary
The summary/status update about the post.
content
The content of the post or article. Can be very long.
contentRating
The content rating (everyone, teen, mature, adult) and list of reasons for having that rating.
citations
An array of citations/links to other posts and Internet links from this post.
attachments
An array of attachments included with this post. These are intended to be offered as downloads.
userFeedback
The overall rating and array of individual ratings for the post.