Skip to content

Latest commit

 

History

History
32 lines (16 loc) · 693 Bytes

README.md

File metadata and controls

32 lines (16 loc) · 693 Bytes

SimpleWikiJSON-API

A simple JSON API for managing documents with different revisions in a wiki backend, written in Python using the Flask framework

List of Commands:

GET /documents

Returns a list of available titles.

GET /documents/<title>

Returns a list of available revisions for a document.

GET /documents/<title>/

Returns the document as it was at that timestamp.

GET /documents/<title>/latest

Returns the current latest version of the document.

POST /documents/<title>

This allows users to post a new revision of a document.

It should receive JSON in the form: {content: ‘new content...’}.

TODO:

  • add unit tests