The odoo Rest API module allow us to connect to database with the help of GET ,POST ,PUT and DELETE request.
Key Highlights
Api Key Generation
This module Api key generation using database authentication.
Create Records
Can create records for the models we want to access.
Methods
This module Choose specific methods like GET, POST etc.
Create & Updates
Create and update records from database.
Delete
This module Choose DELETE method to delete records.
Before installing the module, Add
"server_wide_modules = web, base,
rest_api_odoo" to odoo.conf file. This
configuration enables the server to handle
requests without requiring database
selection. Once this is done, you can
proceed to
install the module.
Note: If you need to uninstall
the module, ensure you remove this parameter
from the configuration file.
In the extracted module folder, locate the Postman collections file in JSON format.
To find the generated API Key for the current user, navigate to Settings > Users & Companies > Users, open the user's form view, and go to the API tab. The API Key will be displayed there.
Navigate to Rest API in Rest API module and create new record. Select the model and the HTTP methods. The chosen methods will determine the allowed actions on the records, and the API response will reflect the changes made.
Open Get records api collection in postman
and add the db, login, password, api-key in
the headers. Pass the model
(e.g., product.template) in the URL to
retrieve records for that model.
Note:
Make sure that GET method is enabled for product.template model in Rest API record.
To retrieve a specific record, pass the ID in the URL (e.g., http://localhost:8027/send_request?model=product.template&Id=28) and click Send.
Open Create Records from Rest API Collection. Add db, api-key, login and password under Headers. Update the Base Url.
Note: Make sure that POST method is enabled for the selected model in Rest API record.
Open Update Records from Rest API Collection. Add db, api-key, login and password under Headers. Update the Base Url. Note: Make sure that PUT method is enabled for the selected model in Rest API record.
Open Delete Records from Rest API Collection. Add db, api-key, login and password under Headers. Update the Base Url. Add the model and the id of the record to delete and click Send. Note: Make sure that DELETE method is enabled for the selected model in Rest API record.
Initial Commit for Odoo rest API.
Related Products
Our Services
Odoo Customization
Odoo Implementation
Odoo Support
Hire Odoo Developer
Odoo Integration
Odoo Migration
Odoo Consultancy
Odoo Implementation
Odoo Licensing Consultancy
Our Industries
Trading
Easily procure and sell your products
POS
Easy configuration and convivial experience
Education
A platform for educational management
Manufacturing
Plan, track and schedule your operations
E-commerce & Website
Mobile friendly, awe-inspiring product pages
Service Management
Keep track of services and invoice
Restaurant
Run your bar or restaurant methodically
Hotel Management
An all-inclusive hotel management application
Support
Got questions or need help? Get in touch.
Say hi to us on WhatsApp!