From e2709e8f1882f99e1affc8db39780cac84f6c7c3 Mon Sep 17 00:00:00 2001 From: Michael Lawlor Date: Fri, 31 Jan 2014 17:56:55 -0800 Subject: [PATCH] Lots of API updates --- public/data/apiconfig.json | 2 +- public/data/minbox.json | 92 +++++++++++++++++++++++++++++++++++++- 2 files changed, 91 insertions(+), 3 deletions(-) diff --git a/public/data/apiconfig.json b/public/data/apiconfig.json index e993d6fe..8de32051 100644 --- a/public/data/apiconfig.json +++ b/public/data/apiconfig.json @@ -2,7 +2,7 @@ "minbox": { "name": "Minbox API", "protocol": "http", - "baseURL": "stage.minbox.com", + "baseURL": "unbox.dev", "publicPath": "/api", "auth": "key", "booleanTrueVal": "1", diff --git a/public/data/minbox.json b/public/data/minbox.json index a3e8184a..34645283 100644 --- a/public/data/minbox.json +++ b/public/data/minbox.json @@ -1480,9 +1480,9 @@ { "Name": "query", "Required": "N", - "Default": "active", + "Default": "", "Type": "enumerated", - "EnumeratedList": ["active", "sent", "pending", "deleted", "all"], + "EnumeratedList": ["active", "sent", "pending", "deleted", "expired", "all"], "Description": "Criteria to filter the galleries by. Active is the default, and Sent indicates both active and sent via email." } ] @@ -1524,6 +1524,13 @@ "Type": "enumerated", "EnumeratedList": ["", "composer", "screenshot", "context-menu", "direct"], "Description": "The way that the gallery is being created" + }, + { + "Name": "screenshots", + "Required": "N", + "Default": "", + "Type": "boolean", + "Description": "Indicates creation of the special screenshots gallery (will only create it if not already existing)." } ] }, @@ -1547,6 +1554,87 @@ "Default": "", "Type": "string", "Description": "A custom name for this gallery" + }, + { + "Name": "delete", + "Required": "N", + "Default": "", + "Type": "boolean", + "Description": "Soft destroys the Gallery (undo is possible)" + }, + { + "Name": "undo", + "Required": "N", + "Default": "", + "Type": "boolean", + "Description": "Undo a previous soft destroy call" + }, + { + "Name": "cancel", + "Required": "N", + "Default": "", + "Type": "boolean", + "Description": "Marks the Gallery as cancelled" + }, + { + "Name": "remove_lock", + "Required": "N", + "Default": "", + "Type": "boolean", + "Description": "Removes any password protection on the gallery" + } + ] + }, + { + "MethodName": "unlock", + "Synopsis": "Unlocks a locked gallery.", + "HTTPMethod": "PUT", + "URI": "/galleries/:id/unlock", + "RequiresOAuth": "N", + "parameters": [ + { + "Name": "id", + "Required": "Y", + "Default": "", + "Type": "string", + "Description": "The id of the gallery to unlock" + }, + { + "Name": "password", + "Required": "Y", + "Default": "", + "Type": "string", + "Description": "The password to unlock it with" + } + ] + }, + { + "MethodName": "lock", + "Synopsis": "Locks a gallery.", + "HTTPMethod": "PUT", + "URI": "/galleries/:id/lock", + "RequiresOAuth": "Y", + "parameters": [ + { + "Name": "id", + "Required": "Y", + "Default": "", + "Type": "string", + "Description": "The id of the gallery to lock" + }, + { + "Name": "password", + "Required": "Y", + "Default": "", + "Type": "string", + "Description": "The password to lock it with" + }, + { + "Name": "password_hint", + "Required": "Y", + "Default": "", + "Type": "string", + "Description": "A hint to include with the password" } ] },