Views

Piece

A piece is either an Image or a Video and is made abstract so you can add more asset types if you’d like. A piece represents one thumbnail in Frog.

Piece API

GET     /image/id  Returns a rendered page displaying the requested image
GET     /video/id  Returns a rendered page displaying the requested video
POST    /image/id  Add tags to an image object
POST    /video/id  Add tags to an video object
DELETE  /image/id  Flags the image as deleted in the database
DELETE  /video/id  Flags the video as deleted in the database

Tag

All objects are tagged. As your data set grows, hierarchial navigation becomes combersome and inefficient. Users will almost always resort to search of some sort.

Tag API

GET     /        Lists all tags
POST    /        Creates a Tag object
PUT     /        Adds tags to guids
DELETE  /        Removes tags from guids
GET     /search  Search tag list
GET     /manage  Renders a form for adding/removing tags
POST    /manage  Adds and removes tags from guids and commits data

Comment

Frog implements a basic comment system for each Piece.

Comment API

GET     /        Returns a rendered list of comments
GET     /id      Returns a serialized comment
POST    /id      Creates a comment for an object
PUT     /id      Updates the content of the comment