Files
Odoo-API-Framework-POSTMAN-…/All API Framework Operations Basic.postman_collection.json

2307 lines
68 KiB
JSON

{
"info": {
"_postman_id": "3ae7c044-696b-42af-8ddd-2d3556cfe597",
"name": "All API Framework Operations Basic",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "29186461"
},
"item": [
{
"name": "JsonAPI",
"item": [
{
"name": "JsonAPI JWT",
"item": [
{
"name": "JsonAPI JWT Login",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/vnd.api+json",
"type": "text"
},
{
"key": "Origin",
"value": "http://localhost:8016",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"login\": \"portal\",\n \"password\": \"portal\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8019/user-jsonapi-jwt-rs/api/jwt/auth/login",
"protocol": "http",
"host": [
"localhost"
],
"port": "8019",
"path": [
"user-jsonapi-jwt-rs",
"api",
"jwt",
"auth",
"login"
]
}
},
"response": []
},
{
"name": "JsonAPI JWT Login Options",
"request": {
"method": "OPTIONS",
"header": [
{
"key": "Content-Type",
"value": "application/vnd.api+json",
"type": "text"
},
{
"key": "Origin",
"value": "http://localhost:8016",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"login\": \"admin\",\n \"password\": \"admin\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8019/user-jsonapi-jwt-rs/api/jwt/auth/login",
"protocol": "http",
"host": [
"localhost"
],
"port": "8019",
"path": [
"user-jsonapi-jwt-rs",
"api",
"jwt",
"auth",
"login"
]
}
},
"response": []
},
{
"name": "JWT JsonAPI Sale Fetch",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/vnd.api+json",
"type": "text"
},
{
"key": "Authorization",
"value": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOjYsIm5hbWUiOiJKb2VsIFdpbGxpcyIsImV4cCI6MTc1MTEwNTUzMH0.afi2rxhrE-XlfPpwFthD7NRFvXvTFyT-aKnPrpS8RKTYYIeuDqJ5AX5BcsyMWLBmWwfQLf15NDYPaSaClBMhoDfbt_ZYb2hnkXMIOi5H-GeUhui6rONa_VynTGw3PEmTjkEPJUxUA9hLsXuzInLFvuZ8sJWdQLnQZZDf_qjxSofvXVDBDwuB90xUW4DcCJuv_-G0mVO0g35G1XlBPGYhGHpXOdIQalyEaWs7yxdBJfqQxUUGbSjTfOyJgBnfhEFOUAdB7z4xNQZpvNhevxnppLiGpHI2fPTDfXXZF2YgkX-xbdzzdDBNUl4s7gAcRQsl5sGCark-xU4sUuzVQkaCkg",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8019/user-jsonapi-jwt-rs/sale.order?fields[sale.order]=name,order_line,partner_id",
"protocol": "http",
"host": [
"localhost"
],
"port": "8019",
"path": [
"user-jsonapi-jwt-rs",
"sale.order"
],
"query": [
{
"key": "fields[sale.order]",
"value": "name,order_line,partner_id"
}
]
}
},
"response": []
}
]
},
{
"name": "JsonAPI Public",
"item": [
{
"name": "JsonAPI Product Public",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/vnd.api+json",
"type": "text"
},
{
"key": "Origin",
"value": "http://localhost:8016",
"type": "text"
}
],
"url": {
"raw": "http://localhost:8019/jsonapi-public/product.product?fields[product.product]=name",
"protocol": "http",
"host": [
"localhost"
],
"port": "8019",
"path": [
"jsonapi-public",
"product.product"
],
"query": [
{
"key": "fields[product.product]",
"value": "name"
}
]
}
},
"response": []
},
{
"name": "JsonAPI Sale Order Public Check",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/vnd.api+json",
"type": "text"
}
],
"url": {
"raw": "http://localhost:8012/jsonapi_public/sale.order?fields[sale.order]=name",
"protocol": "http",
"host": [
"localhost"
],
"port": "8012",
"path": [
"jsonapi_public",
"sale.order"
],
"query": [
{
"key": "fields[sale.order]",
"value": "name"
}
]
}
},
"response": []
}
]
},
{
"name": "JsonAPI User Auth",
"item": [
{
"name": "READ",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/vnd.api+json",
"type": "text"
},
{
"key": "username",
"value": "admin",
"type": "text"
},
{
"key": "password",
"value": "admin",
"type": "text"
},
{
"key": "Origin",
"value": "http://localhost:8016",
"type": "text"
}
],
"url": {
"raw": "http://localhost:8019/user-jsonapi-apiuser/res.partner?fields[res.partner]=name,email,phone,country_id,user_id,company_id&fields[res.country]=name,code&fields[res.users]=name,active&include=country_id,user_id,company_id&fields[res.company]=name&page[number]=3&page[size]=4&sort=id",
"protocol": "http",
"host": [
"localhost"
],
"port": "8019",
"path": [
"user-jsonapi-apiuser",
"res.partner"
],
"query": [
{
"key": "fields[res.partner]",
"value": "name,email,phone,country_id,user_id,company_id"
},
{
"key": "fields[res.country]",
"value": "name,code"
},
{
"key": "fields[res.users]",
"value": "name,active"
},
{
"key": "include",
"value": "country_id,user_id,company_id"
},
{
"key": "fields[res.company]",
"value": "name"
},
{
"key": "page[number]",
"value": "3"
},
{
"key": "page[size]",
"value": "4"
},
{
"key": "sort",
"value": "id"
}
]
}
},
"response": []
}
]
},
{
"name": "JsonAPI Basic Auth",
"item": [
{
"name": "READ",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/vnd.api+json",
"type": "text"
},
{
"key": "Authorization",
"value": "basic YWRtaW46YWRtaW4=",
"type": "text"
},
{
"key": "Origin",
"value": "http://localhost:8016",
"type": "text"
}
],
"url": {
"raw": "http://localhost:8019/user-jsonapi-basic/res.partner?fields[res.partner]=name,email,phone,country_id,user_id,company_id&fields[res.country]=name,code&fields[res.users]=name,active&include=country_id,user_id,company_id&fields[res.company]=name&page[number]=3&page[size]=4&sort=id",
"protocol": "http",
"host": [
"localhost"
],
"port": "8019",
"path": [
"user-jsonapi-basic",
"res.partner"
],
"query": [
{
"key": "fields[res.partner]",
"value": "name,email,phone,country_id,user_id,company_id"
},
{
"key": "fields[res.country]",
"value": "name,code"
},
{
"key": "fields[res.users]",
"value": "name,active"
},
{
"key": "include",
"value": "country_id,user_id,company_id"
},
{
"key": "fields[res.company]",
"value": "name"
},
{
"key": "page[number]",
"value": "3"
},
{
"key": "page[size]",
"value": "4"
},
{
"key": "sort",
"value": "id"
}
]
}
},
"response": []
}
]
},
{
"name": "JsonAPI API-Key Auth",
"item": [
{
"name": "READ",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/vnd.api+json",
"type": "text"
},
{
"key": "db",
"value": "api-15-db-2",
"type": "text",
"disabled": true
},
{
"key": "x-api-key",
"value": "fLRNUittCt2F0tPCz9ET00cQG5K3mkXj",
"type": "text"
},
{
"key": "Access-Control-Request-Headers",
"value": "content-type, x-api-key",
"type": "text"
},
{
"key": "Access-Control-Request-Method",
"value": "GET",
"type": "text"
},
{
"key": "Origin",
"value": "http://localhost:8016",
"type": "text"
},
{
"key": "Accept",
"value": "*/*",
"type": "text"
}
],
"url": {
"raw": "https://api_framework-18.demo.odoo-apps.ekika.co/user-jsonapi-apikey/res.partner?fields[res.partner]=name,is_company,email,phone,child_ids,parent_id,user_id,country_id&fields[res.country]=name,code&fields[res.users]=name,active&include=country_id,user_id,company_id,child_ids&fields[res.company]=name,partner_id&page[number]=1&page[size]=2&sort=name,-id",
"protocol": "https",
"host": [
"api_framework-18",
"demo",
"odoo-apps",
"ekika",
"co"
],
"path": [
"user-jsonapi-apikey",
"res.partner"
],
"query": [
{
"key": "fields[res.partner]",
"value": "name,is_company,email,phone,child_ids,parent_id,user_id,country_id"
},
{
"key": "fields[res.country]",
"value": "name,code"
},
{
"key": "fields[res.users]",
"value": "name,active"
},
{
"key": "include",
"value": "country_id,user_id,company_id,child_ids"
},
{
"key": "fields[res.company]",
"value": "name,partner_id"
},
{
"key": "page[number]",
"value": "1"
},
{
"key": "page[size]",
"value": "2"
},
{
"key": "sort",
"value": "name,-id"
},
{
"key": "filter",
"value": "[('is_company', '=', true)]",
"disabled": true
},
{
"key": "db",
"value": "api-15-db-1",
"disabled": true
}
]
}
},
"response": []
},
{
"name": "READ Copy",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/vnd.api+json",
"type": "text"
},
{
"key": "db",
"value": "api-15-db-2",
"type": "text",
"disabled": true
},
{
"key": "x-api-key",
"value": "XS2wf2cxjf3zuxfD8Jw0EnvpUk4q8OGW",
"type": "text"
},
{
"key": "Access-Control-Request-Headers",
"value": "content-type, x-api-key",
"type": "text"
},
{
"key": "Access-Control-Request-Method",
"value": "GET",
"type": "text"
},
{
"key": "Origin",
"value": "http://localhost:8016",
"type": "text"
},
{
"key": "Accept",
"value": "*/*",
"type": "text"
}
],
"url": {
"raw": "http://localhost:8019/user-jsonapi-apikey/res.partner?fields[res.partner]=name,is_company,email,phone,child_ids,parent_id,user_id&fields[res.country]=name,code&fields[res.users]=name,active&include=country_id,user_id,company_id,child_ids&fields[res.company]=name,partner_id&page[number]=1&page[size]=5&sort=name,-id",
"protocol": "http",
"host": [
"localhost"
],
"port": "8019",
"path": [
"user-jsonapi-apikey",
"res.partner"
],
"query": [
{
"key": "fields[res.partner]",
"value": "name,is_company,email,phone,child_ids,parent_id,user_id"
},
{
"key": "fields[res.country]",
"value": "name,code"
},
{
"key": "fields[res.users]",
"value": "name,active"
},
{
"key": "include",
"value": "country_id,user_id,company_id,child_ids"
},
{
"key": "fields[res.company]",
"value": "name,partner_id"
},
{
"key": "page[number]",
"value": "1"
},
{
"key": "page[size]",
"value": "5"
},
{
"key": "sort",
"value": "name,-id"
},
{
"key": "filter",
"value": "[('is_company', '=', true)]",
"disabled": true
},
{
"key": "db",
"value": "api-15-db-1",
"disabled": true
}
]
}
},
"response": []
},
{
"name": "READ Data in body",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/vnd.api+json",
"type": "text"
},
{
"key": "x-api-key",
"value": "ksrC84sW2XGdabQbrKojsDHP2Z9gYIWq",
"type": "text"
},
{
"key": "Access-Control-Request-Headers",
"value": "content-type, x-api-key",
"type": "text"
},
{
"key": "Access-Control-Request-Method",
"value": "GET",
"type": "text"
},
{
"key": "Origin",
"value": "http://localhost:8016",
"type": "text"
},
{
"key": "Accept",
"value": "*/*",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"data\": {\n \"context\": {\n \"allowed_company_ids\": [\n 2,1\n ]\n }\n },\n \"fields[sale.order]\": \"name,date_order,partner_id\",\n \"page[number]\": 1,\n \"page[size]\": 10\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8019/jsonapi-data-in-body/sale.order",
"protocol": "http",
"host": [
"localhost"
],
"port": "8019",
"path": [
"jsonapi-data-in-body",
"sale.order"
],
"query": [
{
"key": "fields[sale.order]",
"value": "name,date_order,partner_id",
"disabled": true
},
{
"key": "page[number]",
"value": "1",
"disabled": true
},
{
"key": "page[size]",
"value": "10",
"disabled": true
}
]
}
},
"response": []
}
]
},
{
"name": "All Operations",
"item": [
{
"name": "Export Data",
"protocolProfileBehavior": {
"disableBodyPruning": true,
"disabledSystemHeaders": {
"content-type": true,
"accept": true
}
},
"request": {
"method": "GET",
"header": [
{
"key": "x-api-key",
"value": "DVlDhYuVjbBIu0KEOMXNQQaIi1IAjahQ",
"type": "text"
},
{
"key": "Accept",
"value": "application/vnd.api+json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"import_compat\": false,\n \"context\": {\n \"lang\": \"en_US\",\n \"tz\": \"Asia/Calcutta\",\n \"uid\": 2,\n \"allowed_company_ids\": [\n 1\n ]\n },\n \"domain\": [\n [\n \"user_id\",\n \"=\",\n 2\n ]\n ],\n \"fields\": [\n {\n \"name\": \"name\",\n \"label\": \"Order Reference\",\n \"type\": \"char\"\n },\n {\n \"name\": \"display_name\",\n \"label\": \"Display Name\",\n \"type\": \"char\"\n },\n {\n \"name\": \"activity_ids\",\n \"label\": \"Activities\",\n \"type\": \"one2many\"\n },\n {\n \"name\": \"create_date\",\n \"label\": \"Creation Date\",\n \"type\": \"datetime\"\n },\n {\n \"name\": \"partner_id\",\n \"label\": \"Customer\",\n \"type\": \"many2one\"\n },\n {\n \"name\": \"user_id\",\n \"label\": \"Salesperson\",\n \"type\": \"many2one\"\n },\n {\n \"name\": \"user_id/name\",\n \"label\": \"Salesperson/Name\",\n \"type\": \"char\"\n },\n {\n \"name\": \"state\",\n \"label\": \"Status\",\n \"type\": \"selection\"\n },\n {\n \"name\": \"amount_total\",\n \"label\": \"Total\",\n \"type\": \"monetary\"\n }\n // {\n // \"name\": \"tag_ids\",\n // \"label\": \"Tags\",\n // \"type\": \"many2many\"\n // },\n // {\n // \"name\": \"tag_ids/name\",\n // \"label\": \"Tags/Tag Name\",\n // \"type\": \"char\"\n // }\n ],\n \"groupby\": [],\n \"ids\": [\n 20,\n 19,\n 14,\n 13,\n 7,\n 6,\n 4\n ],\n \"model\": \"sale.order\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8012/jsonapi-key/export",
"protocol": "http",
"host": [
"localhost"
],
"port": "8012",
"path": [
"jsonapi-key",
"export"
]
}
},
"response": []
},
{
"name": "READ",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/vnd.api+json",
"type": "text"
},
{
"key": "x-api-key",
"value": "g\"7}`YDA2d$M1^HtoD)qjC<qYN#|<EU\"",
"type": "text"
}
],
"url": {
"raw": "http://localhost:8016/jsonapi1/res.partner?fields[res.partner]=name,is_company,email,phone,child_ids,parent_id&fields[res.country]=name,code&fields[res.users]=name,active&include=country_id,user_id,company_id,child_ids&fields[res.company]=name,partner_id&page[number]=1&page[size]=5&sort=name,-id&filter=[('is_company', '=', true)]",
"protocol": "http",
"host": [
"localhost"
],
"port": "8016",
"path": [
"jsonapi1",
"res.partner"
],
"query": [
{
"key": "fields[res.partner]",
"value": "name,is_company,email,phone,child_ids,parent_id"
},
{
"key": "fields[res.country]",
"value": "name,code"
},
{
"key": "fields[res.users]",
"value": "name,active"
},
{
"key": "include",
"value": "country_id,user_id,company_id,child_ids"
},
{
"key": "fields[res.company]",
"value": "name,partner_id"
},
{
"key": "page[number]",
"value": "1"
},
{
"key": "page[size]",
"value": "5"
},
{
"key": "sort",
"value": "name,-id"
},
{
"key": "filter",
"value": "[('is_company', '=', true)]"
}
]
}
},
"response": []
},
{
"name": "READ Sale Order",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/vnd.api+json",
"type": "text"
},
{
"key": "x-api-key",
"value": "7YXtJyYVZbx6CozhlHf25Y1kky88sMfJ",
"type": "text"
}
],
"url": {
"raw": "http://localhost:8012/jsonapi-key/sale.order?fields[sale.order]=name,partner_id,date_order&include=partner_id",
"protocol": "http",
"host": [
"localhost"
],
"port": "8012",
"path": [
"jsonapi-key",
"sale.order"
],
"query": [
{
"key": "fields[sale.order]",
"value": "name,partner_id,date_order"
},
{
"key": "include",
"value": "partner_id"
}
]
}
},
"response": []
},
{
"name": "READ Single Record",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/vnd.api+json",
"type": "text"
},
{
"key": "x-api-key",
"value": "^`FIrg/'?mg{V~05B16r!W12m[aY$K5$",
"type": "text"
}
],
"url": {
"raw": "http://192.168.1.15:8017/user-jsonapi-apikey/res.partner/33?fields[res.partner]=name,is_company,email,phone,country_id,user_id,company_id&fields[res.country]=name,code&fields[res.users]=name,active&include=country_id,user_id,company_id&fields[res.company]=name",
"protocol": "http",
"host": [
"192",
"168",
"1",
"15"
],
"port": "8017",
"path": [
"user-jsonapi-apikey",
"res.partner",
"33"
],
"query": [
{
"key": "fields[res.partner]",
"value": "name,is_company,email,phone,country_id,user_id,company_id"
},
{
"key": "fields[res.country]",
"value": "name,code"
},
{
"key": "fields[res.users]",
"value": "name,active"
},
{
"key": "include",
"value": "country_id,user_id,company_id"
},
{
"key": "fields[res.company]",
"value": "name"
}
]
}
},
"response": []
},
{
"name": "UPDATE",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"value": "application/vnd.api+json",
"type": "text"
},
{
"key": "x-api-key",
"value": "1ro\"Y5sO_ULeeeZ>H]5a)4:;>DL8s[j$",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"data\": {\n \"type\": \"res.partner\",\n \"id\": 50,\n \"attributes\": {\n \"active\": true,\n \"name\": \"Ekika Corporation Pvt Ltd.\",\n \"company_type\": \"company\",\n \"city\": \"Gandhinagar\",\n \"street\": \"Gandhinagar\",\n \"zip\": \"000000\",\n \"comment\": \"<p>Comment Here</p>\",\n \"phone\": \"5554444555444\",\n \"mobile\": \"1010101\",\n \"website\": \"http://www.ekika.co\",\n \"email\": \"hello@ekika.co\"\n },\n \"relationships\": {\n \"category_id\": {\n \"data\": []\n },\n \"bank_ids\":{\n \"data\": [\n {\n \"type\": \"res.partner.bank\",\n \"id\" : 5,\n \"attributes\": {\n \"sequence\": 25,\n \"bank_id\": 2,\n \"acc_number\": \"999999\",\n \"allow_out_payment\": true,\n \"acc_holder_name\": false\n }\n }\n ]\n }\n }\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://192.168.1.15:8019/user-jsonapi-apikey/res.partner/50",
"protocol": "http",
"host": [
"192",
"168",
"1",
"15"
],
"port": "8019",
"path": [
"user-jsonapi-apikey",
"res.partner",
"50"
]
}
},
"response": []
},
{
"name": "DELETE",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"value": "application/vnd.api+json",
"type": "text"
},
{
"key": "x-api-key",
"value": "1ro\"Y5sO_ULeeeZ>H]5a)4:;>DL8s[j$",
"type": "text"
}
],
"url": {
"raw": "http://192.168.1.15:8019/user-jsonapi-apikey/res.partner/50",
"protocol": "http",
"host": [
"192",
"168",
"1",
"15"
],
"port": "8019",
"path": [
"user-jsonapi-apikey",
"res.partner",
"50"
]
}
},
"response": []
},
{
"name": "METHOD EXECUTE",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/vnd.api+json",
"type": "default"
},
{
"key": "x-api-key",
"value": "O<>}3g%1zItW7jh[2P&)/3VPefc6?(sv",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"data\": {\n \"method\": \"action_confirm\",\n \"kwargs\":{}\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "192.168.1.15:8016/user-jsonapi-apikey/sale.order/22/execute",
"host": [
"192",
"168",
"1",
"15"
],
"port": "8016",
"path": [
"user-jsonapi-apikey",
"sale.order",
"22",
"execute"
]
}
},
"response": []
},
{
"name": "CREATE",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/vnd.api+json",
"type": "text"
},
{
"key": "x-api-key",
"value": "XS2wf2cxjf3zuxfD8Jw0EnvpUk4q8OGW",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"data\": {\n \"type\": \"res.partner\",\n \"attributes\": {\n \"active\": true,\n \"name\": \"Ekika Corporation\",\n \"company_type\": \"company\",\n \"city\": \"Gandhinagar\",\n \"street\": \"Gandhinagar\",\n \"zip\": \"382421\",\n \"comment\": \"<p>Comment Here</p>\",\n \"phone\": \"5554444555444\",\n // \"mobile\": \"1010101\",\n \"website\": \"http://www.ekika.co\",\n \"email\": \"hello@ekika.co\"\n },\n \"relationships\": {\n \"category_id\": {\n \"data\": [\n {\n \"type\": \"res.partner.category\",\n \"id\": \"4\"\n },\n {\n \"type\": \"res.partner.category\",\n \"id\": \"3\"\n }\n ]\n },\n \"bank_ids\":{\n \"data\": [\n {\n \"type\": \"res.partner.bank\",\n \"attributes\": {\n \"sequence\": 10,\n \"bank_id\": 2,\n \"acc_number\": \"11212121212\",\n \"allow_out_payment\": true,\n \"acc_holder_name\": false\n }\n },\n {\n \"type\": \"res.partner.bank\",\n \"attributes\": {\n \"sequence\": 11,\n \"bank_id\": 3,\n \"acc_number\": \"3434343434343434\",\n \"allow_out_payment\": true,\n \"acc_holder_name\": false\n }\n }\n ]\n }\n }\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8019/user-jsonapi-apikey/res.partner",
"protocol": "http",
"host": [
"localhost"
],
"port": "8019",
"path": [
"user-jsonapi-apikey",
"res.partner"
]
}
},
"response": []
},
{
"name": "CREATE Copy",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/vnd.api+json",
"type": "text"
},
{
"key": "x-api-key",
"value": "iMrrgAbLJAXcygMyxI6tfy8uIqM6QkiA",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"data\": {\n \"type\": \"sale.order\",\n \"attributes\": {\n \"partner_id\": 21\n },\n \"context\": {\n \"lang\": \"en_US\",\n \"tz\": \"Asia/Calcutta\",\n \"allowed_company_ids\": [\n 2\n ],\n \"bin_size\": true,\n \"params\": {\n \"action\": \"sales\",\n \"actionStack\": [\n {\n \"action\": \"sales\"\n }\n ]\n },\n \"current_company_id\": 3\n }\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8013/user-jsonapi-apikey/sale.order",
"protocol": "http",
"host": [
"localhost"
],
"port": "8013",
"path": [
"user-jsonapi-apikey",
"sale.order"
]
}
},
"response": []
}
]
},
{
"name": "Custom Access",
"item": [
{
"name": "Read Partner",
"request": {
"method": "GET",
"header": [
{
"key": "x-api-key",
"value": "HrP2lLjX42vAZgQlKlYwvP2NXAOqKPno",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/vnd.api+json",
"type": "text"
},
{
"key": "Origin",
"value": "http://localhost:8016",
"type": "text"
}
],
"url": {
"raw": "http://localhost:8019/custom-jsonapi-apikey/res.partner?fields[res.partner]=name,email,phone,country_id&fields[res.country]=name,code&fields[res.users]=name,active&fields[res.company]=name&page[number]=3&page[size]=4&sort=id",
"protocol": "http",
"host": [
"localhost"
],
"port": "8019",
"path": [
"custom-jsonapi-apikey",
"res.partner"
],
"query": [
{
"key": "fields[res.partner]",
"value": "name,email,phone,country_id"
},
{
"key": "fields[res.country]",
"value": "name,code"
},
{
"key": "fields[res.users]",
"value": "name,active"
},
{
"key": "include",
"value": "country_id,user_id,company_id",
"disabled": true
},
{
"key": "fields[res.company]",
"value": "name"
},
{
"key": "page[number]",
"value": "3"
},
{
"key": "page[size]",
"value": "4"
},
{
"key": "sort",
"value": "id"
}
]
}
},
"response": []
},
{
"name": "Read Sale Order",
"request": {
"method": "GET",
"header": [
{
"key": "x-api-key",
"value": "HrP2lLjX42vAZgQlKlYwvP2NXAOqKPno",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/vnd.api+json",
"type": "text"
},
{
"key": "Origin",
"value": "http://localhost:8016",
"type": "text"
}
],
"url": {
"raw": "http://localhost:8019/custom-jsonapi-apikey/sale.order?fields[sale.order]=name,date_order",
"protocol": "http",
"host": [
"localhost"
],
"port": "8019",
"path": [
"custom-jsonapi-apikey",
"sale.order"
],
"query": [
{
"key": "fields[sale.order]",
"value": "name,date_order"
}
]
}
},
"response": []
}
]
}
]
},
{
"name": "GraphQL",
"item": [
{
"name": "GraphQL JWT",
"item": [
{
"name": "GQL JWT Login Copy",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/vnd.api+json",
"type": "text",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": "{\n \"login\": \"admin\",\n \"password\": \"admin\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/gql_jwt/api/jwt/auth/login",
"host": [
"{{base_url}}"
],
"path": [
"gql_jwt",
"api",
"jwt",
"auth",
"login"
]
}
},
"response": []
},
{
"name": "JWT GraphQL Sale Fetch Copy",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOjIsIm5hbWUiOiJNaXRjaGVsbCBBZG1pbiIsImV4cCI6MTc1Mjc1ODA3MX0.UUr4VspeqQFGPJcOnRPRtKC9kDHxBUaetuJ2ySSJiK-5-cYtfXny5or4ZYMCt5kXMLCe8BXUxmx7qTVhccntBx2V3Fhpc7259K_6P5HtHSGzvCUyIk-4dxlSGIhMlIpvNOM6EwNDPVkjSdD6VhODqeOJGq0m2j3EjwkpyACBjXdszq3OUTHffN8TWD0Si_z5j4IloYo_b6gJsIxpc516gZZZl2m3SUzmCul8miK3UYBrAeh-eZKVrmwz2TxgBG4-4VQczkjNW5p01Cneg1svWvZUjHXFCvvCPdbWtTzf1A70TCz6QNZO-MtuRqdwL5z_4A4Sn4mPTEk1n7CZric2Rg",
"type": "text"
}
],
"body": {
"mode": "graphql",
"graphql": {
"query": "query MyQuery {\n SaleOrder {\n id\n name\n amount_total\n order_line {\n id\n name\n product_id{\n id\n name\n }\n }\n }\n}",
"variables": ""
}
},
"url": {
"raw": "{{base_url}}/gql_jwt",
"host": [
"{{base_url}}"
],
"path": [
"gql_jwt"
]
}
},
"response": []
}
]
},
{
"name": "GraphQL Public",
"item": [
{
"name": "GraphQL Product Public Copy",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "query MyQuery{\n ProductProduct{\n id\n name\n lst_price\n }\n ProductTemplate{\n id\n name\n list_price\n }\n}",
"variables": ""
}
},
"url": {
"raw": "{{base_url}}/gql_public",
"host": [
"{{base_url}}"
],
"path": [
"gql_public"
]
}
},
"response": []
},
{
"name": "GraphQL Public Sale Order Check Copy",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "query MyQuery{\n SaleOrder{\n id\n name\n }\n}",
"variables": ""
}
},
"url": {
"raw": "{{base_url}}/gql_public",
"host": [
"{{base_url}}"
],
"path": [
"gql_public"
]
}
},
"response": []
}
]
},
{
"name": "GraphQL User Auth",
"item": [
{
"name": "READ",
"request": {
"method": "POST",
"header": [
{
"key": "username",
"value": "demo",
"type": "text"
},
{
"key": "password",
"value": "demo",
"type": "text"
}
],
"body": {
"mode": "graphql",
"graphql": {
"query": "query MyQuery {\n ResPartner{\n name\n phone\n email\n country_id{\n name\n code\n }\n user_id{\n name\n active\n }\n company_id{\n name\n }\n }\n}",
"variables": ""
}
},
"url": {
"raw": "{{base_url}}/user-graphql-apiuser",
"host": [
"{{base_url}}"
],
"path": [
"user-graphql-apiuser"
]
}
},
"response": []
}
]
},
{
"name": "GraphQL Basic Auth",
"item": [
{
"name": "READ",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "basic ZGVtbzpkZW1v",
"type": "text"
}
],
"body": {
"mode": "graphql",
"graphql": {
"query": "query MyQuery {\n ResPartner{\n name\n phone\n email\n country_id{\n name\n code\n }\n user_id{\n name\n active\n }\n company_id{\n name\n }\n }\n}",
"variables": ""
}
},
"url": {
"raw": "{{base_url}}/user-graphql-basic",
"host": [
"{{base_url}}"
],
"path": [
"user-graphql-basic"
]
}
},
"response": []
}
]
},
{
"name": "GraphQL API-Key Auth",
"item": [
{
"name": "READ",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "2BKo9Mdhq7HpGKEVvJGQCEtYk01wfM8x",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "graphql",
"graphql": {
"query": "query MyQuery {\n ResPartner{\n id\n name\n email\n }\n}",
"variables": "{\n \"offset\": 0,\n \"limit\": 5,\n \"order\": \"name,id desc\",\n \"domain\": [[\"is_company\",\"=\",true]]\n}"
}
},
"url": {
"raw": "{{base_url}}/graphql",
"host": [
"{{base_url}}"
],
"path": [
"graphql"
]
}
},
"response": []
}
]
},
{
"name": "All Operations",
"item": [
{
"name": "READ",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "Iti7TbdOLWzwKWL3BcOpHmI5WxbB70ww",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "graphql",
"graphql": {
"query": "query MyQuery {\n SaleOrder{\n id\n name\n }\n}",
"variables": "{\n \"offset\": 0,\n \"limit\": 5,\n \"order\": \"name,id desc\",\n \"domain\": [[\"is_company\",\"=\",true]],\n \"context\": {\n \"lang\": \"en_US\",\n \"tz\": \"Asia/Calcutta\",\n \"uid\": 2,\n \"allowed_company_ids\": [\n 1,2\n ],\n \"bin_size\": true,\n \"params\": {\n \"action\": \"sales\",\n \"actionStack\": [\n {\n \"action\": \"sales\"\n }\n ]\n },\n \"current_company_id\": 3\n }\n}"
}
},
"url": {
"raw": "{{base_url}}/user-graphql-apikey",
"host": [
"{{base_url}}"
],
"path": [
"user-graphql-apikey"
]
}
},
"response": []
},
{
"name": "READ Options request for CORS",
"request": {
"method": "OPTIONS",
"header": [
{
"key": "x-api-key",
"value": "bzyWiqgANST9IEQ7OyBATmeQ4QTJsAbC",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "Origin",
"value": "http://localhost:8016",
"type": "text"
},
{
"key": "Access-Control-Request-Headers",
"value": "content-type, x-api-key",
"type": "text"
},
{
"key": "Access-Control-Request-Method",
"value": "POST",
"type": "text"
}
],
"body": {
"mode": "graphql",
"graphql": {
"query": "query MyQuery {\n ResUsers{\n id\n name\n country_id{\n name\n }\n partner_id {\n id\n name\n }\n child_ids{\n id\n name\n }\n parent_id\n }\n}",
"variables": "{\n \"offset\": 0,\n \"limit\": 5,\n \"order\": \"name,id desc\",\n \"domain\": [[\"is_company\",\"=\",true]]\n}"
}
},
"url": {
"raw": "{{base_url}}/user-graphql-apikey",
"host": [
"{{base_url}}"
],
"path": [
"user-graphql-apikey"
]
}
},
"response": []
},
{
"name": "READ Single Record",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "dRQYZ9ffJTUgFnYUVIwXWFYtZ3YVhyHM",
"type": "text"
}
],
"body": {
"mode": "graphql",
"graphql": {
"query": "query MyQuery {\n ResPartner(id: 80)\n {\n id\n name\n phone\n email\n is_company\n category_id\n bank_ids{\n id\n display_name\n bank_id{\n id\n display_name\n }\n }\n country_id{\n name\n code\n }\n user_id{\n name\n active\n }\n company_id{\n name\n }\n }\n}",
"variables": ""
}
},
"url": {
"raw": "{{base_url}}/user-graphql-apikey",
"host": [
"{{base_url}}"
],
"path": [
"user-graphql-apikey"
]
}
},
"response": []
},
{
"name": "CREATE",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "{{api_key}}",
"type": "text"
}
],
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation Create {\n createResPartner: ResPartner(\n ResPartnerValues: {\n active: true,\n name: \"Ekika Corporation New\",\n category_id: [4, 3]\n company_type: \"company\",\n bank_ids: [\n [0, 0, {\n sequence: 10,\n bank_id: 2,\n acc_number: \"11212121212\",\n allow_out_payment: true,\n acc_holder_name: false\n }],\n [0, 0, {\n sequence: 11,\n bank_id: 3,\n acc_number: \"3434343434343434\",\n allow_out_payment: true,\n acc_holder_name: false\n }]\n ]\n city: \"Gandhinagar\",\n street: \"Gandhinagar\",\n street2: \"\",\n zip: \"382421\",\n comment: \"<p>Comment Here</p>\",\n phone: \"5554444555444\",\n mobile: \"1010101\",\n website: \"http://www.ekika.co\",\n email: \"hello@ekika.co\",\n }\n )\n {\n active\n category_id{\n id\n }\n bank_ids{\n id\n display_name\n }\n city\n comment\n company_type\n id\n name\n phone\n mobile\n email\n street\n zip\n }\n}",
"variables": "{\n \"context\": {\n \"lang\": \"en_US\",\n \"tz\": \"Asia/Calcutta\",\n \"uid\": 2,\n \"allowed_company_ids\": [\n 1\n ],\n \"bin_size\": true,\n \"params\": {\n \"action\": \"sales\",\n \"actionStack\": [\n {\n \"action\": \"sales\"\n }\n ]\n }\n },\n \"createValues\": {\n \"active\": true,\n \"name\": \"Ekika Corporation New\",\n \"category_id\": [2, 3],\n \"company_type\": \"company\",\n \"bank_ids\": [\n [0, 0, {\n \"sequence\": 10,\n \"bank_id\": 2,\n \"acc_number\": \"11212dff22226665\",\n \"acc_holder_name\": false\n }],\n [0, 0, {\n \"sequence\": 11,\n \"bank_id\": 3,\n \"acc_number\": \"343434343df342278782\",\n \"acc_holder_name\": false\n }]\n ],\n \"city\": \"Gandhinagar\",\n \"street\": \"Gandhinagar\",\n \"street2\": \"\",\n \"zip\": \"382421\",\n \"comment\": \"<p>Comment Here</p>\",\n \"phone\": \"5554444555444\",\n \"mobile\": \"1010101\",\n \"website\": \"http://www.ekika.co\",\n \"email\": \"hello@ekika.co\"\n }\n}"
}
},
"url": {
"raw": "{{base_url}}/user-graphql-apikey",
"host": [
"{{base_url}}"
],
"path": [
"user-graphql-apikey"
]
}
},
"response": []
},
{
"name": "UPDATE",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "VWN%SqC9y=:>$$zkFYzgA]<[PWSQ#''G",
"type": "text"
}
],
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation Update {\n updateResPartner: ResPartner(\n id: 1026, \n ResPartnerValues: {\n active: true,\n name: \"Ekika Corporation PVT LTD.\",\n category_id: null\n company_type: \"company\",\n bank_ids: [\n\t\t\t\t\t[1, 12, {\n\t\t\t\t\t\tsequence: 25,\n\t\t\t\t\t\tbank_id: 2,\n\t\t\t\t\t\tacc_number: \"999999\",\n\t\t\t\t\t\tallow_out_payment: true,\n\t\t\t\t\t\tacc_holder_name: false\n\t\t\t\t\t}],\n [3, 13, 0]\n\t\t\t\t]\n }\n )\n {\n active\n category_id\n bank_ids\n city\n comment\n company_type\n id\n name\n phone\n mobile\n email\n street\n zip\n }\n}",
"variables": ""
}
},
"url": {
"raw": "{{base_url}}/user-graphql-apikey",
"host": [
"{{base_url}}"
],
"path": [
"user-graphql-apikey"
]
}
},
"response": []
},
{
"name": "UPDATE Copy",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "{{api_key}}",
"type": "text"
}
],
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation Update {\n updateResPartner: ResPartner(\n id: 83, \n ResPartnerValues: {\n active: true,\n name: \"Ekika Corporation PVT LTD.4444\",\n category_id: [1, 3]\n company_type: \"company\",\n bank_ids: [\n [1, 42, {\n sequence: 25,\n bank_id: 2,\n allow_out_payment: true,\n acc_holder_name: false\n }],\n \n ]\n }\n )\n {\n active\n category_id{\n id\n }\n bank_ids{\n id\n display_name\n }\n city\n comment\n company_type\n id\n name\n phone\n mobile\n email\n street\n zip\n }\n}",
"variables": "{\n \"id\": 65,\n \"update_value\": {\n \"active\": true,\n \"name\": \"Ekika Corporation PVT LTD.\",\n \"category_id\": [[5,0,0]],\n \"company_type\": \"company\",\n \"bank_ids\": [\n [1, 22, {\n \"sequence\": 25,\n \"bank_id\": 3,\n \"acc_holder_name\": false\n }],\n [3, 23,0]\n\n ]\n },\n \"bank_values\": [\n [0, 0, {\n \"sequence\": 25,\n \"bank_id\": 3,\n \"acc_number\": \"asdasasd12as12\",\n \"allow_out_payment\": true,\n \"acc_holder_name\": false\n }]\n ]\n}"
}
},
"url": {
"raw": "{{base_url}}/user-graphql-apikey",
"host": [
"{{base_url}}"
],
"path": [
"user-graphql-apikey"
]
}
},
"response": []
},
{
"name": "DELETE",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "VWN%SqC9y=:>$$zkFYzgA]<[PWSQ#''G",
"type": "text"
}
],
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation Delete {\n deleteResPartner: ResPartner(\n id: 1028, \n )\n}",
"variables": ""
}
},
"url": {
"raw": "{{base_url}}/user-graphql-apikey",
"host": [
"{{base_url}}"
],
"path": [
"user-graphql-apikey"
]
}
},
"response": []
},
{
"name": "READ Request Export",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "4ku7n2TwgDWchXCqbxSYWZjITXlctCNA",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "graphql",
"graphql": {
"query": "query ExportQuery {\n ResPartner{\n id\n name\n }\n ExportData(\n values: $export_data\n )\n}",
"variables": "{\n \"export_data\":{\n \"import_compat\": false,\n \"context\": {\n \"lang\": \"en_US\",\n \"tz\": \"Asia/Calcutta\",\n \"uid\": 2,\n \"allowed_company_ids\": [\n 1\n ]\n },\n \"domain\": [\n [\n \"user_id\",\n \"=\",\n 2\n ]\n ],\n \"fields\": [\n {\n \"name\": \"name\",\n \"label\": \"Order Reference\",\n \"type\": \"char\"\n },\n {\n \"name\": \"display_name\",\n \"label\": \"Display Name\",\n \"type\": \"char\"\n },\n {\n \"name\": \"activity_ids\",\n \"label\": \"Activities\",\n \"type\": \"one2many\"\n },\n {\n \"name\": \"create_date\",\n \"label\": \"Creation Date\",\n \"type\": \"datetime\"\n },\n {\n \"name\": \"partner_id\",\n \"label\": \"Customer\",\n \"type\": \"many2one\"\n },\n {\n \"name\": \"user_id\",\n \"label\": \"Salesperson\",\n \"type\": \"many2one\"\n },\n {\n \"name\": \"user_id/name\",\n \"label\": \"Salesperson/Name\",\n \"type\": \"char\"\n },\n {\n \"name\": \"state\",\n \"label\": \"Status\",\n \"type\": \"selection\"\n },\n {\n \"name\": \"amount_total\",\n \"label\": \"Total\",\n \"type\": \"monetary\"\n }\n ],\n \"groupby\": [],\n \"ids\": [\n 7,\n 6\n ],\n \"model\": \"sale.order\"\n}\n}"
}
},
"url": {
"raw": "{{base_url}}/user-graphql-apikey",
"host": [
"{{base_url}}"
],
"path": [
"user-graphql-apikey"
]
}
},
"response": []
},
{
"name": "Method Execute",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "FR16<YBlLJRMuKUs|,jN5*7`]OkE?o?\\",
"type": "text"
}
],
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation Method {\n methodSaleOrder: SaleOrder(\n id: 21, \n method_name: \"action_draft\",\n method_parameters: {}\n ){\n id\n }\n}",
"variables": ""
}
},
"url": {
"raw": "{{base_url}}/user-graphql-apikey",
"host": [
"{{base_url}}"
],
"path": [
"user-graphql-apikey"
]
}
},
"response": []
}
]
}
]
},
{
"name": "Standard RESTful JSON",
"item": [
{
"name": "With JWT Copy",
"item": [
{
"name": "Restjson JWT Login",
"request": {
"method": "POST",
"header": [
{
"key": "Origin",
"value": "http://localhost:8018",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"login\": \"admin\",\n \"password\": \"admin\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8019/user-restjson-jwt-rs/api/jwt/auth/login",
"protocol": "http",
"host": [
"localhost"
],
"port": "8019",
"path": [
"user-restjson-jwt-rs",
"api",
"jwt",
"auth",
"login"
]
}
},
"response": []
},
{
"name": "Search Read JWT",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "Authorization",
"value": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOjIsIm5hbWUiOiJNaXRjaGVsbCBBZG1pbiIsImV4cCI6MTc1MTExMjc0M30.egWWxymInIq51PkADEqCCS-ZntKqFl8R1peAH-0zX79PbU-3m9A4Q32V9fpw-1AbV6dmx79Z3dqotoLhMix2T2RinSnO2czmWfn_fv5HNokEvVzqqAiiy6E4tdzQ0Uervg9smCf4F5TqPLBZeofMy72nQtQML5mjh4aGiCbAOkjaYsulBC9fz7ylhNLoWc1INy6OKwrtmS5VZ4kp8PG27a6q1vW380bOK4bXQcEiz78NCkxZd1Xa_V10uN1otu7NH4F0FSTRIlLBr4Gg7b9lL1WHoW0fkukawayF8wYyhWV6HJ53GBj5v38gguKjQwe9KqgLS1QKyV60X2t5uZKDYQ",
"type": "text"
},
{
"key": "Origin",
"value": "http://localhost:8018",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"args\": [\n []\n ],\n \"kwargs\": {\n \"fields\": [\n \"name\",\n \"date_order\",\n \"create_date\"\n ],\n \"limit\": 5,\n \"context\": {\n \"lang\": \"en_US\",\n \"tz\": \"Asia/Calcutta\",\n \"uid\": 2,\n \"allowed_company_ids\": [\n 2,1\n ],\n \"bin_size\": true,\n \"current_company_id\": 2\n }\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8019/user-restjson-jwt-rs/sale.order/search_read",
"protocol": "http",
"host": [
"localhost"
],
"port": "8019",
"path": [
"user-restjson-jwt-rs",
"sale.order",
"search_read"
]
}
},
"response": []
}
]
},
{
"name": "Search Copy",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "x-api-key",
"value": "{{api_key}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"args\": [[[\"is_company\", \"=\", true]]],\n \"kwargs\": {}\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8019/user-restjson-apikey/res.partner/search",
"protocol": "http",
"host": [
"localhost"
],
"port": "8019",
"path": [
"user-restjson-apikey",
"res.partner",
"search"
]
}
},
"response": []
},
{
"name": "Search Read Copy",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "x-api-key",
"value": "{{api_key}}",
"type": "text"
},
{
"key": "Origin",
"value": "http://localhost:8018",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"args\": [\n []\n ],\n \"kwargs\": {\n \"fields\": [\n \"name\",\n \"date_order\",\n \"create_date\"\n ],\n \"limit\": 5,\n \"context\": {\n \"lang\": \"en_US\",\n \"tz\": \"Asia/Calcutta\",\n \"uid\": 2,\n \"allowed_company_ids\": [\n 2,1\n ],\n \"bin_size\": true,\n \"current_company_id\": 2\n }\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8019/user-restjson-apikey/sale.order/search_read",
"protocol": "http",
"host": [
"localhost"
],
"port": "8019",
"path": [
"user-restjson-apikey",
"sale.order",
"search_read"
]
}
},
"response": []
},
{
"name": "Search Count Copy",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "x-api-key",
"value": "4bd5XMAek8iyrirjAbr6SVR8Ua7WnRnn",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"args\": [[[\"is_company\", \"=\", true]]],\n \"kwargs\": {}\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8012/api-rest-json/res.partner/search_count",
"protocol": "http",
"host": [
"localhost"
],
"port": "8012",
"path": [
"api-rest-json",
"res.partner",
"search_count"
]
}
},
"response": []
},
{
"name": "Read Copy",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "x-api-key",
"value": "4bd5XMAek8iyrirjAbr6SVR8Ua7WnRnn",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"args\": [[14, 10, 11]],\n \"kwargs\": {\"fields\": [\"name\", \"country_id\", \"comment\", \"is_company\"]}\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8012/api-rest-json/res.partner/read",
"protocol": "http",
"host": [
"localhost"
],
"port": "8012",
"path": [
"api-rest-json",
"res.partner",
"read"
]
}
},
"response": []
},
{
"name": "Read Group Copy",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "x-api-key",
"value": "4bd5XMAek8iyrirjAbr6SVR8Ua7WnRnn",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"args\": [[[\"is_company\", \"=\", false]]],\n \"kwargs\": {\"fields\": [\"name\", \"country_id\", \"comment\", \"is_company\"], \"groupby\": \"country_id\"}\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8012/api-rest-json/res.partner/read_group",
"protocol": "http",
"host": [
"localhost"
],
"port": "8012",
"path": [
"api-rest-json",
"res.partner",
"read_group"
]
}
},
"response": []
},
{
"name": "Fields Get Copy",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "x-api-key",
"value": "4bd5XMAek8iyrirjAbr6SVR8Ua7WnRnn",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"args\": [],\n \"kwargs\": {\"attributes\": [\"string\", \"help\", \"type\"]}\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8012/api-rest-json/res.partner/fields_get",
"protocol": "http",
"host": [
"localhost"
],
"port": "8012",
"path": [
"api-rest-json",
"res.partner",
"fields_get"
]
}
},
"response": []
},
{
"name": "Check Access Rights Copy",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "x-api-key",
"value": "4bd5XMAek8iyrirjAbr6SVR8Ua7WnRnn",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"args\": [\"create\"],\n \"kwargs\": {}\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8012/api-rest-json/res.partner/check_access_rights",
"protocol": "http",
"host": [
"localhost"
],
"port": "8012",
"path": [
"api-rest-json",
"res.partner",
"check_access_rights"
]
}
},
"response": []
},
{
"name": "Create Copy",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "x-api-key",
"value": "4bd5XMAek8iyrirjAbr6SVR8Ua7WnRnn",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"args\": [{\"name\": \"Sample Partner\", \"email\": \"sample-partner@example.com\"}],\n \"kwargs\": {}\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8012/api-rest-json/res.partner/create",
"protocol": "http",
"host": [
"localhost"
],
"port": "8012",
"path": [
"api-rest-json",
"res.partner",
"create"
]
}
},
"response": []
},
{
"name": "Write Copy",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "x-api-key",
"value": "4bd5XMAek8iyrirjAbr6SVR8Ua7WnRnn",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"args\": [[41], {\"name\": \"Sample Partner Change\", \"email\": \"sample-partner-change@example.com\"}],\n \"kwargs\": {}\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8012/api-rest-json/res.partner/write",
"protocol": "http",
"host": [
"localhost"
],
"port": "8012",
"path": [
"api-rest-json",
"res.partner",
"write"
]
}
},
"response": []
},
{
"name": "Unlink Copy",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "x-api-key",
"value": "4bd5XMAek8iyrirjAbr6SVR8Ua7WnRnn",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"args\": [[41]],\n \"kwargs\": {}\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8012/api-rest-json/res.partner/unlink",
"protocol": "http",
"host": [
"localhost"
],
"port": "8012",
"path": [
"api-rest-json",
"res.partner",
"unlink"
]
}
},
"response": []
}
]
}
],
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"packages": {},
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"packages": {},
"exec": [
""
]
}
}
],
"variable": [
{
"key": "api_key",
"value": "a",
"type": "string"
},
{
"key": "base_url",
"value": "",
"type": "default"
}
]
}