Skip to content

Commit

Permalink
Fixes show and put URLs to embed ids in the url path. Fixes a bug wit…
Browse files Browse the repository at this point in the history
…h the Contacts path on one action.
  • Loading branch information
disbelief committed Jun 12, 2012
1 parent 4e04760 commit 03de681
Showing 1 changed file with 41 additions and 13 deletions.
54 changes: 41 additions & 13 deletions public/data/minbox.json
Expand Up @@ -90,7 +90,7 @@
"MethodName": "show",
"Synopsis": "Gets information about a specific Stack",
"HTTPMethod": "GET",
"URI": "/stacks",
"URI": "/stacks/:id",
"RequiresOAuth": "Y",
"parameters": [
{
Expand Down Expand Up @@ -129,7 +129,7 @@
"MethodName": "update",
"Synopsis": "Updates information about a Stack",
"HTTPMethod": "PUT",
"URI": "/stacks",
"URI": "/stacks/:id",
"RequiresOAuth": "Y",
"parameters": [
{
Expand Down Expand Up @@ -159,7 +159,7 @@
"MethodName": "destroy",
"Synopsis": "Removes a Stack. Only non-reserved Stacks (user-created) can be destroyed.",
"HTTPMethod": "DELETE",
"URI": "/stacks",
"URI": "/stacks/:id",
"RequiresOAuth": "Y",
"parameters": [
{
Expand Down Expand Up @@ -243,7 +243,7 @@
"MethodName": "show",
"Synopsis": "Gets information about a specific Fold",
"HTTPMethod": "GET",
"URI": "/folds",
"URI": "/folds/:id",
"RequiresOAuth": "Y",
"parameters": [
{
Expand All @@ -259,7 +259,7 @@
"MethodName": "update",
"Synopsis": "Updates information about a Fold. Used only for specific functions within the Fold like marking all messages as read/unread, as spam, etc.",
"HTTPMethod": "PUT",
"URI": "/folds",
"URI": "/folds/:id",
"RequiresOAuth": "Y",
"parameters": [
{
Expand Down Expand Up @@ -338,7 +338,7 @@
"MethodName": "show",
"Synopsis": "Gets information about a specific Contact",
"HTTPMethod": "GET",
"URI": "/contact",
"URI": "/contacts/:id",
"RequiresOAuth": "Y",
"parameters": [
{
Expand Down Expand Up @@ -391,7 +391,7 @@
"MethodName": "update",
"Synopsis": "Updates information about a Contact. This method can also be used for removing Contacts from a specific Stack.",
"HTTPMethod": "PUT",
"URI": "/contacts",
"URI": "/contacts/:id",
"RequiresOAuth": "Y",
"parameters": [
{
Expand Down Expand Up @@ -442,7 +442,7 @@
"MethodName": "destroy",
"Synopsis": "Removes a Contact from a Stack, or entirely from the User's Contact list.",
"HTTPMethod": "DELETE",
"URI": "/contacts",
"URI": "/contacts/:id",
"RequiresOAuth": "Y",
"parameters": [
{
Expand Down Expand Up @@ -500,7 +500,7 @@
"MethodName": "show",
"Synopsis": "Gets information about a specific Conversation",
"HTTPMethod": "GET",
"URI": "/conversations",
"URI": "/conversations/:id",
"RequiresOAuth": "Y",
"parameters": [
{
Expand All @@ -516,7 +516,7 @@
"MethodName": "update",
"Synopsis": "Updates information about a Conversation",
"HTTPMethod": "PUT",
"URI": "/conversations",
"URI": "/conversations/:id",
"RequiresOAuth": "Y",
"parameters": [
{
Expand Down Expand Up @@ -581,7 +581,7 @@
"MethodName": "show",
"Synopsis": "Gets information about a specific Message",
"HTTPMethod": "GET",
"URI": "/messages",
"URI": "/messages/:id",
"RequiresOAuth": "Y",
"parameters": [
{
Expand Down Expand Up @@ -662,7 +662,7 @@
"MethodName": "update",
"Synopsis": "Updates information about a Message. Used only for specific functions like marking as read/unread, etc.",
"HTTPMethod": "PUT",
"URI": "/messages",
"URI": "/messages/:id",
"RequiresOAuth": "Y",
"parameters": [
{
Expand Down Expand Up @@ -699,7 +699,7 @@
"MethodName": "destroy",
"Synopsis": "Deletes a Message from our system, and moves it into the Trash folder on the IMAP server.",
"HTTPMethod": "DELETE",
"URI": "/messages",
"URI": "/messages/:id",
"RequiresOAuth": "Y",
"parameters": [
{
Expand Down Expand Up @@ -779,6 +779,34 @@
]
}
]
},
{
"name": "SignIn",
"methods": [
{
"MethodName": "create",
"Synopsis": "Attempts to sign-in a user. This performs a login if the user is already registered, or creates a new account for them if not.",
"HTTPMethod": "POST",
"URI": "/sign_in",
"RequiresOAuth": "N",
"parameters": [
{
"Name": "email",
"Required": "Y",
"Default": "",
"Type": "string",
"Description": "The email address of the user"
},
{
"Name": "password",
"Required": "Y",
"Default": "",
"Type": "string",
"Description": "The password for the email address"
}
]
}
]
}
]
}

0 comments on commit 03de681

Please sign in to comment.