Api Rest Pragmatic
by Pragmatic Ingeniería S.A.S. Soluciones integrales Tic para las Pyme. https://www.pragmaticingenieria.com/| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 1934 |
| Technical Name |
api_rest_pragmatic |
| License | AGPL-3 |
| Website | https://www.pragmaticingenieria.com/ |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 1934 |
| Technical Name |
api_rest_pragmatic |
| License | AGPL-3 |
| Website | https://www.pragmaticingenieria.com/ |
🚀 Rest Api Pragmatic
Complete REST API solution for Odoo 18 with OpenAPI/Swagger documentation, advanced ORM methods, and enterprise-grade security.
✨ Key Features
🔐 Secure Authentication
Token-based authentication with namespace isolation and user-specific access control.
📖 OpenAPI Documentation
Auto-generated API documentation with Swagger UI for easy integration and testing.
🎯 Full CRUD Operations
Complete Create, Read, Update, Delete operations for all configured models.
🔄 Advanced ORM Methods
Nested field reading, external ID management, and custom method calling.
📊 Comprehensive Logging
Detailed request/response logging with configurable levels for debugging.
🛡️ Namespace Isolation
Multiple API integrations with isolated configurations and permissions.
🚦 Quick Start
1. Configure Namespace
Create a new API namespace from the API Configuration menu:
2. Configure Model Access
Define which models can be accessed and what operations are allowed:
3. Get Your API Token
Find your API token in your user preferences:
4. Make Your First API Call
📚 API Endpoints
CRUD Operations
- GET /api/v1/{namespace}/{model} - List records
- GET /api/v1/{namespace}/{model}/{id} - Get single record
- POST /api/v1/{namespace}/{model} - Create record
- PUT /api/v1/{namespace}/{model}/{id} - Update record
- DELETE /api/v1/{namespace}/{model}/{id} - Delete record
Custom Methods
- PATCH /api/v1/{namespace}/{model}/call/{method} - Call model method
- PATCH /api/v1/{namespace}/{model}/{id}/call/{method} - Call record method
Reports
- GET /api/v1/{namespace}/report/pdf/{report_id}/{doc_ids} - Get PDF report
- GET /api/v1/{namespace}/report/html/{report_id}/{doc_ids} - Get HTML report
🛠️ Advanced Features
Nested Field Reading
Read related fields in a single API call:
External ID Management
Create and update records using external identifiers:
Method Whitelisting
Control which methods can be called via API with fine-grained permissions for public and private methods.
🔧 Technical Specifications
- ✅ Compatible with Odoo 18.0
- ✅ Follows OWL/QWeb modern conventions
- ✅ PEP8 compliant code
- ✅ Complete test coverage
- ✅ Optimized for performance
- ✅ Support for parallel query execution
- ✅ Transaction isolation for read operations
Please log in to comment on this module