Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
4517 Näkymät

Hello,

I want to know if there is an endpoint provided by Odoo to post data when writing an external api.

Thanks.

Avatar
Hylkää
Paras vastaus

Hi,

No, Odoo itself doesn't provide a single endpoint for posting data through an external API when you're developing a custom integration. However, Odoo offers functionalities to achieve this through its XML-RPC API.


XML-RPC API: This is the primary method for interacting with Odoo data from external applications or custom modules. It utilizes XML messages for data exchange and Remote Procedure Calls (RPC) to execute methods on the Odoo server.XML-RPC Endpoints: Odoo exposes several XML-RPC endpoints for different functionalities. The relevant ones for your case are:    1. /xmlrpc/2/common: This endpoint is used for general functionalities like authentication and obtaining server information.    2./xmlrpc/2/object: This endpoint allows you to interact with specific Odoo models and their methods. You can use this endpoint to create, update, or delete data within your Odoo database.

Hope it helps.

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
elok. 25
331
1
elok. 25
607
2
heinäk. 25
3060
3
heinäk. 25
761
7
heinäk. 25
20158