Skip to content

RichardTjokroutomo/openPostAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenPost API

Description

This is an API used by the openPost web app to obtain data on the latest number of posts in the database as well as fetching new posts (if new posts have been made)

How the API is used

Here's how it basically works: working diagram

Basically:

  1. the website (OpenPost) will continuously send HTTP requests asking for the index of the latest post (over 2 second interval)
  2. if the index of the latest post is not the same as the current index stored by the website, then it means a new post must've been added
  3. in that case, the website will send an HTTP request to fetch the newest three posts.

Here are the HTTP commands: HTTP commands

About

A webserver API used for openPost web app

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published