This repository was archived by the owner on Feb 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 176
WireDetails
Dimagog edited this page Nov 25, 2012
·
3 revisions
Testing:
- Test the stack
- in the client
- functional tests - test the whole stack
- jasmine: http://pivotal.github.com/jasmine/
- Testing the protocol
Web API:
- GET /favicon.png
- GET / (root page, html)
- GET /{name}.html (content page as html)
- GET /{name}.json (content page as json)
- GET /recent-changes.json (get a list of recently changed pages)
- GET /view/SOMETHING??
- PUT /page/{name}/add
- PUT /page/{name}/move
- PUT /page/{name}/remove
- PUT /page/{name}/edit
- GET /remote/{name}.json
Content Shape (JSON):
{
title
synopsis
story [
{
id
type (paragraph | image | chart)
text
}
],
trail [
// series of URLs
],
journal [
{
order [
// series of ids journal entry ids
],
type: (add|move|remove|edit)
id: // unique id
}
]
}