node app.js
- /channels
- (Returns array of channel ids)
- /channels/:cid
- (Returns the specified channel)
- /channels/:cid/posts/:pid
- (Returns the specified post in the specified channel)
- /channels
- (Creates a new channel)
- (Accepts JSON data)
- (Returns the new channel id)
- /channels/:cid/posts
- (Creates a new post in the specified channel)
- (Accepts JSON data)
- (Returns the new post id)
- /channels/:cid/posts/:pid
- (Updates the specified post in the specified channel)
- (Accepts JSON data)
- (Returns "OK")
- /channels/:cid
- (Deletes the specified channel)
- (Returns "OK")
- /channels/:cid/posts/:pid
- (Deletes the specified post in the specified channel)
- (Returns "OK")
Please read Testing.md
node app.js