META

Queries for managing file types

createFileType

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

Creates a new file type in the database.

Query attributes:

Reply content:

Empty

Reply body:

{
    "accepted": true,
    "query": "createFileType",
    "success": true,
    "message": "File type \".ma\" created.",
    "content": { }
}

getFileTypes

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

Retrieves the list of all file types.

Query attributes:

Reply content:

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

Reply body:

{
    "accepted": true,
    "query": "getFileTypes",
    "success": true,
    "message": "File types list retrieved.",
    "content":  [
        {
            "name": "Maya Ascii",
            "shortName": ".ma",
            "extensions": "ma",
            "uuid": "2d7d7e01-671c-11e7-a78f-4ccc6a288527"
        },
        {
            "name": "Maya Binary",
            "shortName": ".mb",
            "extensions": "mb",
            "uuid": "2d7d7e01-671c-11e7-a78f-4ccc6a288527"
        },
        {
            "name": "Image (Jpeg)",
            "shortName": ".jpg",
            "extensions": "jpg,jpeg",
            "uuid": "2d7d7e01-671c-11e7-a78f-4ccc6a288527"
        }
    ]
}

updateFileType

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

Update file type info in the database.

Query attributes:

Reply content:

Empty

Reply body:

{
    "accepted": true,
    "query": "updateFileType",
    "success": true,
    "message": "File type \".ma\" updated.",
    "content": { }
}

removeFileType

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

Removes a file type from the database.

Query attributes:

Reply content:

Empty

Reply body:

{
    "accepted": true,
    "query": "removeFileType",
    "success": true,
    "message": "File type uuid123 removed.",
    "content": { }
}