Skip to content

Commit

Permalink
Lots of API updates
Browse files Browse the repository at this point in the history
  • Loading branch information
disbelief committed Feb 1, 2014
1 parent f94e102 commit e2709e8
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/data/apiconfig.json
Expand Up @@ -2,7 +2,7 @@
"minbox": {
"name": "Minbox API",
"protocol": "http",
"baseURL": "stage.minbox.com",
"baseURL": "unbox.dev",
"publicPath": "/api",
"auth": "key",
"booleanTrueVal": "1",
Expand Down
92 changes: 90 additions & 2 deletions public/data/minbox.json
Expand Up @@ -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."
}
]
Expand Down Expand Up @@ -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)."
}
]
},
Expand All @@ -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"
}
]
},
Expand Down

0 comments on commit e2709e8

Please sign in to comment.