{ "info": { "_postman_id": "9c705c97-a391-4c1b-b28c-0166100ecfeb", "name": "oidc-test", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "7631578" }, "item": [ { "name": "realms/{realm}/protocol/openid-connect/token GardenAdmin", "event": [ { "listen": "test", "script": { "exec": [ "var jsonData = pm.response.json();", "pm.environment.set(\"authToken\", jsonData.access_token);", "pm.environment.set(\"refreshToken\", jsonData.refresh_token);", "", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded", "type": "text" }, { "key": "X-ID-Language", "value": "es_CO", "type": "text" } ], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "username", "value": "GardenAdmin", "type": "text" }, { "key": "password", "value": "123", "type": "text" }, { "key": "grant_type", "value": "password", "type": "text" }, { "key": "client_id", "value": "rest-api", "type": "text" }, { "key": "client_secret", "value": "{{clientSecret}}", "type": "text" } ] }, "url": { "raw": "{{keycloakHost}}/realms/GardenWorld/protocol/openid-connect/token", "host": [ "{{keycloakHost}}" ], "path": [ "realms", "GardenWorld", "protocol", "openid-connect", "token" ] } }, "response": [] }, { "name": "realms/{realm}/protocol/openid-connect/token GardenUser", "event": [ { "listen": "test", "script": { "exec": [ "var jsonData = pm.response.json();", "pm.environment.set(\"authToken\", jsonData.access_token);", "pm.environment.set(\"refreshToken\", jsonData.refresh_token);", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded", "type": "text" } ], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "username", "value": "GardenUser", "type": "text" }, { "key": "password", "value": "123", "type": "text" }, { "key": "grant_type", "value": "password", "type": "text" }, { "key": "client_id", "value": "rest-api", "type": "text" }, { "key": "client_secret", "value": "{{clientSecret}}", "type": "text" } ] }, "url": { "raw": "{{keycloakHost}}/realms/GardenWorld/protocol/openid-connect/token", "host": [ "{{keycloakHost}}" ], "path": [ "realms", "GardenWorld", "protocol", "openid-connect", "token" ] } }, "response": [] }, { "name": "realms/{realm}/protocol/openid-connect/token refresh", "event": [ { "listen": "test", "script": { "exec": [ "var jsonData = pm.response.json();", "pm.environment.set(\"authToken\", jsonData.access_token);", "pm.environment.set(\"refreshToken\", jsonData.refresh_token);", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded", "type": "text" } ], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "grant_type", "value": "refresh_token", "type": "text" }, { "key": "client_id", "value": "rest-api", "type": "text" }, { "key": "client_secret", "value": "{{clientSecret}}", "type": "text" }, { "key": "refresh_token", "value": "{{refreshToken}}", "type": "text" } ] }, "url": { "raw": "{{keycloakHost}}/realms/GardenWorld/protocol/openid-connect/token", "host": [ "{{keycloakHost}}" ], "path": [ "realms", "GardenWorld", "protocol", "openid-connect", "token" ] } }, "response": [] }, { "name": "api/v1/models/{table name}?filter={where clause}", "request": { "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Authorization", "type": "text", "value": "Bearer {{authToken}}" } ], "url": { "raw": "{{idempiereHost}}/api/v1/models/c_tax?filter=C_TaxCategory_ID=107", "host": [ "{{idempiereHost}}" ], "path": [ "api", "v1", "models", "c_tax" ], "query": [ { "key": "filter", "value": "C_TaxCategory_ID=107" } ] } }, "response": [] }, { "name": "api/v1/models/{table name}?select={columnname list}", "request": { "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Authorization", "type": "text", "value": "Bearer {{authToken}}" } ], "url": { "raw": "{{idempiereHost}}/api/v1/models/c_order?select=DocumentNo,Description", "host": [ "{{idempiereHost}}" ], "path": [ "api", "v1", "models", "c_order" ], "query": [ { "key": "select", "value": "DocumentNo,Description" } ] } }, "response": [] } ] }