Response Data and Cookies
After sending a request in DocStar, the Response section displays the API’s response, helping you analyze its status, body, headers, and cookies.
Viewing Response Data
Once a request is sent, TechDoc provides a structured view of the response:
1. Status Code – Indicates whether the request was successful
2. Response Body – Displays the returned data in JSON, XML, or raw text format.
3. Headers – Shows metadata about the response, such as content type and caching policies.
Managing Cookies in DocStar
Cookies play an important role in API authentication, session management, and state tracking. DocStar provides a Cookies section where you can view, add, and manage cookies associated with your requests.
1. Viewing Cookies
When an API response includes cookies, DocStar captures and displays them in the Cookies section.
2. Adding Cookies
DocStar allows users to manually add cookies for a specific domain.
To add a cookie:
Go to the Cookies section.
Enter the domain where the cookie should be applied.
Click the Add button to create a new cookie entry.
Define the cookie name, value, and any additional properties.
.png)
3. Editing & Deleting Cookies
You can modify existing cookies to test different authentication or session behaviors.
Unwanted cookies can be deleted to reset API interactions
Enhancing API Testing with Response Data & Cookies
By analyzing response data and managing cookies effectively, DocStar allows you to:
✅ Identify API errors and troubleshoot issues.
✅ Test authentication mechanisms that rely on session cookies.
✅ Simulate different user states by modifying cookies.
DocStar ensures that handling response data and cookies is both efficient and user-friendly, making API testing smoother and more insightful. 🚀