Skip to content

Commit 751e10a

Browse files
committed
EDU-2975: update of I310 collection for 2024 R2
1 parent 3f8b1f7 commit 751e10a

File tree

2 files changed

+63
-53
lines changed

2 files changed

+63
-53
lines changed

IntegrationDevelopment/Help/IntegrationDevelopmentGuide.postman_collection.json

Lines changed: 40 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"info": {
3-
"_postman_id": "20e302e5-33e0-4f1c-b7b1-13d83e1700df",
3+
"_postman_id": "545cc13f-aa62-40ac-8ebe-adb14122f027",
44
"name": "REST API Examples (Integration Development Guide)",
55
"description": "This collection contains examples from the [REST API Examples](https://help.acumatica.com/Help?ScreenId=ShowWiki&pageid=bbb8b84b-07d7-4a69-adf8-33dc5d430b60) chapter of the Integration Development Guide of Acumatica ERP.\n\n**Testing the Requests**\n\nTo test the examples, you configure this collection and the Acumatica ERP instance to be used as follows:\n\n- Deploy a new Acumatica ERP instance with three tenants that are based on the U100, SalesDemo, and T100 datasets. For details on deploying an instance, see [To Deploy an Acumatica ERP Instance](https://help.acumatica.com/Help?ScreenId=ShowWiki&pageid=b18ad378-0a8c-44f1-a14c-6b4f9c6271e4) in the Installation Guide.\n \n- Specify the base URL of the site in the _BaseURL_ variable of the collection.\n \n- Specify the instance URL in the _InstanceURL_ variable of the collection.\n \n- Make sure the URL of the Default/24.200.001 endpoint is in the _EndpointURL_ variable.\n \n- Make sure the URL of the MANUFACTURING/24.200.001 endpoint is in the _ManufacturingEndpointURL_ variable.\n \n- Specify the tenant name, branch, username, and password to access the tenant with the U100 data in the _TenantU100_, _BranchU100_, _UsernameU100_, and _PasswordU100_ variables.\n \n- Specify the tenant name, branch, username, and password to access the tenant with the T100 data in the _TenantT100_, _BranchT100_, _UsernameT100_, and _PasswordT100_ variables.\n \n- Specify the tenant name, branch, username, and password to access the tenant with the T100 data in the _TenantSalesDemo_, _BranchSalesDemo_, _UsernameSalesDemo_, and _PasswordSalesDemo_ variables.\n \n\nOther variables are used by particular requests and are specified during execution of other requests. You do not need to feel their values manually.",
66
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
@@ -672,16 +672,17 @@
672672
"listen": "prerequest",
673673
"script": {
674674
"exec": [
675-
"//Sign in to the tenant with U100 data\r",
675+
"//Sign in to the tenant with T100 data\r",
676676
"var url = pm.collectionVariables.get('InstanceURL');\r",
677-
"var username = pm.collectionVariables.get('UsernameU100');\r",
678-
"var password = pm.collectionVariables.get('PasswordU100');\r",
679-
"var tenant = pm.collectionVariables.get('TenantU100');\r",
680-
"var branch = pm.collectionVariables.get('BranchU100');\r",
677+
"var username = pm.collectionVariables.get('UsernameT100');\r",
678+
"var password = pm.collectionVariables.get('PasswordT100');\r",
679+
"var tenant = pm.collectionVariables.get('TenantT100');\r",
680+
"var branch = pm.collectionVariables.get('BranchT100');\r",
681681
"pm.acuFunc.singInFunction(pm, url, tenant, branch, username, password)\r",
682682
""
683683
],
684-
"type": "text/javascript"
684+
"type": "text/javascript",
685+
"packages": {}
685686
}
686687
},
687688
{
@@ -692,20 +693,21 @@
692693
"pm.test(\"Status code is 200\", function () {\r",
693694
" pm.response.to.have.status(200);\r",
694695
"});\r",
695-
"pm.test(\"InventoryID is APJAM08\", function (){\r",
696+
"pm.test(\"InventoryID is SIMCARD\", function (){\r",
696697
" const jsonResponse = pm.response.json();\r",
697-
" pm.expect(jsonResponse.InventoryID.value).to.eql('APJAM08');\r",
698+
" pm.expect(jsonResponse.InventoryID.value).to.eql('SIMCARD');\r",
698699
"});\r",
699700
"pm.test(\"Response includes one detail line\", function (){\r",
700701
" const jsonResponse = pm.response.json();\r",
701-
" pm.expect(jsonResponse.Results).to.have.lengthOf(2);\r",
702+
" pm.expect(jsonResponse.Results).to.have.lengthOf(1);\r",
702703
"});\r",
703704
"//Sign out and set the next request\r",
704705
"var url = pm.collectionVariables.get('InstanceURL');\r",
705706
"pm.acuFunc.singOutFunction(pm, url);\r",
706707
"pm.execution.setNextRequest(\"Retrieve the List of Records in Batches\");"
707708
],
708-
"type": "text/javascript"
709+
"type": "text/javascript",
710+
"packages": {}
709711
}
710712
}
711713
],
@@ -725,7 +727,7 @@
725727
],
726728
"body": {
727729
"mode": "raw",
728-
"raw": "{\r\n \"InventoryID\" : {\"value\" : \"APJAM08\" } ,\r\n \"WarehouseID\" : {\"value\" : \"RETAIL\" }\r\n}"
730+
"raw": "{\r\n \"InventoryID\" : {\"value\" : \"SIMCARD\" } ,\r\n \"WarehouseID\" : {\"value\" : \"YOGI\" }\r\n}"
729731
},
730732
"url": {
731733
"raw": "{{EndpointURL}}InventorySummaryInquiry?$expand=Results",
@@ -5133,23 +5135,25 @@
51335135
"pm.acuFunc.singOutFunction(pm, url);\r",
51345136
"pm.execution.setNextRequest(\"Update a Customer\");"
51355137
],
5136-
"type": "text/javascript"
5138+
"type": "text/javascript",
5139+
"packages": {}
51375140
}
51385141
},
51395142
{
51405143
"listen": "prerequest",
51415144
"script": {
51425145
"exec": [
5143-
"//Sign in to the tenant with U100 data\r",
5146+
"//Sign in to the tenant with T100 data\r",
51445147
"var url = pm.collectionVariables.get('InstanceURL');\r",
5145-
"var username = pm.collectionVariables.get('UsernameU100');\r",
5146-
"var password = pm.collectionVariables.get('PasswordU100');\r",
5147-
"var tenant = pm.collectionVariables.get('TenantU100');\r",
5148-
"var branch = pm.collectionVariables.get('BranchU100'); \r",
5148+
"var username = pm.collectionVariables.get('UsernameT100');\r",
5149+
"var password = pm.collectionVariables.get('PasswordT100');\r",
5150+
"var tenant = pm.collectionVariables.get('TenantT100');\r",
5151+
"var branch = pm.collectionVariables.get('BranchT100'); \r",
51495152
"pm.acuFunc.singInFunction(pm, url, tenant, branch, username, password)\r",
51505153
""
51515154
],
5152-
"type": "text/javascript"
5155+
"type": "text/javascript",
5156+
"packages": {}
51535157
}
51545158
}
51555159
],
@@ -5168,14 +5172,18 @@
51685172
}
51695173
],
51705174
"url": {
5171-
"raw": "{{EndpointURL}}Customer?$expand=MainContact,MainContact/Address",
5175+
"raw": "{{EndpointURL}}Customer?$expand=MainContact,MainContact/Address&$select=CustomerID,CustomerName,CustomerClass,MainContact/Email,MainContact/Phone1,MainContact/Address/AddressLine1,MainContact/Address/AddressLine2,MainContact/Address/City,MainContact/Address/State,MainContact/Address/PostalCode",
51725176
"host": [
51735177
"{{EndpointURL}}Customer"
51745178
],
51755179
"query": [
51765180
{
51775181
"key": "$expand",
51785182
"value": "MainContact,MainContact/Address"
5183+
},
5184+
{
5185+
"key": "$select",
5186+
"value": "CustomerID,CustomerName,CustomerClass,MainContact/Email,MainContact/Phone1,MainContact/Address/AddressLine1,MainContact/Address/AddressLine2,MainContact/Address/City,MainContact/Address/State,MainContact/Address/PostalCode"
51795187
}
51805188
]
51815189
},
@@ -6444,32 +6452,34 @@
64446452
"pm.test(\"Status code is 200\", function () {\r",
64456453
" pm.response.to.have.status(200);\r",
64466454
"});\r",
6447-
"pm.test(\"More than one detail is returned\", function (){\r",
6455+
"pm.test(\"One detail is returned\", function (){\r",
64486456
" const jsonResponse = pm.response.json();\r",
6449-
" pm.expect(jsonResponse.Results).length.to.be.greaterThan(1);\r",
6457+
" pm.expect(jsonResponse.Results).to.have.lengthOf(1);\r",
64506458
"});\r",
64516459
"//Sign out and set the next request\r",
64526460
"var url = pm.collectionVariables.get('InstanceURL');\r",
64536461
"pm.acuFunc.singOutFunction(pm, url);\r",
64546462
"pm.execution.setNextRequest(\"Create an Invoice with Tax Parameters Overridden\");"
64556463
],
6456-
"type": "text/javascript"
6464+
"type": "text/javascript",
6465+
"packages": {}
64576466
}
64586467
},
64596468
{
64606469
"listen": "prerequest",
64616470
"script": {
64626471
"exec": [
6463-
"//Sign in to the tenant with U100 data\r",
6472+
"//Sign in to the tenant with T100 data\r",
64646473
"var url = pm.collectionVariables.get('InstanceURL');\r",
6465-
"var username = pm.collectionVariables.get('UsernameU100');\r",
6466-
"var password = pm.collectionVariables.get('PasswordU100');\r",
6467-
"var tenant = pm.collectionVariables.get('TenantU100');\r",
6468-
"var branch = pm.collectionVariables.get('BranchU100'); \r",
6474+
"var username = pm.collectionVariables.get('UsernameT100');\r",
6475+
"var password = pm.collectionVariables.get('PasswordT100');\r",
6476+
"var tenant = pm.collectionVariables.get('TenantT100');\r",
6477+
"var branch = pm.collectionVariables.get('BranchT100'); \r",
64696478
"pm.acuFunc.singInFunction(pm, url, tenant, branch, username, password)\r",
64706479
""
64716480
],
6472-
"type": "text/javascript"
6481+
"type": "text/javascript",
6482+
"packages": {}
64736483
}
64746484
}
64756485
],
@@ -6489,7 +6499,7 @@
64896499
],
64906500
"body": {
64916501
"mode": "raw",
6492-
"raw": "{\r\n \"InventoryID\": { \"value\": \"APJAM08\" }\r\n}"
6502+
"raw": "{\r\n \"InventoryID\": { \"value\": \"SIMCARD\" }\r\n}"
64936503
},
64946504
"url": {
64956505
"raw": "{{EndpointURL}}InventorySummaryInquiry?$expand=Results",

IntegrationDevelopment/I310/REST.postman_collection.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
},
88
"item": [
99
{
10-
"name": "Part 1: Client Application Configuration",
10+
"name": "Part 1: Getting Started with the REST API",
1111
"item": [
1212
{
13-
"name": "Lesson 1.1: Signing In to Acumatica ERP",
13+
"name": "Activity 1.2.1: To Sign In to Acumatica ERP",
1414
"event": [
1515
{
1616
"listen": "test",
@@ -25,7 +25,7 @@
2525
"pm.test(\".ASP.NET_SessionId recieved\", function () {\r",
2626
" pm.expect(pm.cookies.indexOf('.ASP.NET_SessionId')).to.be.not.null;\r",
2727
"});\r",
28-
"postman.setNextRequest(\"Lesson 2.1: Retrieving the List of Customers with Contacts\");"
28+
"pm.execution.setNextRequest(\"Lesson 2.1: Retrieving the List of Customers with Contacts\");"
2929
],
3030
"type": "text/javascript",
3131
"packages": {}
@@ -65,7 +65,7 @@
6565
"response": []
6666
},
6767
{
68-
"name": "Lesson 1.1: Signing Out from Acumatica ERP",
68+
"name": "Activity 1.2.2: To Sign Out from Acumatica ERP",
6969
"event": [
7070
{
7171
"listen": "test",
@@ -80,9 +80,10 @@
8080
"pm.test(\".ASP.NET_SessionId not recieved\", function () {\r",
8181
" pm.expect(pm.cookies.indexOf('.ASP.NET_SessionId')).to.be.eql(-1);\r",
8282
"});\r",
83-
"postman.setNextRequest(null);"
83+
"pm.execution.setNextRequest(null);"
8484
],
85-
"type": "text/javascript"
85+
"type": "text/javascript",
86+
"packages": {}
8687
}
8788
}
8889
],
@@ -92,12 +93,14 @@
9293
{
9394
"key": "Accept",
9495
"value": "application/json",
95-
"type": "text"
96+
"type": "text",
97+
"disabled": true
9698
},
9799
{
98100
"key": "Content-Type",
99101
"value": "application/json",
100-
"type": "text"
102+
"type": "text",
103+
"disabled": true
101104
}
102105
],
103106
"body": {
@@ -121,10 +124,10 @@
121124
]
122125
},
123126
{
124-
"name": "Part 2: Initial Data Retrieval",
127+
"name": "Part 2: Data Retrieval",
125128
"item": [
126129
{
127-
"name": "Lesson 2.1: Retrieving the List of Customers with Contacts",
130+
"name": "Activity 2.1.1: To Retrieve the List of Customers with Contacts",
128131
"event": [
129132
{
130133
"listen": "test",
@@ -137,9 +140,10 @@
137140
" const jsonResponse = pm.response.json();\r",
138141
" pm.expect(jsonResponse).to.be.not.empty;\r",
139142
"});\r",
140-
"postman.setNextRequest(\"Lesson 2.2: Retrieving the Quantities of Stock Items\");"
143+
"pm.execution.setNextRequest(\"Lesson 2.2: Retrieving the Quantities of Stock Items\");"
141144
],
142-
"type": "text/javascript"
145+
"type": "text/javascript",
146+
"packages": {}
143147
}
144148
}
145149
],
@@ -154,7 +158,8 @@
154158
{
155159
"key": "Content-Type",
156160
"value": "application/json",
157-
"type": "text"
161+
"type": "text",
162+
"disabled": true
158163
}
159164
],
160165
"url": {
@@ -180,7 +185,7 @@
180185
"response": []
181186
},
182187
{
183-
"name": "Lesson 2.2: Retrieving the Quantities of Stock Items",
188+
"name": "Activity 2.2.1: To Retrieve the Quantities of Stock Items",
184189
"event": [
185190
{
186191
"listen": "test",
@@ -193,7 +198,7 @@
193198
" const jsonResponse = pm.response.json();\r",
194199
" pm.expect(jsonResponse.ItemAvailabilityDataInquiryDetails).to.be.not.empty;\r",
195200
"});\r",
196-
"postman.setNextRequest(\"Lesson 3.1: Retrieving the List of Modified Stock Items\");"
201+
"pm.execution.setNextRequest(\"Lesson 3.1: Retrieving the List of Modified Stock Items\");"
197202
],
198203
"type": "text/javascript"
199204
}
@@ -237,14 +242,9 @@
237242
}
238243
},
239244
"response": []
240-
}
241-
]
242-
},
243-
{
244-
"name": "Part 3: Retrieval of the Delta of Records",
245-
"item": [
245+
},
246246
{
247-
"name": "Lesson 3.1: Retrieving the List of Modified Stock Items",
247+
"name": "Activity 2.3.1: To Retrieve the List of Modified Stock Items",
248248
"event": [
249249
{
250250
"listen": "test",
@@ -259,7 +259,7 @@
259259
"pm.test(\"Response does not contain AACOMPUT01\", function () {\r",
260260
" pm.expect(pm.response.text()).to.not.include(\"AACOMPUT01\");\r",
261261
"});\r",
262-
"postman.setNextRequest(\"Lesson 1.1: Signing Out from Acumatica ERP\");"
262+
"pm.execution.setNextRequest(\"Lesson 1.1: Signing Out from Acumatica ERP\");"
263263
],
264264
"type": "text/javascript"
265265
}

0 commit comments

Comments
 (0)