Odoo GraphQL Subscription using Node, Express JS for Sample
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

167 lines
4.8 KiB

5 months ago
{
"info": {
"_postman_id": "7bb9858f-4bd4-4869-b69b-62ba97ad8392",
"name": "GraphQL Authentications",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "29186461"
},
"item": [
{
"name": "Full Read",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Basic YWRtaW46YWRtaW4="
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "graphql",
"graphql": {
"query": "query MyQuery($offset: Int, $limit: Int, $order: String, $domain: [[Any]]) {\n ResPartner(\n offset: $offset\n limit: $limit\n order: $order\n domain: $domain\n )\n {\n id\n name\n phone\n email\n is_company\n country_id{\n name\n code\n }\n user_id{\n name\n active\n }\n company_id{\n name\n }\n }\n}\n",
"variables": "{\n \"offset\": 0,\n \"limit\": 5,\n \"order\": \"name,id desc\",\n \"domain\": [[\"is_company\",\"=\",true]]\n}\n"
}
},
"url": {
"raw": "http://192.168.1.15:8016/gqlapi",
"protocol": "http",
"host": [
"192",
"168",
"1",
"15"
],
"port": "8016",
"path": [
"gqlapi"
]
}
},
"response": []
},
{
"name": "Auth API Key",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "nZ(xta#/(uh#DN,Ce\"=U`iA(y|5Fd]b&"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "graphql",
"graphql": {
"query": "query MyQuery($offset: Int, $limit: Int, $order: String, $domain: [[Any]]) {\n ResPartner(\n offset: $offset\n limit: $limit\n order: $order\n domain: $domain\n )\n {\n id\n name\n phone\n email\n is_company\n country_id{\n name\n code\n }\n user_id{\n name\n active\n }\n company_id{\n name\n }\n }\n}\n",
"variables": "{\n \"offset\": 0,\n \"limit\": 5,\n \"order\": \"name,id desc\",\n \"domain\": [[\"is_company\",\"=\",true]]\n}\n"
}
},
"url": {
"raw": "http://192.168.1.15:8016/gqlkey",
"protocol": "http",
"host": [
"192",
"168",
"1",
"15"
],
"port": "8016",
"path": [
"gqlkey"
]
}
},
"response": []
},
{
"name": "Auth User",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "username",
"value": "admin"
},
{
"key": "password",
"value": "admin",
"type": "text"
}
],
"body": {
"mode": "graphql",
"graphql": {
"query": "query MyQuery($offset: Int, $limit: Int, $order: String, $domain: [[Any]]) {\n ResPartner(\n offset: $offset\n limit: $limit\n order: $order\n domain: $domain\n )\n {\n id\n name\n phone\n email\n is_company\n country_id{\n name\n code\n }\n user_id{\n name\n active\n }\n company_id{\n name\n }\n }\n}\n",
"variables": "{\n \"offset\": 0,\n \"limit\": 5,\n \"order\": \"name,id desc\",\n \"domain\": [[\"is_company\",\"=\",true]]\n}\n"
}
},
"url": {
"raw": "http://192.168.1.15:8016/gqluser",
"protocol": "http",
"host": [
"192",
"168",
"1",
"15"
],
"port": "8016",
"path": [
"gqluser"
]
}
},
"response": []
},
{
"name": "Auth Basic",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Basic YWRtaW46YWRtaW4="
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "graphql",
"graphql": {
"query": "query MyQuery($offset: Int, $limit: Int, $order: String, $domain: [[Any]]) {\n ResPartner(\n offset: $offset\n limit: $limit\n order: $order\n domain: $domain\n )\n {\n id\n name\n phone\n email\n is_company\n country_id{\n name\n code\n }\n user_id{\n name\n active\n }\n company_id{\n name\n }\n }\n}\n",
"variables": "{\n \"offset\": 0,\n \"limit\": 5,\n \"order\": \"name,id desc\",\n \"domain\": [[\"is_company\",\"=\",true]]\n}\n"
}
},
"url": {
"raw": "http://192.168.1.15:8016/gqlapi",
"protocol": "http",
"host": [
"192",
"168",
"1",
"15"
],
"port": "8016",
"path": [
"gqlapi"
]
}
},
"response": []
}
]
}