App Services (Usergrid) jQuery Example

Select method to test:

GET



To run a GET query against the API, enter the path you want to query, then push the "Run Query" button. By default, the value is "users/fred", which will translate to a call to: https://api.usergrid.com/your-org/your-app/users/fred, and will retrieve the record for fred.

Hint: if you get an error here, it probably means "fred" doesn't exist. Go to back to the main menu and choose "POST" to create a new "fred".

POST



To run a POST query against the API, enter the path you want to call and the Json you want to send to the server, then push the "Run Query" button. By default, the path of users, and the Json request body of, "{"username":"fred"}" will create a new user called "fred".

Hint: if you get an error here, it probably means "fred" already exists. Go to back to the main menu and choose "DELETE" to delete the "fred" entity, then come. back to this page to try again.

PUT



To run a PUT query against the API, enter the path you want to update and the Json you want to send to the server, then push the "Run Query" button. By default, the path of users, and the Json request body of, "{"username":"fred"}" will create a new user called "fred".

Hint: if you get an error here, it probably means "fred" doesn't exist. Go to back to the main menu and choose "POST" to create a new "fred".

DELETE



To run a DELETE query against the API, enter the path you want to delete, then push the "Run Query" button. By default, the value is "users/fred", which will delete the entity located at: https://api.usergrid.com/your-org/your-app/users/fred .

Hint: if you get an error here, it probably means "fred" doesn't exist. Go to back to the main menu and choose "POST" to create a new "fred".

Log In



To run a login query against the API, enter the username and password, then push the "Run Query" button.

Hint: if you get an error here, it probably means either the user doesn\'t exist, or hasn\'t had the password set properly. Go to back to the main menu and choose "POST" to create a new "fred".

API RESPONSE: