{"info":{"_postman_id":"6ee00339-3e9a-4258-ba00-da58f8041c39","name":"ProjectWise","description":"<html><head></head><body><p><strong>Create Postman Environment Variables</strong> in the collections requests for:</p>\n<ol>\n<li><p>{PWBentleyDomainStart}</p>\n</li>\n<li><p>{PWBentleyRepository}</p>\n</li>\n<li><p>{PWBentleyToken}</p>\n</li>\n</ol>\n<p>ProjectWise (<strong>Bentley Systems</strong>) WSG REST API to work with the Document Management System (DMS).</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"5920166","collectionId":"6ee00339-3e9a-4258-ba00-da58f8041c39","publishedId":"2sB2j3BWuf","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-05-13T11:38:19.000Z"},"item":[{"name":"PW-WSG-GetRepository","event":[{"listen":"test","script":{"id":"276424dd-7018-4443-bc46-b13832bdaa9e","exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","pm.test(\"Validate response structure and values\", function () {\r","    var jsonData = pm.response.json();\r","    // Check if 'instances' array exists\r","    pm.expect(jsonData).to.have.property('instances');\r","});\r","\r","pm.test(\"Validate response has at least 1 repository\", function () {\r","    var jsonData = pm.response.json();\r","    // Check 1st instance exists\r","    var instance = jsonData.instances[0];\r","    pm.expect(instance).to.have.property('instanceId');\r","    pm.expect(instance.instanceId).to.include('bentley.com');\r","});\r",""],"type":"text/javascript","packages":{}}}],"id":"74ac9803-5558-457a-8e59-578f679831da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://{{PWBentleyDomainStart}}.bentley.com/ws/v2.8/Repositories/{{PWBentleyRepository}}/.","description":"<p>Login to a specified ProjectWise repository.</p>\n","urlObject":{"protocol":"https","path":["ws","v2.8","Repositories","{{PWBentleyRepository}}","."],"host":["{{PWBentleyDomainStart}}","bentley","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"74ac9803-5558-457a-8e59-578f679831da"},{"name":"PW-WSG-GetRepositoryDocuments","id":"7913ca7b-ab95-46fe-8dbb-732e1d0ff2e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Basic {{PWBentleyToken}}","type":"text"}],"url":"https://{{PWBentleyDomainStart}}.bentley.com/ws/v2.8/Repositories/{{PWBentleyRepository}}/PW_WSG/Document/","description":"<p>Get a list of Documents from a ProjectWise repository using the WSG REST API</p>\n","urlObject":{"protocol":"https","path":["ws","v2.8","Repositories","{{PWBentleyRepository}}","PW_WSG","Document",""],"host":["{{PWBentleyDomainStart}}","bentley","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7913ca7b-ab95-46fe-8dbb-732e1d0ff2e9"}]}