Using Postman
Using Postman
Using Postman
Version 8.0
This documentation is provided under restrictions on use and are protected by intellectual property laws. Except as
expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate,
broadcast, modify, license, transmit, distribute, exhibit, perform, publish or display any part, in any form, or by any
means. Reverse engineering, disassembly, or decompilation of this documentation, unless required by law for
interoperability, is prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If you
find any errors, please report them to us in writing.
Table of Contents
Using Postman 4
Working with requests in Postman 4
Adding a request 4
Setting up the request 6
Executing the request 8
Saving the request 8
Working with request collections in Postman 9
Adding a collection of requests 9
Adding requests to the collection 11
Setting up variables for the request collection 12
Executing the collection of requests 13
Using Postman
Medium
Postman is a toolset for API testing. It is a development environment that lets you create, test, manage, and
publish API documentation.
Adding a request
A collection of requests lets you execute several requests consecutively. Any collection of requests to Creatio
must include a POST request to AuthService.svc and a user request for working with data. Using collections
facilitates faster testing of large sets of requests.
Working with collections of requests in Postman consists of the following general stages:
We recommend using Postman for testing queries when developing integrations with Creatio via OData 3 or
OData 4. More information about working with Postman is available in the Postman documentation.
Adding a request
There are two ways of adding a request in Postman:
Open the [ Create New ] tab, then in the [ Building blocks ] click [ New ] –> [ Request ].
[ Search for a collection or Search for an earlier created collection of requests, or create a new
folder ] one.
Populate the fields and click [ Save ]. The button becomes active only after the [ Search for a collection or folder ]
field is populated.
3. Set the data format of the request. Go to the [ Body ] tab, select the “ raw ” option and JSON type.
Headers
Accept: application/json
Content-Type: application/json; charset=utf-8
ForceUseSession: true
We recommend using Postman for testing queries when developing integrations with Creatio via OData.
Click [ New ] –> [ Collection ] in the [ Building blocks ] of the [ Create new ] tab.
Click [ Create ].
Right-click the name of an earlier created collection, then click [ Add Request ].
Variable values in the [ Initial value ] and [ Current value ] must be duplicated.
Variable values in the [ Initial value ] and [ Current value ] must be duplicated.
3. In the [ Run order ] block, select requests to run and set their order (1).
Click [ View ] –> [ Show Postman Console ] or press [ Alt+Ctrl+C ] on the keyboard.