Skip to content

Fork of a fork of a clone of a messageboard.

License

Notifications You must be signed in to change notification settings

selten7/mebious

 
 

Repository files navigation

mebious.wired

A clone of Mebby written in Ruby using the Sinatra framework.

Overview of the data API

mebious.wired uses a RESTful API to facilitate the development of third party interfaces with read/write access to the central database.

Unless otherwise explicitly stated, the POST requests must have a Content-Type: application/x-www-form-urlencoded header, and their body must be formatted accordingly.

Method Endpoint Request body Response body Description
GET /posts - Array<Post> Return an array of objects representing the last 20 posts.
GET /posts/:n - Array<Post> Return an array of objects representing the last n posts.
POST /api/:apikey CreatePost - Create a post.

Post model

Field Type Description
id Number -
text String -
spawn Number -
is_admin Number -

CreatePost model

Field Type Description
text String Content of the post.

License

MIT

About

Fork of a fork of a clone of a messageboard.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 77.6%
  • HTML 9.3%
  • CSS 9.0%
  • Makefile 3.8%
  • Shell 0.3%