SlideShare a Scribd company logo
API REST Odoo
Angel Moya http://domatix.com
Qué es OdooREST
Angel Moya http://domatix.com
OdooREST
Odoo Cliente web
Cliente Apps
Por qué OdooREST
Angel Moya http://domatix.com
● REST vs XML-RPC / Json-RPC
● Requisito cliente para uso en
java - android
● HTTP
● Simple y legible
● Otras empresas implicadas
Qué es REST
Angel Moya http://domatix.com
● REST, REpresentational State Transfer
● Arquitectura desarrollo web que se
apoya totalmente en el estándar HTTP
● REST vs XML-RPC
Leer: GET
Angel Moya http://domatix.com
● http://127.0.0.1:5000/res_partner
● http://127.0.0.1:5000/res_partner/7?fields=all
● http://127.0.0.1:5000/res_partner/7?fields=[‘name’,’mobile’]
● http://127.0.0.1:5000/res_partner?fields=all&domain=[(‘country_id’,’!=’,’
235’)]
● limit
● offset
● context
Crear: PUT
Angel Moya http://domatix.com
● $ curl -H "Content-Type: application/json" --
user admin:admin http://localhost:
81/res_users/5 -d '{"name":"test34"}' -X PUT
-v
Escribir: POST
Angel Moya http://domatix.com
● $ curl -H "Content-Type: application/json" --
user admin:admin http://127.0.0.1:
5000/res_users -d '{"name":"test"}' -X POST -
v
Eliminar: DELETE
Angel Moya http://domatix.com
● $ curl --user admin:admin http://localhost:
81/res_users/5 -X DELETE -v
El proyecto
Angel Moya http://domatix.com
https://gitlab.com/domatix/odoo-rest
● Basado en Flask y odoorpc
● WSGI, Web Server Gateway Interface
● CoC, Convention over Configuration
● KISS, Keep It Simple, Stupid
Instalación
Angel Moya http://domatix.com
● git clone https://gitlab.com/domatix/odoo-rest.git
config.py● config.py.
sample
common/resources● common/resources.sample
● sudo pip install -r requeriments.txt
● python odoo_rest.py
● Ejemplo resource...
Angel Moya http://domatix.com
from ..odoo_resource import OdooResource
from ..tools import api
class ResUsers(OdooResource):
odoo_model = 'res.users'
odoo_fields = [
'id',
'create_date',
'write_date',
'login',
'name',
'active'
]
class ResUsersList(ResUsers):
pass
api.add_resource(ResUsersList, '/res_users')
api.add_resource(ResUsers, '/res_users/<res_id>')
Dudas
Angel Moya http://domatix.com

More Related Content

Viewers also liked

Contabilidad práctica odoo prorrata, 340, libro de iva,, intrastat, criterio ...
Contabilidad práctica odoo prorrata, 340, libro de iva,, intrastat, criterio ...Contabilidad práctica odoo prorrata, 340, libro de iva,, intrastat, criterio ...
Contabilidad práctica odoo prorrata, 340, libro de iva,, intrastat, criterio ...
Albert Cabedo Pla
 
Jornadas Odoo 2016 - Cómo realizar un módulo de Odoo compatible con todo - Pe...
Jornadas Odoo 2016 - Cómo realizar un módulo de Odoo compatible con todo - Pe...Jornadas Odoo 2016 - Cómo realizar un módulo de Odoo compatible con todo - Pe...
Jornadas Odoo 2016 - Cómo realizar un módulo de Odoo compatible con todo - Pe...
Pedro Manuel Baeza Romero
 
BaseTIS - caso de éxito gestión personal con Odoo
BaseTIS - caso de éxito gestión personal con OdooBaseTIS - caso de éxito gestión personal con Odoo
BaseTIS - caso de éxito gestión personal con Odoo
BaseTIS
 
Develop a connector on any apps using Odoo-connector
Develop a connector on any apps using Odoo-connectorDevelop a connector on any apps using Odoo-connector
Develop a connector on any apps using Odoo-connector
odoohub
 
