Understand the Postman Collection hierarchy
developPostman Collections are organized in a hierarchical structure. At the top level is a Collection, which contains an information block and an array of items. These items can be either Items (the basic building block representing an HTTP request) or ItemGroups (folders used to containerize other Items or ItemGroups).
Hierarchy Summary:
- Collection: The root container. Contains
informationanditems. - ItemGroup (Folder): A container for
Items or otherItemGroups. - Item: Represents an HTTP request and its metadata. Can contain
responses andevents. - Request: The actual HTTP definition (URL, method, headers, body, auth) usually contained within an
Item. - Events: Scripts associated with an
Itemthat run at specific lifecycle stages (e.g.,prerequestortest).