Postman Collection for Endora API
Test and manage your Endora API endpoints with Postman's powerful testing capabilities. Our ready-to-use collection makes API testing simple and efficient.
What You'll Learn
- Export Postman collections
- Test all API endpoints
- Share collections with your team
Learn how to use Postman to test and manage your Endora API endpoints.
Getting Started
What is Postman?
Postman is a powerful API testing tool that allows you to:
- Test APIs: Send requests and view responses
- Organize Requests: Group related endpoints
- Automate Testing: Create test scripts and collections
- Share APIs: Collaborate with your team
- Document APIs: Generate documentation automatically
Why Use Postman with Endora?
- Ready-to-Use Collections: Pre-configured requests for all endpoints
- Environment Management: Easy switching between development and production
- Automated Testing: Built-in test scripts for validation
- Team Collaboration: Share collections with your development team
Exporting Your Collection
From Endora Dashboard
- Navigate to API Docs: Go to your project's API documentation
- Click Download: Find the "Download for Postman" button
- Download Collection: Save the JSON file to your computer
- Import to Postman: Use the file to import the collection
Importing the Collection
Step-by-Step Import
- Open Postman: Launch the Postman application
- Click Import: Use the "Import" button in the top-left corner
- Choose File: Select your downloaded collection JSON file
- Import Collection: Click "Import" to add the collection
- Verify Import: Check that all endpoints are available
Collection Structure
After importing, you'll see organized folders:
Endora API Collection
├── Authentication
│ ├── Login
│ └── Refresh Token
├── Users
│ ├── Get All Users
│ ├── Create User
│ ├── Get User by ID
│ ├── Update User
│ └── Delete User
├── Products
│ ├── Get All Products
│ ├── Create Product
│ └── Update Product
└── Orders
├── Get All Orders
└── Create Order
Collection Import
Learn how to import your Endora API collection into Postman.
Testing Your API
Basic API Testing
- Select Request: Choose an endpoint from your collection
- Check Headers: Verify authentication headers are set
- Send Request: Click "Send" to execute the request
- View Response: Check the response status and data
- Validate Results: Ensure the response matches expectations
Automated Testing
Test Scripts
Add automated tests to your requests:
// Test response status
pm.test("Status code is 200", function () {
pm.response.to.have.status(200);
});
// Test response time
pm.test("Response time is less than 2000ms", function () {
pm.expect(pm.response.responseTime).to.be.below(2000);
});
// Test response data
pm.test("Response has required fields", function () {
const jsonData = pm.response.json();
pm.expect(jsonData).to.have.property('id');
pm.expect(jsonData).to.have.property('name');
});
Collection Runner
Run all tests in your collection:
- Open Collection Runner: Click "Run" on your collection
- Select Tests: Choose which tests to run
- Configure Settings: Set iterations and delays
- Run Tests: Execute all tests automatically
- View Results: Check test results and failures
Team Collaboration
Sharing Collections
- Export Collection: Save your collection as a JSON file
- Share File: Send the file to team members
- Import Collection: Team members import the collection
- Sync Changes: Update and share changes as needed
Postman Workspaces
- Personal Workspace: Your private testing environment
- Team Workspace: Shared workspace for your team
- Public Workspace: Share collections publicly
- Enterprise Workspace: Advanced collaboration features
Learn how to share collections and collaborate with your development team.
Advanced Features
Newman CLI
Run Postman collections from the command line:
# Install Newman
npm install -g newman
# Run collection
newman run collection.json -e environment.json
# Run with reporting
newman run collection.json -e environment.json -r html
CI/CD Integration
Integrate Postman tests into your deployment pipeline:
# GitHub Actions example
- name: Run Postman Tests
run: |
npm install -g newman
newman run collection.json -e environment.json
Best Practices
Collection Organization
- Group Related Endpoints: Organize by functionality
- Use Descriptive Names: Clear, meaningful request names
- Add Documentation: Include descriptions and examples
- Version Control: Track changes to your collections
Testing Strategy
- Test Happy Paths: Verify successful operations
- Test Error Cases: Validate error handling
- Test Edge Cases: Check boundary conditions
- Performance Testing: Monitor response times
Next Steps
Now that you have Postman set up:
- Test All Endpoints: Verify every API endpoint works correctly
- Create Test Scripts: Add automated validation
- Share with Team: Collaborate on API testing
- Integrate with CI/CD: Automate your testing pipeline
Your API testing is now professional and efficient!