Postman Collections
API Synchronization Module Collection
Download the pre-configured Postman collection for testing the API Synchronization Module endpoints.
📦 Download Postman Collection
What's Included
The collection includes:
Authentication Examples
- No Authentication (public endpoints)
- Basic Authentication (username/password)
- Bearer Token Authentication
Partner API Endpoints
- GET all partners
- GET single partner by ID
- POST create new partner
- PUT update existing partner
- DELETE remove partner
Generic Endpoints
- Configurable endpoint examples
- Custom field mapping templates
Error Scenarios
- 401 Unauthorized
- 404 Not Found
- 405 Method Not Allowed
- 400 Bad Request
Environment Variables
Configure these variables in your Postman environment:
Variable | Default Value | Description |
---|---|---|
base_url | http://localhost:8069 | Your Odoo instance URL |
bearer_token | (empty) | Your API bearer token |
basic_auth_user | admin | Basic auth username |
basic_auth_password | admin | Basic auth password |
endpoint_name | partners | Your configured endpoint name |
How to Import
- Download the collection file above
- Open Postman
- Click Import in the top left
- Select the downloaded JSON file
- Configure your environment variables
- Start testing!
Testing Tips
1. Set Up Authentication
First, configure your authentication method in the Odoo API configuration and update the corresponding Postman environment variables.
2. Test Connection
Start with a simple GET request to verify your connection and authentication are working.
3. Create Test Data
Use the POST endpoints to create test records, then verify with GET requests.
4. Test Error Handling
Use the error scenario examples to ensure your API configuration handles errors gracefully.
Pre-request Scripts
The collection includes pre-request scripts that:
- Log request details for debugging
- Set dynamic timestamps
- Handle authentication tokens
Test Scripts
Automated tests validate:
- Response status codes
- JSON response format
- Response time performance
- Required fields presence
Support
If you encounter issues with the Postman collection:
- Verify your Odoo instance is running
- Check your authentication credentials
- Ensure the API endpoints are configured in Odoo
- Review the API Reference documentation
For additional support, contact support@bjetpro.com