Skip to main content

Collections

What is a collection in Sparrow?

A collection in Sparrow is a logical grouping of API and WebSocket requests that helps organize related requests in a single, accessible location.

Why should I use collections in Sparrow?

Collections help structure workflows by grouping related API or WebSocket requests, making it easier to manage, navigate, and handle different segments of an API or WebSocket.

Can collections be used for specific workflows?

Yes, collections are often tailored to specific workflows, such as user authentication or data retrieval, improving focus and efficiency in development.

How do collections aid in documentation?

Collections allow you to annotate requests with descriptions and explanations, helping developers understand the purpose and use of each endpoint within the collection.

What types of requests can I include in a collection?

You can include various API requests, such as GET, POST, PUT, PATCH, DELETE, and WebSocket requests in a collection.

How do I create a new collection in Sparrow?

Click “Create Empty Collection” in the collection section, which will generate a blank collection that you can populate with API requests.

Can I create folders within a collection?

Yes, Sparrow allows you to create folders within a collection to better organize different types of API calls or separate stages of a workflow.

How do I rename a collection?

You can rename a collection by right-clicking on it or using the more options menu and selecting "Rename Collection."

How do I delete a collection in Sparrow?

Right-click on the collection or use the more options menu to select "Delete," which will remove the collection and all its contents.

Can I organize requests within a collection?

Yes, you can organize requests within a collection by adding folders, renaming them, and categorizing different types of API requests.

How can I import a collection in Sparrow?

You can import a collection by using the “Import Collection” option, where you can paste an OpenAPI Specification (OAS), upload a file, or import from Postman.

What file types can I upload to import a collection?

You can upload YAML or JSON files containing API specifications to import collections in Sparrow.

Can I import collections from Postman?

Yes, Sparrow supports importing collections from Postman (version 2.1), allowing seamless migration of work from Postman to Sparrow.

What is the benefit of importing collections?

Importing collections allows you to quickly set up your API testing environment with pre-existing specifications, saving time and effort in creating requests from scratch.

How do I add a new request to a collection?

You can add a new request by selecting the collection and using the "Add Request" option to create a customized API request with headers, parameters, and body data.

Can I set environment variables in requests?

Yes, you can set environment variables directly within the request setup, making it easier to switch between different stages like development and production.

How do I add authentication to a request?

While adding a request, you can specify the required authentication method within the request setup, ensuring secure API interactions.

Can I rename requests within a collection?

Yes, requests can be renamed by selecting them and modifying their names to better reflect their purpose within the workflow.

How do I delete a request from a collection?

To delete a request, right-click on the request or use the more options menu and select "Delete."

What is the purpose of folders within a collection?

Folders help further organize requests by grouping similar API calls or stages of a workflow, such as separating authentication and data retrieval requests.

How do I add a folder to a collection?

Right-click on a collection or use the more options menu to select "Add Folder," and name the folder based on its content or purpose.

Can I rename folders in a collection?

Yes, you can rename folders within a collection by right-clicking on them or using the more options menu.

Can I delete a folder from a collection?

Yes, folders can be deleted by selecting the "Delete" option, which will remove the folder and all its contents from the collection.

How do folders help with organizing large collections?

Folders provide a way to logically divide and manage large numbers of API requests, making navigation and maintenance easier within the collection.

What are variables in Sparrow collections?

Variables in Sparrow collections store reusable values that can be applied across multiple requests, reducing redundancy and improving consistency.

How do I use variables within a collection?

You can define variables in your requests and refer to them in headers, parameters, or the body of API requests, making it easier to manage changes across requests.

What are environments in Sparrow collections?

Environments allow you to define sets of variables specific to different stages of deployment, such as development, testing, or production.

How do environments work in collections?

You can switch between environments to automatically apply the correct set of variables for each deployment stage, making it easier to test APIs in different scenarios.

Why are variables and environments important in API development?

Variables and environments streamline API testing by allowing developers to reuse values and apply different configurations depending on the stage of development, enhancing efficiency and reducing errors.