Guia de ejercicios concentracion aplicados 2015 med odo-vet
Guia de ejercicios concentracion aplicados 2015 med odo-vetGuia de ejercicios concentracion aplicados 2015 med odo-vet
Guia de ejercicios concentracion aplicados 2015 med odo-vet
koalita
 
Why vREST?
Why vREST?Why vREST?
Why vREST?
vrest_io
 
E-commerce: the new Magento - OpenERP Connector: a generic connector to any a...
E-commerce: the new Magento - OpenERP Connector: a generic connector to any a...E-commerce: the new Magento - OpenERP Connector: a generic connector to any a...
E-commerce: the new Magento - OpenERP Connector: a generic connector to any a...
Odoo
 
Conectores con tiendas online | Factor Libre
Conectores con tiendas online | Factor LibreConectores con tiendas online | Factor Libre
Conectores con tiendas online | Factor Libre
Domatix
 
Gestión de contratos de mantenimiento SAT Domatix
Gestión de contratos de mantenimiento SAT DomatixGestión de contratos de mantenimiento SAT Domatix
Gestión de contratos de mantenimiento SAT Domatix
Domatix
 
Nuevos modelos y cambios fiscales para el 2014
Nuevos modelos y cambios fiscales para el 2014Nuevos modelos y cambios fiscales para el 2014
Nuevos modelos y cambios fiscales para el 2014
Domatix
 
Webservices Overview : XML RPC, SOAP and REST
Webservices Overview : XML RPC, SOAP and RESTWebservices Overview : XML RPC, SOAP and REST
Webservices Overview : XML RPC, SOAP and REST
Pradeep Kumar
 
Presentacion TPV OpenERP
Presentacion TPV OpenERPPresentacion TPV OpenERP
Presentacion TPV OpenERP
Domatix
 

Viewers also liked (12)

Contabilidad práctica odoo prorrata, 340, libro de iva,, intrastat, criterio ...
Contabilidad práctica odoo prorrata, 340, libro de iva,, intrastat, criterio ...Contabilidad práctica odoo prorrata, 340, libro de iva,, intrastat, criterio ...
Contabilidad práctica odoo prorrata, 340, libro de iva,, intrastat, criterio ...
 
Jornadas Odoo 2016 - Cómo realizar un módulo de Odoo compatible con todo - Pe...
Jornadas Odoo 2016 - Cómo realizar un módulo de Odoo compatible con todo - Pe...Jornadas Odoo 2016 - Cómo realizar un módulo de Odoo compatible con todo - Pe...
Jornadas Odoo 2016 - Cómo realizar un módulo de Odoo compatible con todo - Pe...
 
BaseTIS - caso de éxito gestión personal con Odoo
BaseTIS - caso de éxito gestión personal con OdooBaseTIS - caso de éxito gestión personal con Odoo
BaseTIS - caso de éxito gestión personal con Odoo
 
Develop a connector on any apps using Odoo-connector
Develop a connector on any apps using Odoo-connectorDevelop a connector on any apps using Odoo-connector
Develop a connector on any apps using Odoo-connector
 
Guia de ejercicios concentracion aplicados 2015 med odo-vet
Guia de ejercicios concentracion aplicados 2015 med odo-vetGuia de ejercicios concentracion aplicados 2015 med odo-vet
Guia de ejercicios concentracion aplicados 2015 med odo-vet
 
Why vREST?
Why vREST?Why vREST?
Why vREST?
 
E-commerce: the new Magento - OpenERP Connector: a generic connector to any a...
E-commerce: the new Magento - OpenERP Connector: a generic connector to any a...E-commerce: the new Magento - OpenERP Connector: a generic connector to any a...
E-commerce: the new Magento - OpenERP Connector: a generic connector to any a...
 
Conectores con tiendas online | Factor Libre
Conectores con tiendas online | Factor LibreConectores con tiendas online | Factor Libre
Conectores con tiendas online | Factor Libre
 
