-
-
Save mitani/f39e8d94df9fbda4d97d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "025b4dba-0a22-5a8e-b4a1-31409b9d8f38", | |
"name": "SugarCRM Cookbook", | |
"description": "", | |
"order": [ | |
"f79bf6a9-9a12-a398-4f8d-6d0a2cf8f05f", | |
"d4cc6ae2-68f7-6464-e328-4625165bc90a", | |
"732a5c2a-b206-37f8-2e9b-b5569c9492a3", | |
"bd3c644e-d851-89a8-fcf8-c859df41d67d", | |
"ff7ef757-2033-9d4a-2804-715f5927b863", | |
"064e37a0-7562-b7a4-31de-aa5254f970d6", | |
"63eee75e-d87a-1cbc-4398-cc9b96930bbf", | |
"54be0fba-a31b-4e9d-81f7-d582187e7546", | |
"7491a1f5-7155-b15d-1ed6-3a8a7ce35755", | |
"6d2f9770-8fe1-157a-2158-1055cc81486e", | |
"2c2a8f71-bd21-f87f-95da-82e3b6cbb469", | |
"3a120289-051a-258f-e59b-07331f584a5a", | |
"e3b5a123-02c0-77ae-9bb2-7dd087392ead", | |
"c4b90a30-630a-4fa1-ee9e-521111f9f53b", | |
"4fc4b847-9a24-9705-c6df-5d9a64cd26c6", | |
"06354db3-178e-6478-6009-fe6c75b23d62", | |
"e3f43af8-5f87-b398-4f3a-4d0de30435ff", | |
"447c7909-6e81-c7a0-226f-0cb8e352e39d" | |
], | |
"folders": [], | |
"timestamp": 1392932985997, | |
"synced": false, | |
"requests": [ | |
{ | |
"id": "06354db3-178e-6478-6009-fe6c75b23d62", | |
"headers": "OAuth-Token: {{access_token}}\n", | |
"url": "{{url}}/rest/v10/search?q=burger&fields=name,email,description", | |
"pathVariables": {}, | |
"method": "GET", | |
"data": [], | |
"dataMode": "params", | |
"version": 2, | |
"tests": "", | |
"time": 1393369570391, | |
"name": "Search all modules using Global Search for - burger", | |
"description": "Search for \"burger\" using full text search", | |
"collectionId": "025b4dba-0a22-5a8e-b4a1-31409b9d8f38", | |
"responses": [], | |
"synced": false | |
}, | |
{ | |
"id": "064e37a0-7562-b7a4-31de-aa5254f970d6", | |
"headers": "OAuth-Token: {{access_token}}\n", | |
"url": "{{url}}/rest/v10/Accounts?filter[0][name][$starts]=B&filter[0][email_addresses.email_address]=burgers@example.com&fields=name,account_type,description,email", | |
"pathVariables": {}, | |
"method": "GET", | |
"data": [], | |
"dataMode": "params", | |
"version": 2, | |
"tests": "", | |
"time": 1393367688915, | |
"name": "Filter Accounts by name starting with 'B' and an email address", | |
"description": "Filter your account list for only accounts starting with 'B' and with the email address\n\n\"burgers@example.com\"", | |
"collectionId": "025b4dba-0a22-5a8e-b4a1-31409b9d8f38", | |
"responses": [], | |
"synced": false | |
}, | |
{ | |
"id": "2c2a8f71-bd21-f87f-95da-82e3b6cbb469", | |
"headers": "OAuth-Token: {{access_token}}\n", | |
"url": "{{url}}/rest/v10/Accounts/demo_burger_palace/link/contacts?fields=name,first_name,last_name,email,description", | |
"pathVariables": {}, | |
"method": "GET", | |
"data": [], | |
"dataMode": "params", | |
"version": 2, | |
"tests": "", | |
"time": 1393368526358, | |
"name": "Get Contacts Related to an Account", | |
"description": "Let's get the Contacts associated with the Account \"Burger Palace\"", | |
"collectionId": "025b4dba-0a22-5a8e-b4a1-31409b9d8f38", | |
"responses": [], | |
"synced": false | |
}, | |
{ | |
"id": "3a120289-051a-258f-e59b-07331f584a5a", | |
"headers": "OAuth-Token: {{access_token}}\n", | |
"url": "{{url}}/rest/v10/Accounts/demo_burger_palace/link/contacts?filter[0][last_name][$starts]=b&filter[0][first_name][$starts]=b&filter[0][$favorite]=_this&fields=name,first_name,last_name,email,description", | |
"pathVariables": {}, | |
"method": "GET", | |
"data": [], | |
"dataMode": "params", | |
"version": 2, | |
"tests": "", | |
"time": 1393368540221, | |
"name": "Filter Contacts Related to an Account", | |
"description": "Let's filter the Contacts related to \"Burger Palace\" to ones that have a first_name and last_name that starts with B and a last_name that starts with B and is a favorite", | |
"collectionId": "025b4dba-0a22-5a8e-b4a1-31409b9d8f38", | |
"responses": [], | |
"synced": false | |
}, | |
{ | |
"id": "447c7909-6e81-c7a0-226f-0cb8e352e39d", | |
"headers": "OAuth-Token: {{access_token}}\n", | |
"url": "{{url}}/rest/v10/Contacts/demo_bob_burger", | |
"pathVariables": {}, | |
"method": "DELETE", | |
"data": [], | |
"dataMode": "params", | |
"name": "Delete the Contact - Bob Burger", | |
"description": "Delete the contact \"Bob Burger\"", | |
"descriptionFormat": "html", | |
"time": 1392947122913, | |
"version": 2, | |
"responses": [], | |
"tests": "", | |
"collectionId": "025b4dba-0a22-5a8e-b4a1-31409b9d8f38", | |
"synced": false | |
}, | |
{ | |
"id": "4fc4b847-9a24-9705-c6df-5d9a64cd26c6", | |
"headers": "OAuth-Token: {{access_token}}\n", | |
"url": "{{url}}/rest/v10/Accounts?filter[0][contacts.last_name]=burger&fields=name,first_name,last_name,email,description", | |
"pathVariables": {}, | |
"method": "GET", | |
"data": [], | |
"dataMode": "params", | |
"version": 2, | |
"tests": "", | |
"time": 1393368565529, | |
"name": "Let's filter our Accounts by a Contacts Last Name", | |
"description": "Now let's get advanced with the filtering API and filter on related data. We are going to filter our Account list to only show Accounts that have a contact with the last name \"burger\" ", | |
"collectionId": "025b4dba-0a22-5a8e-b4a1-31409b9d8f38", | |
"responses": [], | |
"synced": false | |
}, | |
{ | |
"id": "54be0fba-a31b-4e9d-81f7-d582187e7546", | |
"headers": "OAuth-Token: {{access_token}}\n", | |
"url": "{{url}}/rest/v10/Contacts", | |
"pathVariables": {}, | |
"method": "POST", | |
"data": "{\n\t\"id\":\"demo_bob_burger\",\n \"first_name\":\"Bob\",\n \"last_name\": \"Burger\",\n \"description\":\"Bob Burger is a new contact\"\n}", | |
"dataMode": "raw", | |
"version": 2, | |
"tests": "", | |
"time": 1392946889872, | |
"name": "Create a new Contact - Bob Burger", | |
"description": "Create a new Contact using the REST API ", | |
"collectionId": "025b4dba-0a22-5a8e-b4a1-31409b9d8f38", | |
"responses": [], | |
"synced": false | |
}, | |
{ | |
"id": "63eee75e-d87a-1cbc-4398-cc9b96930bbf", | |
"headers": "OAuth-Token: {{access_token}}\n", | |
"url": "{{url}}/rest/v10/Accounts/demo_burger_palace?fields=curl -X GET -H OAuth-Token:e2505ba8-fc56-de05-ce9f-530d1bf56227 -H Cache-Control:no-cache -H Postman-Token:cb452a8c-2bb9-ebf6-ae66-a0700b10cdcc http://honey-b/pro720/rest/v10/Accounts?filter[0][name][$starts]=B%26filter[0][email_addresses.email_address]=burgers@example.com%26fields=name,account_type,description,email", | |
"pathVariables": {}, | |
"method": "GET", | |
"data": [], | |
"dataMode": "params", | |
"version": 2, | |
"tests": "", | |
"time": 1393368055491, | |
"name": "Get an Account - \"Burger Palace\"", | |
"description": "Let's retrieve the Account \"Burger Palace\"", | |
"collectionId": "025b4dba-0a22-5a8e-b4a1-31409b9d8f38", | |
"responses": [], | |
"synced": false | |
}, | |
{ | |
"id": "6d2f9770-8fe1-157a-2158-1055cc81486e", | |
"headers": "OAuth-Token: {{access_token}}\n", | |
"url": "{{url}}/rest/v10/Accounts/demo_burger_palace/link", | |
"pathVariables": {}, | |
"method": "POST", | |
"data": "{\n\t\"link_name\": \"contacts\",\n \"ids\": [\"demo_bob_burger\"]\n}", | |
"dataMode": "raw", | |
"version": 2, | |
"tests": "", | |
"time": 1392946922514, | |
"name": "Link an Account and a Contact", | |
"description": "Let's associate the Contact \"Bob Burger\" with the Account \"Burger Palace\"", | |
"collectionId": "025b4dba-0a22-5a8e-b4a1-31409b9d8f38", | |
"responses": [], | |
"synced": false | |
}, | |
{ | |
"id": "732a5c2a-b206-37f8-2e9b-b5569c9492a3", | |
"headers": "OAuth-Token: {{access_token}}\n", | |
"url": "{{url}}/rest/v10/Accounts?fields=name,account_type,description&max_num=5", | |
"pathVariables": {}, | |
"method": "GET", | |
"data": [], | |
"dataMode": "params", | |
"version": 2, | |
"tests": "", | |
"time": 1393355957791, | |
"name": "Get a list of Accounts", | |
"description": "Get a list of accounts by passing in the oauth-token header", | |
"collectionId": "025b4dba-0a22-5a8e-b4a1-31409b9d8f38", | |
"responses": [], | |
"synced": false | |
}, | |
{ | |
"id": "7491a1f5-7155-b15d-1ed6-3a8a7ce35755", | |
"headers": "OAuth-Token: {{access_token}}\n", | |
"url": "{{url}}/rest/v10/Contacts/demo_bob_burger", | |
"pathVariables": {}, | |
"method": "PUT", | |
"data": "{\n\n\t\"email\":[{\"email_address\":\"bob.burger@example.com\"}],\n \"description\":\"Bob Burger was updated\"\n}", | |
"dataMode": "raw", | |
"version": 2, | |
"tests": "", | |
"time": 1392946906610, | |
"name": "Update Bob Burger", | |
"description": "Let's update Bob Burger and add an email address for him", | |
"collectionId": "025b4dba-0a22-5a8e-b4a1-31409b9d8f38", | |
"responses": [], | |
"synced": false | |
}, | |
{ | |
"id": "bd3c644e-d851-89a8-fcf8-c859df41d67d", | |
"headers": "OAuth-Token: {{access_token}}\n", | |
"url": "{{url}}/rest/v10/Accounts?filter[0][name]=Burger Palace&fields=name,account_type,description,email", | |
"pathVariables": {}, | |
"method": "GET", | |
"data": [], | |
"dataMode": "params", | |
"version": 2, | |
"tests": "", | |
"time": 1393367729282, | |
"name": "Filter Accounts By Name - Burger Palace", | |
"description": "Filter your list by the account name \"Burger Palace\" ", | |
"collectionId": "025b4dba-0a22-5a8e-b4a1-31409b9d8f38", | |
"responses": [], | |
"synced": false | |
}, | |
{ | |
"id": "c4b90a30-630a-4fa1-ee9e-521111f9f53b", | |
"headers": "OAuth-Token: {{access_token}}\n", | |
"url": "{{url}}/rest/v10/Accounts/demo_burger_palace/link/contacts?filter[0][last_name][$starts]=b&filter[0][first_name][$starts]=b&filter[0][$favorite]=_this&fields=name,first_name,last_name,email,description", | |
"pathVariables": {}, | |
"method": "GET", | |
"data": [], | |
"dataMode": "params", | |
"version": 2, | |
"tests": "", | |
"time": 1393368514228, | |
"name": "Try Filtering By Favorite Again! ", | |
"description": "Now that we marked Bob Burger as a Favorite let's try filtering on our Contacts Related to Burger Palace again!", | |
"collectionId": "025b4dba-0a22-5a8e-b4a1-31409b9d8f38", | |
"responses": [], | |
"synced": false | |
}, | |
{ | |
"id": "d4cc6ae2-68f7-6464-e328-4625165bc90a", | |
"headers": "OAuth-Token: {{access_token}}\n", | |
"url": "{{url}}/rest/v10/Accounts", | |
"pathVariables": {}, | |
"method": "POST", | |
"data": "{\n \"id\":\"demo_burger_palace\",\n \"name\":\"Burger Palace\",\n \"account_type\":\"Customer\",\n \"description\":\"My Example Account\",\n \"email\":[{\"email_address\":\"burgers@example.com\"}]\n}", | |
"dataMode": "raw", | |
"version": 2, | |
"tests": "", | |
"time": 1393282870385, | |
"name": "Create a new Account - Burger Palace", | |
"description": "Create a new account using the REST API ", | |
"collectionId": "025b4dba-0a22-5a8e-b4a1-31409b9d8f38", | |
"responses": [], | |
"synced": false | |
}, | |
{ | |
"id": "e3b5a123-02c0-77ae-9bb2-7dd087392ead", | |
"headers": "OAuth-Token: {{access_token}}\n", | |
"url": "{{url}}/rest/v10/Contacts/demo_bob_burger/favorite", | |
"pathVariables": {}, | |
"method": "PUT", | |
"data": "", | |
"dataMode": "raw", | |
"version": 2, | |
"tests": "", | |
"time": 1392947000283, | |
"name": "Mark Bob Burger as a Favorite", | |
"description": "Let's mark Bob Burger as a favorite", | |
"collectionId": "025b4dba-0a22-5a8e-b4a1-31409b9d8f38", | |
"responses": [], | |
"synced": false | |
}, | |
{ | |
"id": "e3f43af8-5f87-b398-4f3a-4d0de30435ff", | |
"headers": "OAuth-Token: {{access_token}}\n", | |
"url": "{{url}}/rest/v10/Accounts/demo_burger_palace", | |
"pathVariables": {}, | |
"method": "DELETE", | |
"data": [], | |
"dataMode": "params", | |
"version": 2, | |
"tests": "", | |
"time": 1392947078516, | |
"name": "Delete the Account Burger Palace", | |
"description": "Delete the Account \"Burger Palace\"", | |
"collectionId": "025b4dba-0a22-5a8e-b4a1-31409b9d8f38", | |
"responses": [], | |
"synced": false | |
}, | |
{ | |
"id": "f79bf6a9-9a12-a398-4f8d-6d0a2cf8f05f", | |
"headers": "", | |
"url": "{{url}}/rest/v10/oauth2/token", | |
"pathVariables": {}, | |
"method": "POST", | |
"data": "{\n \"grant_type\":\"password\",\n \"client_id\":\"sugar\",\n \"client_secret\":\"\",\n \"username\":\"{{username}}\",\n \"password\":\"{{password}}\",\n \"platform\":\"base\"\n}", | |
"dataMode": "raw", | |
"version": 2, | |
"tests": "", | |
"time": 1393283305910, | |
"name": "Login/Authenticate", | |
"description": "**YOU NEED TO SETUP YOUR ENV**\n\nClick on Manage Enviornments and create a new Enviornemnt called SugarCRM. \n\nThen add the following four variables\n\nURL - the URL of your SugarCRM instance e.g. http://example/sugarcrm\n\nusername - your username e.g. admin\n\npassword - your password e.g. password\n\naccess_token - we will set that in a second\n\n**Now select the ENV you just setup **\n\nRequest to login to a SugarCRM 7 REST API using username/password\n\nNow click the \"Send\" button. \n\n** Finish Setup **\n\nIn the result you will see access_token (copy the value) go back to Manage Enviorment and select the SugarCRM enviornment (click the link) \n\nNow paste the access_token value\n", | |
"collectionId": "025b4dba-0a22-5a8e-b4a1-31409b9d8f38", | |
"responses": [], | |
"synced": false | |
}, | |
{ | |
"id": "ff7ef757-2033-9d4a-2804-715f5927b863", | |
"headers": "OAuth-Token: {{access_token}}\n", | |
"url": "{{url}}/rest/v10/Accounts?filter[0][name][$starts]=B&fields=name,account_type,description,email", | |
"pathVariables": {}, | |
"method": "GET", | |
"data": [], | |
"dataMode": "params", | |
"version": 2, | |
"tests": "", | |
"time": 1393367738909, | |
"name": "Filter Accounts Starting With B", | |
"description": "Filter your account list for only accounts starting with B", | |
"collectionId": "025b4dba-0a22-5a8e-b4a1-31409b9d8f38", | |
"responses": [], | |
"synced": false | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment