Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »



Oregional Odoo RestAPI endpoint: /orestapi/application/model

Query available models for an application

Odoo models can be made available at the Application screen



Request

Sample request
https://odoo.dev.oregional.hu/orestapi/application/model
ItemDescriptionNotes
endpoint/orestapi/application/model
typeGET
Header
authorization

Bearer access_token

Info: oRestAPI authorization header

Params
--No parameters necessary, it is enough to simply call the endpoint with a valid access_token


Response

Sample response
[{"name": "Contact", "model": "res.partner"}, {"name": "Lead/Opportunity", "model": "crm.lead"}]

Returns a list of dictionaries (key-value pairs)

ParentKeyTypeDefaultDescriptionNotes

modelstring-the technical name of the model (eg: res.partner, crm.lead, account.invoice, etc)Unique reference of the model, should be used in other API calls

namestring-the human readable name of the model (eg: Contact, Lead/Opportunity, Invoice, etc)This is what users should see
  • No labels