Gestión de contratos de mantenimiento SAT Domatix
Gestión de contratos de mantenimiento SAT DomatixGestión de contratos de mantenimiento SAT Domatix
Gestión de contratos de mantenimiento SAT Domatix
 
Nuevos modelos y cambios fiscales para el 2014
Nuevos modelos y cambios fiscales para el 2014Nuevos modelos y cambios fiscales para el 2014
Nuevos modelos y cambios fiscales para el 2014
 
Webservices Overview : XML RPC, SOAP and REST
Webservices Overview : XML RPC, SOAP and RESTWebservices Overview : XML RPC, SOAP and REST
Webservices Overview : XML RPC, SOAP and REST
 
Presentacion TPV OpenERP
Presentacion TPV OpenERPPresentacion TPV OpenERP
Presentacion TPV OpenERP
 

Similar to API REST para conectar Odoo

Web services soap and rest by mandakini for TechGig
Web services soap and rest by mandakini for TechGigWeb services soap and rest by mandakini for TechGig
Web services soap and rest by mandakini for TechGig
Mandakini Kumari
 
How APIs Can Be Secured in Mobile Environments
How APIs Can Be Secured in Mobile EnvironmentsHow APIs Can Be Secured in Mobile Environments
How APIs Can Be Secured in Mobile Environments
WSO2
 
Enterprise Single Sign On
Enterprise Single Sign On Enterprise Single Sign On
Enterprise Single Sign On
WSO2
 
A RESTful introduction
A RESTful introductionA RESTful introduction
A RESTful introduction
Daniel Toader
 
RESTFul Web Services - Intro
RESTFul Web Services - IntroRESTFul Web Services - Intro
RESTFul Web Services - Intro
Manuel Correa
 
RESTful applications: The why and how by Maikel Mardjan
RESTful applications: The why and how by Maikel MardjanRESTful applications: The why and how by Maikel Mardjan
RESTful applications: The why and how by Maikel Mardjan
Jexia
 
Rest applied
Rest appliedRest applied
Rest applied
Murilo Beltrame
 
Switch to Backend 2023
Switch to Backend 2023Switch to Backend 2023
How to build Simple yet powerful API.pptx
How to build Simple yet powerful API.pptxHow to build Simple yet powerful API.pptx
How to build Simple yet powerful API.pptx
Channa Ly
 
REST to JavaScript for Better Client-side Development
REST to JavaScript for Better Client-side DevelopmentREST to JavaScript for Better Client-side Development
REST to JavaScript for Better Client-side Development
Hyunghun Cho
 
zendframework2 restful
zendframework2 restfulzendframework2 restful
zendframework2 restful
tom_li
 
RefCard RESTful API Design
RefCard RESTful API DesignRefCard RESTful API Design
RefCard RESTful API Design
OCTO Technology
 
Cqrs api
Cqrs apiCqrs api
Cqrs api
Brandon Mueller
 
There is REST and then there is "REST"
There is REST and then there is "REST"There is REST and then there is "REST"
There is REST and then there is "REST"
Radovan Semancik
 
RESTful web services with Groovy on Grails by Vugar Suleymanov
RESTful web services with Groovy on Grails by Vugar SuleymanovRESTful web services with Groovy on Grails by Vugar Suleymanov
RESTful web services with Groovy on Grails by Vugar Suleymanov
Vuqar Suleymanov
 
Android App Development 06 : Network &amp; Web Services
Android App Development 06 : Network &amp; Web ServicesAndroid App Development 06 : Network &amp; Web Services
Android App Development 06 : Network &amp; Web Services
Anuchit Chalothorn
 
Build RESTful API Using Express JS
Build RESTful API Using Express JSBuild RESTful API Using Express JS
Build RESTful API Using Express JS
Cakra Danu Sedayu
 
Angular auth with JWT
Angular auth with JWTAngular auth with JWT
Angular auth with JWT
MVP Microsoft
 
RESTful services
RESTful servicesRESTful services
RESTful services
gouthamrv
 
