Skip to content

Commit

Permalink
Added Gallery.restore call, and Comments-related calls
Browse files Browse the repository at this point in the history
  • Loading branch information
disbelief committed Feb 25, 2014
1 parent a18ff68 commit 3feede7
Showing 1 changed file with 139 additions and 0 deletions.
139 changes: 139 additions & 0 deletions public/data/minbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -1652,6 +1652,22 @@
}
]
},
{
"MethodName": "restore",
"Synopsis": "Restores an expired gallery (pro feature).",
"HTTPMethod": "PUT",
"URI": "/galleries/:id/restore",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "id",
"Required": "Y",
"Default": "",
"Type": "string",
"Description": "The id of the gallery to lock"
}
]
},
{
"MethodName": "destroy",
"Synopsis": "Deletes a Gallery (this is a \"soft delete\", so it can be undone).",
Expand Down Expand Up @@ -2249,6 +2265,129 @@
]
}
]
},
{
"name": "Gallery Comments",
"methods": [
{
"MethodName": "index",
"Synopsis": "Lists all comments for a gallery",
"HTTPMethod": "GET",
"URI": "/galleries/:gallery_id/comments",
"RequiresOAuth": "N",
"parameters": [
{
"Name": "gallery_id",
"Type": "string",
"Required": "Y",
"Description": "ID of the gallery to list comments for."
},
{
"Name": "limit",
"Required": "N",
"Default": "30",
"Type": "integer",
"Description": "The number of items to return in a page"
},
{
"Name": "page",
"Required": "N",
"Default": "1",
"Type": "integer",
"Description": "The page number, when requesting paginated results, minimum 1"
}
]
},
{
"MethodName": "unread",
"Synopsis": "Lists all unread comments for a gallery",
"HTTPMethod": "GET",
"URI": "/galleries/:gallery_id/comments/unread",
"RequiresOAuth": "N",
"parameters": [
{
"Name": "gallery_id",
"Type": "string",
"Required": "Y",
"Description": "ID of the gallery to list comments for."
},
{
"Name": "limit",
"Required": "N",
"Default": "30",
"Type": "integer",
"Description": "The number of items to return in a page"
},
{
"Name": "page",
"Required": "N",
"Default": "1",
"Type": "integer",
"Description": "The page number, when requesting paginated results, minimum 1"
}
]
},
{
"MethodName": "create",
"Synopsis": "Creates a comment for a gallery",
"HTTPMethod": "POST",
"URI": "/galleries/:gallery_id/comments",
"RequiresOAuth": "N",
"parameters": [
{
"Name": "gallery_id",
"Type": "string",
"Required": "Y",
"Description": "ID of the gallery to comment on."
},
{
"Name": "body",
"Type": "string",
"Required": "Y",
"Description": "The text of the comment."
},
{
"Name": "user_id",
"Type": "string",
"Required": "N",
"Description": "An ID of the commenter user, required when making an unauthenticated call, unless email and name are provided"
},
{
"Name": "email",
"Type": "string",
"Required": "N",
"Description": "Email of the commenter, required when making an unauthenticated call without a user_id."
},
{
"Name": "name",
"Type": "string",
"Required": "N",
"Description": "Name of the commenter, required when making an unauthenticated call without a user_id."
}
]
},
{
"MethodName": "show",
"Synopsis": "Displays a comment for a gallery",
"HTTPMethod": "GET",
"URI": "/galleries/:gallery_id/comments/:id",
"RequiresOAuth": "N",
"parameters": [
{
"Name": "gallery_id",
"Type": "string",
"Required": "Y",
"Description": "ID of the gallery the comment belongs to."
},
{
"Name": "id",
"Type": "string",
"Required": "Y",
"Description": "ID of the comment."
}
]
}
]
}
]
}

0 comments on commit 3feede7

Please sign in to comment.