| { |
| "basePath" : "${basePath}", |
| "swaggerVersion" : "1.1-SHAPSHOT.121026", |
| "apiVersion" : "0.1", |
| "apis" : [ { |
| "path" : "/apps/{app_name_or_uuid}/token", |
| "description" : "Applications", |
| "operations" : [ { |
| "httpMethod" : "GET", |
| "nickname" : "app_auth_password_get", |
| "summary" : "Get app access token", |
| "notes" : "Get the app access token. See the OAuth2 specification for details.", |
| "responseTypeInternal" : "", |
| "responseClass" : "response", |
| "parameters" : [ { |
| "name" : "app_name_or_uuid", |
| "dataType" : "string", |
| "description" : "app name or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "grant_type", |
| "dataType" : "string", |
| "description" : "Grant type", |
| "defaultValue" : "password", |
| "allowableValues" : { |
| "values" : [ "password", "client_credentials", "refresh_token"], |
| "valueType" : "LIST" |
| }, |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| }, { |
| "name" : "username", |
| "dataType" : "string", |
| "description" : "Username (for grant_type=password)", |
| "required" : false, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| }, { |
| "name" : "password", |
| "dataType" : "string", |
| "description" : "Password (for grant_type=password)", |
| "required" : false, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| }, { |
| "name" : "client_id", |
| "dataType" : "string", |
| "description" : "Client ID (for grant_type=client_credentials)", |
| "required" : false, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| }, { |
| "name" : "client_secret", |
| "dataType" : "string", |
| "description" : "Client Secret (for grant_type=client_credentials)", |
| "required" : false, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| } ], |
| "errorResponses" : [ { |
| "reason" : "Invalid ID supplied", |
| "code" : 400 |
| }, { |
| "reason" : "Application not found", |
| "code" : 404 |
| } ] |
| }, { |
| "httpMethod" : "POST", |
| "nickname" : "app_auth_password_post", |
| "summary" : "Get app access token", |
| "notes" : "Get the app access token. See the OAuth2 specification for details.", |
| "responseTypeInternal" : "", |
| "responseClass" : "response", |
| "parameters" : [ { |
| "name" : "app_name_or_uuid", |
| "dataType" : "string", |
| "description" : "app name or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "grant_type", |
| "dataType" : "string", |
| "description" : "Grant type", |
| "defaultValue" : "password", |
| "allowableValues" : { |
| "values" : [ "password", "client_credentials", "refresh_token"], |
| "valueType" : "LIST" |
| }, |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "post" |
| }, { |
| "name" : "username", |
| "dataType" : "string", |
| "description" : "Username (for grant_type=password)", |
| "required" : false, |
| "allowMultiple" : false, |
| "paramType" : "post" |
| }, { |
| "name" : "password", |
| "dataType" : "string", |
| "description" : "Password (for grant_type=password)", |
| "required" : false, |
| "allowMultiple" : false, |
| "paramType" : "post" |
| }, { |
| "name" : "client_id", |
| "dataType" : "string", |
| "description" : "Client ID (for grant_type=client_credentials)", |
| "required" : false, |
| "allowMultiple" : false, |
| "paramType" : "post" |
| }, { |
| "name" : "client_secret", |
| "dataType" : "string", |
| "description" : "Client Secret (for grant_type=client_credentials)", |
| "required" : false, |
| "allowMultiple" : false, |
| "paramType" : "post" |
| } ], |
| "errorResponses" : [ { |
| "reason" : "Invalid ID supplied", |
| "code" : 400 |
| }, { |
| "reason" : "Application not found", |
| "code" : 404 |
| } ] |
| } ] |
| }, { |
| "path" : "/apps/{app_name_or_uuid}/authorize", |
| "description" : "Applications", |
| "operations" : [ { |
| "httpMethod" : "GET", |
| "nickname" : "app_authorize_get", |
| "summary" : "Authorize app client", |
| "notes" : "Authorize the app client. See the OAuth2 specification.", |
| "responseTypeInternal" : "", |
| "responseClass" : "response", |
| "parameters" : [ { |
| "name" : "app_name_or_uuid", |
| "dataType" : "string", |
| "description" : "app name or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "response_type", |
| "dataType" : "string", |
| "description" : "Response type", |
| "defaultValue" : "token", |
| "allowableValues" : { |
| "values" : [ "token", "code" ], |
| "valueType" : "LIST" |
| }, |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| }, { |
| "name" : "client_id", |
| "dataType" : "string", |
| "description" : "Client ID", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| }, { |
| "name" : "redirect_uri", |
| "dataType" : "string", |
| "description" : "Redirect URI", |
| "required" : false, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| }, { |
| "name" : "scope", |
| "dataType" : "string", |
| "description" : "Access Token Scope", |
| "required" : false, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| }, { |
| "name" : "state", |
| "dataType" : "string", |
| "description" : "Client State", |
| "required" : false, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| } ], |
| "errorResponses" : [ { |
| "reason" : "Invalid ID supplied", |
| "code" : 400 |
| }, { |
| "reason" : "Application not found", |
| "code" : 404 |
| } ] |
| }, { |
| "httpMethod" : "POST", |
| "nickname" : "app_authorize_post", |
| "summary" : "Authorize app client", |
| "notes" : "Authorize the app client. See the OAuth2 specification.", |
| "responseTypeInternal" : "", |
| "responseClass" : "response", |
| "parameters" : [ { |
| "name" : "app_name_or_uuid", |
| "dataType" : "string", |
| "description" : "app name or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "response_type", |
| "dataType" : "string", |
| "description" : "Response type", |
| "defaultValue" : "token", |
| "allowableValues" : { |
| "values" : [ "token", "code" ], |
| "valueType" : "LIST" |
| }, |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| }, { |
| "name" : "client_id", |
| "dataType" : "string", |
| "description" : "Client ID", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| }, { |
| "name" : "redirect_uri", |
| "dataType" : "string", |
| "description" : "Redirect URI", |
| "required" : false, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| }, { |
| "name" : "scope", |
| "dataType" : "string", |
| "description" : "Access Token Scope", |
| "required" : false, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| }, { |
| "name" : "state", |
| "dataType" : "string", |
| "description" : "Client State", |
| "required" : false, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| }, { |
| "name" : "username", |
| "dataType" : "string", |
| "description" : "Username", |
| "required" : false, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| }, { |
| "name" : "password", |
| "dataType" : "string", |
| "description" : "Password", |
| "required" : false, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| } ], |
| "errorResponses" : [ { |
| "reason" : "Invalid ID supplied", |
| "code" : 400 |
| }, { |
| "reason" : "Application not found", |
| "code" : 404 |
| } ] |
| } ] |
| }, { |
| "path" : "/apps/{app_name_or_uuid}/credentials", |
| "description" : "Applications", |
| "operations" : [ { |
| "httpMethod" : "GET", |
| "nickname" : "app_credentials_get", |
| "summary" : "Get app client credentials", |
| "notes" : "Get the app client credentials.", |
| "responseTypeInternal" : "", |
| "responseClass" : "response", |
| "parameters" : [ { |
| "name" : "app_name_or_uuid", |
| "dataType" : "string", |
| "description" : "app name or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "access_token", |
| "dataType" : "string", |
| "description" : "The OAuth2 access token", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| } ], |
| "errorResponses" : [ { |
| "reason" : "Invalid ID supplied", |
| "code" : 400 |
| }, { |
| "reason" : "User not found", |
| "code" : 404 |
| } ] |
| }, { |
| "httpMethod" : "POST", |
| "nickname" : "app_credentials_post", |
| "summary" : "Generate app client credentials", |
| "notes" : "Generate new app client credentials.", |
| "responseTypeInternal" : "", |
| "responseClass" : "response", |
| "parameters" : [ { |
| "name" : "app_name_or_uuid", |
| "dataType" : "string", |
| "description" : "app name or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "access_token", |
| "dataType" : "string", |
| "description" : "The OAuth2 access token", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| } ], |
| "errorResponses" : [ { |
| "reason" : "Invalid ID supplied", |
| "code" : 400 |
| }, { |
| "reason" : "User not found", |
| "code" : 404 |
| } ] |
| } ] |
| }, { |
| "path" : "/apps/{app_name_or_uuid}/users", |
| "description" : "Applications", |
| "operations" : [ { |
| "httpMethod" : "POST", |
| "nickname" : "app_user_json_post", |
| "summary" : "Create new app user", |
| "notes" : "Create new app user. See Usergrid documentation for JSON format of body.", |
| "responseTypeInternal" : "", |
| "responseClass" : "response", |
| "parameters" : [ { |
| "name" : "app_name_or_uuid", |
| "dataType" : "string", |
| "description" : "app name or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "json", |
| "dataType" : "string", |
| "description" : "User to post", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "body" |
| } ], |
| "errorResponses" : [ { |
| "reason" : "Invalid ID supplied", |
| "code" : 400 |
| }, { |
| "reason" : "Application not found", |
| "code" : 404 |
| } ] |
| }, { |
| "httpMethod" : "POST", |
| "nickname" : "app_user_form_post", |
| "summary" : "Create new app user", |
| "notes" : "Create new app user using form post parameters.", |
| "responseTypeInternal" : "", |
| "responseClass" : "response", |
| "parameters" : [ { |
| "name" : "app_name_or_uuid", |
| "dataType" : "string", |
| "description" : "app name or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "username", |
| "dataType" : "string", |
| "description" : "Username", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "post" |
| }, { |
| "name" : "name", |
| "dataType" : "string", |
| "description" : "User Full Name", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "post" |
| }, { |
| "name" : "email", |
| "dataType" : "string", |
| "description" : "User Email", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "post" |
| }, { |
| "name" : "password", |
| "dataType" : "string", |
| "description" : "User Password", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "post" |
| } ], |
| "errorResponses" : [ { |
| "reason" : "Invalid ID supplied", |
| "code" : 400 |
| }, { |
| "reason" : "Application not found", |
| "code" : 404 |
| } ] |
| } ] |
| }, { |
| "path" : "/apps/{app_name_or_uuid}/users/resetpw", |
| "description" : "Applications", |
| "operations" : [ { |
| "httpMethod" : "GET", |
| "nickname" : "app_users_reset_password_get", |
| "summary" : "Initiate a user password reset", |
| "notes" : "Initiate a user password reset. Returns browser-viewable HTML page.", |
| "responseTypeInternal" : "", |
| "responseClass" : "response", |
| "parameters" : [ { |
| "name" : "app_name_or_uuid", |
| "dataType" : "string", |
| "description" : "app name or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| } ], |
| "errorResponses" : [ { |
| "reason" : "Invalid ID supplied", |
| "code" : 400 |
| }, { |
| "reason" : "Application not found", |
| "code" : 404 |
| } ] |
| }, { |
| "httpMethod" : "POST", |
| "nickname" : "app_users_reset_password_form_post", |
| "summary" : "Complete a user password reset", |
| "notes" : "Complete a user password reset. Handles form POST response.", |
| "responseTypeInternal" : "", |
| "responseClass" : "response", |
| "parameters" : [ { |
| "name" : "app_name_or_uuid", |
| "dataType" : "string", |
| "description" : "app name or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "email", |
| "dataType" : "string", |
| "description" : "User Email", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "post" |
| }, { |
| "name" : "recaptcha_challenge_field", |
| "dataType" : "string", |
| "description" : "Recaptcha Challenge Field", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "post" |
| }, { |
| "name" : "recaptcha_response_field", |
| "dataType" : "string", |
| "description" : "Recaptcha Response Field", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "post" |
| } ], |
| "errorResponses" : [ { |
| "reason" : "Invalid ID supplied", |
| "code" : 400 |
| }, { |
| "reason" : "Application not found", |
| "code" : 404 |
| } ] |
| } ] |
| }, { |
| "path" : "/apps/{app_name_or_uuid}/users/{user_username_email_or_uuid}", |
| "description" : "Applications", |
| "operations" : [ { |
| "httpMethod" : "GET", |
| "nickname" : "app_user_get", |
| "summary" : "Returns the app user details", |
| "notes" : "Returns the app user details.", |
| "responseTypeInternal" : "", |
| "responseClass" : "response", |
| "parameters" : [ { |
| "name" : "app_name_or_uuid", |
| "dataType" : "string", |
| "description" : "app name or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "access_token", |
| "dataType" : "string", |
| "description" : "The OAuth2 access token", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| }, { |
| "name" : "user_username_email_or_uuid", |
| "dataType" : "string", |
| "description" : "User username, email or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| } ], |
| "errorResponses" : [ { |
| "reason" : "Invalid ID supplied", |
| "code" : 400 |
| }, { |
| "reason" : "Application not found", |
| "code" : 404 |
| } ] |
| }, { |
| "httpMethod" : "PUT", |
| "nickname" : "app_user_json_put", |
| "summary" : "Updates the app user details", |
| "notes" : "Updates the app user details.", |
| "responseTypeInternal" : "", |
| "responseClass" : "response", |
| "parameters" : [ { |
| "name" : "app_name_or_uuid", |
| "dataType" : "string", |
| "description" : "app name or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "access_token", |
| "dataType" : "string", |
| "description" : "The OAuth2 access token", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| }, { |
| "name" : "user_username_email_or_uuid", |
| "dataType" : "string", |
| "description" : "User username, email or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "json", |
| "dataType" : "string", |
| "description" : "App user details", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "body" |
| } ], |
| "errorResponses" : [ { |
| "reason" : "Invalid ID supplied", |
| "code" : 400 |
| }, { |
| "reason" : "Application not found", |
| "code" : 404 |
| } ] |
| } ] |
| }, { |
| "path" : "/apps/{app_name_or_uuid}/users/{user_username_email_or_uuid}/activate", |
| "description" : "Applications", |
| "operations" : [ { |
| "httpMethod" : "GET", |
| "nickname" : "app_user_activate_get", |
| "summary" : "Activates the app user", |
| "notes" : "Activates the app user from link provided in email notification.", |
| "responseTypeInternal" : "", |
| "responseClass" : "response", |
| "parameters" : [ { |
| "name" : "app_name_or_uuid", |
| "dataType" : "string", |
| "description" : "app name or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "token", |
| "dataType" : "string", |
| "description" : "Activation Token (supplied via email)", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| }, { |
| "name" : "confirm", |
| "dataType" : "boolean", |
| "description" : "Send confirmation email", |
| "required" : false, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "user_username_email_or_uuid", |
| "dataType" : "string", |
| "description" : "User username, email or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| } ], |
| "errorResponses" : [ { |
| "reason" : "Invalid ID supplied", |
| "code" : 400 |
| }, { |
| "reason" : "User not found", |
| "code" : 404 |
| } ] |
| } ] |
| }, { |
| "path" : "/apps/{app_name_or_uuid}/users/{user_username_email_or_uuid}/reactivate", |
| "description" : "Applications", |
| "operations" : [ { |
| "httpMethod" : "GET", |
| "nickname" : "app_user_reactivate_get", |
| "summary" : "Reactivates the app user", |
| "notes" : "Request app user reactivation.", |
| "responseTypeInternal" : "", |
| "responseClass" : "response", |
| "parameters" : [ { |
| "name" : "app_name_or_uuid", |
| "dataType" : "string", |
| "description" : "app name or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "user_username_email_or_uuid", |
| "dataType" : "string", |
| "description" : "User username, email or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| } ], |
| "errorResponses" : [ { |
| "reason" : "Invalid ID supplied", |
| "code" : 400 |
| }, { |
| "reason" : "User not found", |
| "code" : 404 |
| } ] |
| } ] |
| }, { |
| "path" : "/apps/{app_name_or_uuid}/users/{user_username_email_or_uuid}/feed", |
| "description" : "Applications", |
| "operations" : [ { |
| "httpMethod" : "GET", |
| "nickname" : "app_user_feed_get", |
| "summary" : "Get app user activity feed", |
| "notes" : "Get app user activity feed.", |
| "responseTypeInternal" : "", |
| "responseClass" : "response", |
| "parameters" : [ { |
| "name" : "app_name_or_uuid", |
| "dataType" : "string", |
| "description" : "app name or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "access_token", |
| "dataType" : "string", |
| "description" : "The OAuth2 access token", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| }, { |
| "name" : "user_username_email_or_uuid", |
| "dataType" : "string", |
| "description" : "User username, email or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| } ], |
| "errorResponses" : [ { |
| "reason" : "Invalid ID supplied", |
| "code" : 400 |
| }, { |
| "reason" : "User not found", |
| "code" : 404 |
| } ] |
| } ] |
| }, { |
| "path" : "/apps/{app_name_or_uuid}/users/{user_username_email_or_uuid}/password", |
| "description" : "Applications", |
| "operations" : [ { |
| "httpMethod" : "PUT", |
| "nickname" : "app_user_password_json_put", |
| "summary" : "Set app user password", |
| "notes" : "Set app user password. See Usergrid documentation for JSON format of body.", |
| "responseTypeInternal" : "", |
| "responseClass" : "response", |
| "parameters" : [ { |
| "name" : "app_name_or_uuid", |
| "dataType" : "string", |
| "description" : "app name or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "access_token", |
| "dataType" : "string", |
| "description" : "The OAuth2 access token", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| }, { |
| "name" : "user_username_email_or_uuid", |
| "dataType" : "string", |
| "description" : "User username, email or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "json", |
| "dataType" : "string", |
| "description" : "Old and new password", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "body" |
| } ], |
| "errorResponses" : [ { |
| "reason" : "Invalid ID supplied", |
| "code" : 400 |
| }, { |
| "reason" : "User not found", |
| "code" : 404 |
| } ] |
| } ] |
| }, { |
| "path" : "/apps/{app_name_or_uuid}/users/{user_username_email_or_uuid}/resetpw", |
| "description" : "Applications", |
| "operations" : [ { |
| "httpMethod" : "GET", |
| "nickname" : "app_user_reset_password_get", |
| "summary" : "Initiate a user password reset", |
| "notes" : "Initiate a user password reset. Returns browser-viewable HTML page.", |
| "responseTypeInternal" : "", |
| "responseClass" : "response", |
| "parameters" : [ { |
| "name" : "app_name_or_uuid", |
| "dataType" : "string", |
| "description" : "app name or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "user_username_email_or_uuid", |
| "dataType" : "string", |
| "description" : "User username, email or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| } ], |
| "errorResponses" : [ { |
| "reason" : "Invalid ID supplied", |
| "code" : 400 |
| }, { |
| "reason" : "Application not found", |
| "code" : 404 |
| } ] |
| }, { |
| "httpMethod" : "POST", |
| "nickname" : "app_user_reset_password_form_post", |
| "summary" : "Complete a user password reset", |
| "notes" : "Complete a user password reset. Handles form POST response.", |
| "responseTypeInternal" : "", |
| "responseClass" : "response", |
| "parameters" : [ { |
| "name" : "app_name_or_uuid", |
| "dataType" : "string", |
| "description" : "app name or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "user_username_email_or_uuid", |
| "dataType" : "string", |
| "description" : "User username, email or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "recaptcha_challenge_field", |
| "dataType" : "string", |
| "description" : "Recaptcha Challenge Field", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "post" |
| }, { |
| "name" : "recaptcha_response_field", |
| "dataType" : "string", |
| "description" : "Recaptcha Response Field", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "post" |
| } ], |
| "errorResponses" : [ { |
| "reason" : "Invalid ID supplied", |
| "code" : 400 |
| }, { |
| "reason" : "Application not found", |
| "code" : 404 |
| } ] |
| } ] |
| }, { |
| "path" : "/apps/{app_name_or_uuid}/{collection}", |
| "description" : "Applications", |
| "operations" : [ { |
| "httpMethod" : "GET", |
| "nickname" : "app_entity_get", |
| "summary" : "Query an app collection", |
| "notes" : "Query an app collection.", |
| "responseTypeInternal" : "", |
| "responseClass" : "response", |
| "parameters" : [ { |
| "name" : "app_name_or_uuid", |
| "dataType" : "string", |
| "description" : "app name or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "collection", |
| "dataType" : "string", |
| "description" : "collection name (entity type)", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "ql", |
| "dataType" : "string", |
| "description" : "a query in the query language", |
| "required" : false, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| }, { |
| "name" : "reversed", |
| "dataType" : "boolean", |
| "description" : "return results in reverse order", |
| "required" : false, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| }, { |
| "name" : "start", |
| "dataType" : "string", |
| "description" : "the first entity UUID to return", |
| "required" : false, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| }, { |
| "name" : "cursor", |
| "dataType" : "string", |
| "description" : "an encoded representation of the query position for paging", |
| "required" : false, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| }, { |
| "name" : "limit", |
| "dataType" : "integer", |
| "description" : "an encoded representation of the query position for paging", |
| "required" : false, |
| "allowMultiple" : false, |
| "paramType" : "query" |
| }, { |
| "name" : "filter", |
| "dataType" : "integer", |
| "description" : "a condition to filter on", |
| "required" : false, |
| "allowMultiple" : true, |
| "paramType" : "query" |
| } ], |
| "errorResponses" : [ { |
| "reason" : "Invalid ID supplied", |
| "code" : 400 |
| }, { |
| "reason" : "Application not found", |
| "code" : 404 |
| } ] |
| }, { |
| "httpMethod" : "POST", |
| "nickname" : "app_entity_json_post", |
| "summary" : "Create new app entity", |
| "notes" : "Create new app entity. See Usergrid documentation for JSON format of body.", |
| "responseTypeInternal" : "", |
| "responseClass" : "response", |
| "parameters" : [ { |
| "name" : "app_name_or_uuid", |
| "dataType" : "string", |
| "description" : "app name or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "collection", |
| "dataType" : "string", |
| "description" : "collection name (entity type)", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "json", |
| "dataType" : "string", |
| "description" : "User to post", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "body" |
| } ], |
| "errorResponses" : [ { |
| "reason" : "Invalid ID supplied", |
| "code" : 400 |
| }, { |
| "reason" : "Application not found", |
| "code" : 404 |
| } ] |
| } ] |
| }, { |
| "path" : "/apps/{app_name_or_uuid}/{collection}/{entity_name_or_uuid}", |
| "description" : "Applications", |
| "operations" : [ { |
| "httpMethod" : "PUT", |
| "nickname" : "app_entity_put", |
| "summary" : "Update an app entity", |
| "notes" : "Update an app entity in a collection.", |
| "responseTypeInternal" : "", |
| "responseClass" : "response", |
| "parameters" : [ { |
| "name" : "app_name_or_uuid", |
| "dataType" : "string", |
| "description" : "app name or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "collection", |
| "dataType" : "string", |
| "description" : "collection name (entity type)", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "entity_name_or_uuid", |
| "dataType" : "string", |
| "description" : "entity name or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "json", |
| "dataType" : "string", |
| "description" : "User to post", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "body" |
| } ], |
| "errorResponses" : [ { |
| "reason" : "Invalid ID supplied", |
| "code" : 400 |
| }, { |
| "reason" : "Application not found", |
| "code" : 404 |
| } ] |
| }, { |
| "httpMethod" : "DELETE", |
| "nickname" : "app_entity_delete", |
| "summary" : "Delete an app entity", |
| "notes" : "Delete an app entity.", |
| "responseTypeInternal" : "", |
| "responseClass" : "response", |
| "parameters" : [ { |
| "name" : "app_name_or_uuid", |
| "dataType" : "string", |
| "description" : "app name or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "collection", |
| "dataType" : "string", |
| "description" : "collection name (entity type)", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| }, { |
| "name" : "entity_name_or_uuid", |
| "dataType" : "string", |
| "description" : "entity name or uuid", |
| "required" : true, |
| "allowMultiple" : false, |
| "paramType" : "path" |
| } ], |
| "errorResponses" : [ { |
| "reason" : "Invalid ID supplied", |
| "code" : 400 |
| }, { |
| "reason" : "Application not found", |
| "code" : 404 |
| } ] |
| } ] |
| } ], |
| "models" : { |
| "response" : { |
| "properties" : { |
| "id" : { |
| "type" : "long" |
| }, |
| "name" : { |
| "type" : "string" |
| } |
| }, |
| "id" : "response" |
| } |
| } |
| } |