JHipster Conf 2018 : Connect your JHipster apps to the world of APIs with Ope...
JHipster Conf 2018 : Connect your JHipster apps to the world of APIs with Ope...JHipster Conf 2018 : Connect your JHipster apps to the world of APIs with Ope...
JHipster Conf 2018 : Connect your JHipster apps to the world of APIs with Ope...
chbornet
 

Similar to API REST para conectar Odoo (20)

Web services soap and rest by mandakini for TechGig
Web services soap and rest by mandakini for TechGigWeb services soap and rest by mandakini for TechGig
Web services soap and rest by mandakini for TechGig
 
How APIs Can Be Secured in Mobile Environments
How APIs Can Be Secured in Mobile EnvironmentsHow APIs Can Be Secured in Mobile Environments
How APIs Can Be Secured in Mobile Environments
 
Enterprise Single Sign On
Enterprise Single Sign On Enterprise Single Sign On
Enterprise Single Sign On
 
A RESTful introduction
A RESTful introductionA RESTful introduction
A RESTful introduction
 
RESTFul Web Services - Intro
RESTFul Web Services - IntroRESTFul Web Services - Intro
RESTFul Web Services - Intro
 
RESTful applications: The why and how by Maikel Mardjan
RESTful applications: The why and how by Maikel MardjanRESTful applications: The why and how by Maikel Mardjan
RESTful applications: The why and how by Maikel Mardjan
 
Rest applied
Rest appliedRest applied
Rest applied
 
Switch to Backend 2023
Switch to Backend 2023Switch to Backend 2023
Switch to Backend 2023
 
How to build Simple yet powerful API.pptx
How to build Simple yet powerful API.pptxHow to build Simple yet powerful API.pptx
How to build Simple yet powerful API.pptx
 
REST to JavaScript for Better Client-side Development
REST to JavaScript for Better Client-side DevelopmentREST to JavaScript for Better Client-side Development
REST to JavaScript for Better Client-side Development
 
zendframework2 restful
zendframework2 restfulzendframework2 restful
zendframework2 restful
 
RefCard RESTful API Design
RefCard RESTful API DesignRefCard RESTful API Design
RefCard RESTful API Design
 
Cqrs api
Cqrs apiCqrs api
Cqrs api
 
There is REST and then there is "REST"
There is REST and then there is "REST"There is REST and then there is "REST"
There is REST and then there is "REST"
 
RESTful web services with Groovy on Grails by Vugar Suleymanov
RESTful web services with Groovy on Grails by Vugar SuleymanovRESTful web services with Groovy on Grails by Vugar Suleymanov
RESTful web services with Groovy on Grails by Vugar Suleymanov
 
Android App Development 06 : Network &amp; Web Services
Android App Development 06 : Network &amp; Web ServicesAndroid App Development 06 : Network &amp; Web Services
Android App Development 06 : Network &amp; Web Services
 
Build RESTful API Using Express JS
Build RESTful API Using Express JSBuild RESTful API Using Express JS
Build RESTful API Using Express JS
 
Angular auth with JWT
Angular auth with JWTAngular auth with JWT
Angular auth with JWT
 
RESTful services
RESTful servicesRESTful services
RESTful services
 
JHipster Conf 2018 : Connect your JHipster apps to the world of APIs with Ope...
JHipster Conf 2018 : Connect your JHipster apps to the world of APIs with Ope...JHipster Conf 2018 : Connect your JHipster apps to the world of APIs with Ope...
JHipster Conf 2018 : Connect your JHipster apps to the world of APIs with Ope...
 

More from Domatix

Un proyecto ”depende” o cómo no gestionar un proyecto | Pexego
Un proyecto ”depende” o cómo no gestionar un proyecto | PexegoUn proyecto ”depende” o cómo no gestionar un proyecto | Pexego
Un proyecto ”depende” o cómo no gestionar un proyecto | Pexego
Domatix
 
Aplicaciones web y OpenERP | Factor Libre
Aplicaciones web y OpenERP | Factor LibreAplicaciones web y OpenERP | Factor Libre
Aplicaciones web y OpenERP | Factor Libre
Domatix
 
Ampliación de Producciones. Cálculo indicadores de rendimiento.
Ampliación de Producciones. Cálculo indicadores de rendimiento.Ampliación de Producciones. Cálculo indicadores de rendimiento.
Ampliación de Producciones. Cálculo indicadores de rendimiento.
Domatix
 
Estado actual de la localización española. Versión 6.1 y 7.0. Comunidad vs. O...
Estado actual de la localización española. Versión 6.1 y 7.0. Comunidad vs. O...Estado actual de la localización española. Versión 6.1 y 7.0. Comunidad vs. O...
Estado actual de la localización española. Versión 6.1 y 7.0. Comunidad vs. O...
Domatix
 
Presentación OpenERP Spain
Presentación OpenERP SpainPresentación OpenERP Spain
Presentación OpenERP Spain
Domatix
 
Jornadas Odoo 2015. Gestión de traducciones. Domatix
Jornadas Odoo 2015. Gestión de traducciones. DomatixJornadas Odoo 2015. Gestión de traducciones. Domatix
Jornadas Odoo 2015. Gestión de traducciones. Domatix
Domatix
 
Jornadas Odoo 2015. Gestión de contratos SAT. Domatix
Jornadas Odoo 2015. Gestión de contratos SAT. DomatixJornadas Odoo 2015. Gestión de contratos SAT. Domatix
Jornadas Odoo 2015. Gestión de contratos SAT. Domatix
Domatix
 
El futuro del comercio electrónico.
El futuro del comercio electrónico.El futuro del comercio electrónico.
El futuro del comercio electrónico.
Domatix
 
De Navision a Odoo. Cambiando mentalidades y negocios.
De Navision a Odoo. Cambiando mentalidades y negocios.De Navision a Odoo. Cambiando mentalidades y negocios.
De Navision a Odoo. Cambiando mentalidades y negocios.
Domatix
 
Licencias Odoo 2015 versión 9
Licencias Odoo 2015 versión 9Licencias Odoo 2015 versión 9
Licencias Odoo 2015 versión 9
Domatix
 
Conector OpenERP - MRW
Conector OpenERP - MRW Conector OpenERP - MRW
Conector OpenERP - MRW
Domatix
 
Operaciones de almacén con OpenERP
Operaciones de almacén con OpenERPOperaciones de almacén con OpenERP
Operaciones de almacén con OpenERP
Domatix
 
El efecto OpenERP
El efecto OpenERPEl efecto OpenERP
El efecto OpenERP
Domatix
 
Presentacion OpenERP - Domatix
Presentacion OpenERP - DomatixPresentacion OpenERP - Domatix
Presentacion OpenERP - Domatix
Domatix
 

More from Domatix (14)

Un proyecto ”depende” o cómo no gestionar un proyecto | Pexego
Un proyecto ”depende” o cómo no gestionar un proyecto | PexegoUn proyecto ”depende” o cómo no gestionar un proyecto | Pexego
Un proyecto ”depende” o cómo no gestionar un proyecto | Pexego
 
Aplicaciones web y OpenERP | Factor Libre
Aplicaciones web y OpenERP | Factor LibreAplicaciones web y OpenERP | Factor Libre
Aplicaciones web y OpenERP | Factor Libre
 
Ampliación de Producciones. Cálculo indicadores de rendimiento.
Ampliación de Producciones. Cálculo indicadores de rendimiento.Ampliación de Producciones. Cálculo indicadores de rendimiento.
Ampliación de Producciones. Cálculo indicadores de rendimiento.
 
Estado actual de la localización española. Versión 6.1 y 7.0. Comunidad vs. O...
Estado actual de la localización española. Versión 6.1 y 7.0. Comunidad vs. O...Estado actual de la localización española. Versión 6.1 y 7.0. Comunidad vs. O...
Estado actual de la localización española. Versión 6.1 y 7.0. Comunidad vs. O...
 
Presentación OpenERP Spain
Presentación OpenERP SpainPresentación OpenERP Spain
Presentación OpenERP Spain
 
Jornadas Odoo 2015. Gestión de traducciones. Domatix
Jornadas Odoo 2015. Gestión de traducciones. DomatixJornadas Odoo 2015. Gestión de traducciones. Domatix
Jornadas Odoo 2015. Gestión de traducciones. Domatix
 
Jornadas Odoo 2015. Gestión de contratos SAT. Domatix
Jornadas Odoo 2015. Gestión de contratos SAT. DomatixJornadas Odoo 2015. Gestión de contratos SAT. Domatix
Jornadas Odoo 2015. Gestión de contratos SAT. Domatix
 
El futuro del comercio electrónico.
El futuro del comercio electrónico.El futuro del comercio electrónico.
El futuro del comercio electrónico.
 
De Navision a Odoo. Cambiando mentalidades y negocios.
De Navision a Odoo. Cambiando mentalidades y negocios.De Navision a Odoo. Cambiando mentalidades y negocios.
De Navision a Odoo. Cambiando mentalidades y negocios.
 
Licencias Odoo 2015 versión 9
Licencias Odoo 2015 versión 9Licencias Odoo 2015 versión 9
Licencias Odoo 2015 versión 9
 
Conector OpenERP - MRW
Conector OpenERP - MRW Conector OpenERP - MRW
Conector OpenERP - MRW
 
Operaciones de almacén con OpenERP
Operaciones de almacén con OpenERPOperaciones de almacén con OpenERP
Operaciones de almacén con OpenERP
 
El efecto OpenERP
El efecto OpenERPEl efecto OpenERP
El efecto OpenERP
 
Presentacion OpenERP - Domatix
Presentacion OpenERP - DomatixPresentacion OpenERP - Domatix
Presentacion OpenERP - Domatix
 

Recently uploaded

All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
Alina Yurenko
 
Malibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed RoundMalibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed Round
sjcobrien
 
INTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLES
INTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLESINTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLES
INTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLES
anfaltahir1010
 
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
Bert Jan Schrijver
 
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
XfilesPro
 
Oracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptxOracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptx
Remote DBA Services
 
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
The Third Creative Media
 
Modelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - AmsterdamModelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - Amsterdam
Alberto Brandolini
 
ppt on the brain chip neuralink.pptx
ppt  on   the brain  chip neuralink.pptxppt  on   the brain  chip neuralink.pptx
ppt on the brain chip neuralink.pptx
Reetu63
 
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian CompaniesE-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
Quickdice ERP
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
Sven Peters
 
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdfTop Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
VALiNTRY360
 
Baha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdf
Baha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdfBaha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdf
Baha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdf
Baha Majid
 
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s EcosystemUI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
Peter Muessig
 
Migration From CH 1.0 to CH 2.0 and Mule 4.6 & Java 17 Upgrade.pptx
Migration From CH 1.0 to CH 2.0 and  Mule 4.6 & Java 17 Upgrade.pptxMigration From CH 1.0 to CH 2.0 and  Mule 4.6 & Java 17 Upgrade.pptx
Migration From CH 1.0 to CH 2.0 and Mule 4.6 & Java 17 Upgrade.pptx
ervikas4
 
GreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-JurisicGreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-Jurisic
Green Software Development
 
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
kalichargn70th171
 
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
safelyiotech
 
The Key to Digital Success_ A Comprehensive Guide to Continuous Testing Integ...
The Key to Digital Success_ A Comprehensive Guide to Continuous Testing Integ...The Key to Digital Success_ A Comprehensive Guide to Continuous Testing Integ...
The Key to Digital Success_ A Comprehensive Guide to Continuous Testing Integ...
kalichargn70th171
 
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom KittEnhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
Peter Caitens
 

Recently uploaded (20)

All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
 
Malibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed RoundMalibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed Round
 
INTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLES
INTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLESINTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLES
INTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLES
 
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
 
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
 
Oracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptxOracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptx
 
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
 
Modelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - AmsterdamModelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - Amsterdam
 
ppt on the brain chip neuralink.pptx
ppt  on   the brain  chip neuralink.pptxppt  on   the brain  chip neuralink.pptx
ppt on the brain chip neuralink.pptx
 
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian CompaniesE-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
 
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdfTop Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
 
Baha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdf
Baha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdfBaha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdf
Baha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdf
 
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s EcosystemUI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
 
Migration From CH 1.0 to CH 2.0 and Mule 4.6 & Java 17 Upgrade.pptx
Migration From CH 1.0 to CH 2.0 and  Mule 4.6 & Java 17 Upgrade.pptxMigration From CH 1.0 to CH 2.0 and  Mule 4.6 & Java 17 Upgrade.pptx
Migration From CH 1.0 to CH 2.0 and Mule 4.6 & Java 17 Upgrade.pptx
 
GreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-JurisicGreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-Jurisic
 
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
 
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
 
The Key to Digital Success_ A Comprehensive Guide to Continuous Testing Integ...
The Key to Digital Success_ A Comprehensive Guide to Continuous Testing Integ...The Key to Digital Success_ A Comprehensive Guide to Continuous Testing Integ...
The Key to Digital Success_ A Comprehensive Guide to Continuous Testing Integ...
 
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom KittEnhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
 

API REST para conectar Odoo

  • 1. API REST Odoo Angel Moya http://domatix.com
  • 2. Qué es OdooREST Angel Moya http://domatix.com OdooREST Odoo Cliente web Cliente Apps
  • 3. Por qué OdooREST Angel Moya http://domatix.com ● REST vs XML-RPC / Json-RPC ● Requisito cliente para uso en java - android ● HTTP ● Simple y legible ● Otras empresas implicadas
  • 4. Qué es REST Angel Moya http://domatix.com ● REST, REpresentational State Transfer ● Arquitectura desarrollo web que se apoya totalmente en el estándar HTTP ● REST vs XML-RPC
  • 5. Leer: GET Angel Moya http://domatix.com ● http://127.0.0.1:5000/res_partner ● http://127.0.0.1:5000/res_partner/7?fields=all ● http://127.0.0.1:5000/res_partner/7?fields=[‘name’,’mobile’] ● http://127.0.0.1:5000/res_partner?fields=all&domain=[(‘country_id’,’!=’,’ 235’)] ● limit ● offset ● context
  • 6. Crear: PUT Angel Moya http://domatix.com ● $ curl -H "Content-Type: application/json" -- user admin:admin http://localhost: 81/res_users/5 -d '{"name":"test34"}' -X PUT -v
  • 7. Escribir: POST Angel Moya http://domatix.com ● $ curl -H "Content-Type: application/json" -- user admin:admin http://127.0.0.1: 5000/res_users -d '{"name":"test"}' -X POST - v
  • 8. Eliminar: DELETE Angel Moya http://domatix.com ● $ curl --user admin:admin http://localhost: 81/res_users/5 -X DELETE -v
  • 9. El proyecto Angel Moya http://domatix.com https://gitlab.com/domatix/odoo-rest ● Basado en Flask y odoorpc ● WSGI, Web Server Gateway Interface ● CoC, Convention over Configuration ● KISS, Keep It Simple, Stupid
  • 10. Instalación Angel Moya http://domatix.com ● git clone https://gitlab.com/domatix/odoo-rest.git config.py● config.py. sample common/resources● common/resources.sample ● sudo pip install -r requeriments.txt ● python odoo_rest.py ● Ejemplo resource...
  • 11. Angel Moya http://domatix.com from ..odoo_resource import OdooResource from ..tools import api class ResUsers(OdooResource): odoo_model = 'res.users' odoo_fields = [ 'id', 'create_date', 'write_date', 'login', 'name', 'active' ] class ResUsersList(ResUsers): pass api.add_resource(ResUsersList, '/res_users') api.add_resource(ResUsers, '/res_users/<res_id>')