META

Queries for managing applications

createApplication

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

Creates a new application e in the database.

Query attributes:

Reply body:

{
    "accepted": true,
    "query": "createApplication",
    "success": true,
    "message": "Application \"Maya\" created.",
    "content": { }
}

getApplications

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

Retrieves the list of all applications.

Query attributes:

Reply content:

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

Reply body:

{
    "accepted": true,
    "query": "getApplications",
    "success": true,
    "message": "Applications list retrieved.",
    "content":  [
        {
            "name": "Autodesk Maya",
            "shortName": "Maya",
            "executableFilePath": "/usr/bin/maya",
            "uuid": "2d7d7e01-671c-11e7-a78f-4ccc6a288527"
        },
        {
            "name": "Blender",
            "shortName": "Blender",
            "executableFilePath": "/usr/bin/blender",
            "uuid": "2d7d7e01-671c-11e7-a78f-4ccc6a288527"
        }
    ]
}

updateApplication

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

Update application info in the database.

Query attributes:

Reply content:

Empty

Reply body:

{
    "accepted": true,
    "query": "updateApplication",
    "success": true,
    "message": "Application \"Maya\" updated.",
    "content": { }
}

removeApplication

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

Removes an application from the database.

Query attributes:

Reply content:

Empty

Reply body:

{
    "accepted": true,
    "query": "removeApplication",
    "success": true,
    "message": "Application uuid123 removed.",
    "content": { }
}

assignFileType

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

Assigns a file type to an application.

Query attributes:

Reply content:

Empty

Reply body:

{
    "accepted": true,
    "query": "assignFileType",
    "success": true,
    "message": "File type assigned to application as import type.",
    "content": { }
}

unassignFileType

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

Unassigns a file type from an application.

Query attributes:

Reply content:

Empty

Reply body:

{
    "accepted": true,
    "query": "unassignFileType",
    "success": true,
    "message": "File type unassigned from application.",
    "content": { }
}