META

Queries for managing states

createState

http://your.server/ramses/?createState

Creates a new state in the database.

Query attributes:

Reply content:

Empty

Reply body:

{
    "accepted": true,
    "query": "createState",
    "success": true,
    "message": "State \"WIP\" created.",
    "content": { }
}

getStates

http://your.server/ramses/?getStates

Retrieves the list of all states.

Query attributes:

Reply content:

The server replies an array of state information. Each state is an object with the following attributes:

Reply body:

{
    "accepted": true,
    "query": "getStates",
    "success": true,
    "message": "States list retrieved.",
    "content":  [
        {
            "name": "Stand by",
            "shortName": "STB",
            "comment": "A Comment",
            "uuid": "2d7d7e01-671c-11e7-a78f-4ccc6a288527",
            "color": "#6d6d6d",
            "completionRatio": 0
        },
        {
            "name": "To do",
            "shortName": "TODO",
            "comment": "A Comment",
            "uuid": "2d7d7e01-671c-11e7-a78f-4ccc6a288527",
            "color": "#00aaff",
            "completionRatio": 0
        },
        {
            "name": "Finished",
            "shortName": "OK",
            "comment": "A Comment",
            "uuid": "2d7d7e01-671c-11e7-a78f-4ccc6a288527",
            "color": "#00aa00",
            "completionRatio": 100
        }
    ]
}

updateState

http://your.server/ramses/?updateState

Update state info in the database.

Query attributes:

Reply content:

Empty

Reply body:

{
    "accepted": true,
    "query": "updateState",
    "success": true,
    "message": "State \"WIP\" updated.",
    "content": { }
}

removeState

http://your.server/ramses/?removeState

Removes a state from the database.

Query attributes:

Reply content:

Empty

Reply body:

{
    "accepted": true,
    "query": "removeState",
    "success": true,
    "message": "State uuid123 removed.",
    "content": { }
}