Created
October 30, 2024 13:41
-
-
Save craibuc/107eb404cc21f7dd60f5272a42f0bd12 to your computer and use it in GitHub Desktop.
Postman collection for AMCS Dossier's API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"_postman_id": "ac34d3cd-cf5f-4fcd-a14d-82a67c355a0e", | |
"name": "Dossier", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", | |
"_exporter_id": "7408972", | |
"_collection_link": "https://grey-moon-4259.postman.co/workspace/Dossier~6b685c39-5800-43e8-80bf-a86a9fda4011/collection/7408972-ac34d3cd-cf5f-4fcd-a14d-82a67c355a0e?action=share&source=collection_link&creator=7408972" | |
}, | |
"item": [ | |
{ | |
"name": "Auth", | |
"item": [ | |
{ | |
"name": "GET token", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.collectionVariables.set(\"token\", pm.response.json().access_token);" | |
], | |
"type": "text/javascript", | |
"packages": {} | |
} | |
} | |
], | |
"request": { | |
"method": "POST", | |
"header": [], | |
"body": { | |
"mode": "urlencoded", | |
"urlencoded": [ | |
{ | |
"key": "grant_type", | |
"value": "password", | |
"type": "text" | |
}, | |
{ | |
"key": "scope", | |
"value": "DossierApi", | |
"type": "text" | |
}, | |
{ | |
"key": "client_id", | |
"value": "{{client_id}}", | |
"type": "text" | |
}, | |
{ | |
"key": "client_secret", | |
"value": "{{client_secret}}", | |
"type": "text" | |
}, | |
{ | |
"key": "username", | |
"value": "{{username}}", | |
"type": "text" | |
}, | |
{ | |
"key": "password", | |
"value": "{{password}}", | |
"type": "text" | |
} | |
] | |
}, | |
"url": { | |
"raw": "https://{{auth_server}}/connect/token", | |
"protocol": "https", | |
"host": [ | |
"{{auth_server}}" | |
], | |
"path": [ | |
"connect", | |
"token" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "Accounting", | |
"item": [ | |
{ | |
"name": "FinancialTransactionInformation", | |
"item": [ | |
{ | |
"name": "FinancialTransactionInformation", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/Accounting/FinancialTransactionInformation", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"Accounting", | |
"FinancialTransactionInformation" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "GlAccounts", | |
"item": [ | |
{ | |
"name": "GlAccounts", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/Accounting/GlAccounts", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"Accounting", | |
"GlAccounts" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Update gl account", | |
"request": { | |
"method": "PUT", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": " {\n \"glAccountId\": 33,\n \"glAccountValue\": \"5030100\",\n \"organizationalUnitId\": 3,\n \"glAccountName\": \"Tyres\"\n }", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "{{base_uri}}/Accounting/GlAccounts/:id/Update", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"Accounting", | |
"GlAccounts", | |
":id", | |
"Update" | |
], | |
"variable": [ | |
{ | |
"key": "id", | |
"value": "33" | |
} | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "GlAccountTypes", | |
"item": [ | |
{ | |
"name": "GlAccountTypes", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/Accounting/GlAccountTypes", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"Accounting", | |
"GlAccountTypes" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"name": "Assets", | |
"item": [ | |
{ | |
"name": "Asset Type", | |
"item": [ | |
{ | |
"name": "AssetTypes", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/Assets/AssetTypes", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"Assets", | |
"AssetTypes" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "Assets", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/Assets/Assets", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"Assets", | |
"Assets" | |
], | |
"query": [ | |
{ | |
"key": "operation", | |
"value": "ew0K4oCccGFnZeKAnToxLA0K4oCcYW1vdW504oCdOjEwDQrigJxmaWx0ZXJz4oCdOiBbDQrigJxsb2dpY+KAnTog4oCcYW5k4oCdDQrigJxmaWx0ZXLigJ06IHsNCuKAnGZpZWxk4oCdOuKAnXByaW1hcnlBc3NldElkZW50aWZpZXLigJ0sDQrigJxvcGVyYXRvcuKAnTrigJ1lceKAnSwNCuKAnHZhbHVl4oCdOiDigJwxMDHigJ0NCn0NCl0NCn0=", | |
"disabled": true | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Show asset", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/Assets/Assets/:id", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"Assets", | |
"Assets", | |
":id" | |
], | |
"variable": [ | |
{ | |
"key": "id", | |
"value": "2732" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Show asset Copy", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/Assets/Assets/:id", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"Assets", | |
"Assets", | |
":id" | |
], | |
"variable": [ | |
{ | |
"key": "id", | |
"value": "2717" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Create asset", | |
"request": { | |
"method": "POST", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n acquisitionCost: 123456,\n acquisitionDate: \"2024-09-01T00:00:00\",\n isPartsTaxExempted: false,\n isLaborTaxExempted: false,\n assetTypeId: 186,\n dateInService: \"2024-09-02T00:00:00\",\n partTypeId: 23,\n licensePlate: \"XYZ000\",\n licensePlateRegionId: -29,\n manufacturedYear: 2020,\n modelYear: 2020,\n primaryAssetIdentifier: \"BAR\",\n serialNumber: \"9876543210\",\n siteId: 8,\n dispositionId: 36,\n templateId: 49,\n vehicleIdentificationNumber: \"ABCDEFGHIJK\"\n}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "{{base_uri}}/Assets/Assets/Create", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"Assets", | |
"Assets", | |
"Create" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Update asset", | |
"request": { | |
"method": "PUT", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"assetId\": 2731,\n \"acquisitionCost\": 1000,\n \"acquisitionDate\": \"9/1/2024\",\n // \"isPartsTaxExempted\": false,\n // \"isLaborTaxExempted\": false,\n \"assetTypeId\": 186,\n // \"assetType\": null,\n \"dateInService\": \"2024-10-01\",\n // \"dateOutOfService\": null,\n \"partTypeId\": 23,\n // \"partType\": null,\n \"licensePlate\": \"123 XYZ\",\n \"licensePlateRegionId\": -29,\n // \"licensePlateRegion\": null,\n \"manufacturedYear\": 2000,\n \"modelYear\": 2000,\n // \"photoDocumentId\": null,\n \"primaryAssetIdentifier\": \"100010\",\n \"serialNumber\": \"ABCDEFGHIJKLMNO\",\n \"siteId\": 8,\n // \"site\": null,\n \"dispositionId\": 36,\n // \"disposition\": null,\n \"templateId\": 49,\n // \"template\": null,\n \"vehicleIdentificationNumber\": \"0123456789\"\n // \"componentSerialNumbers\": [],\n // \"assetComponentCodes\": [],\n // \"personsAssets\": [],\n // \"operationalHours\": [],\n // \"permits\": [],\n // \"assetParts\": [],\n // \"assetWarranties\": [],\n // \"assetGlSpecValues\": [],\n // \"assetPmAssignments\": [],\n // \"recurringCosts\": [],\n // \"editMetadata\": null\n}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "{{base_uri}}/Assets/Assets/:id/Update", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"Assets", | |
"Assets", | |
":id", | |
"Update" | |
], | |
"variable": [ | |
{ | |
"key": "id", | |
"value": "2731" | |
} | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "Auditing", | |
"item": [ | |
{ | |
"name": "EventType", | |
"event": [ | |
{ | |
"listen": "prerequest", | |
"script": { | |
"exec": [ | |
"const operation = {", | |
" \"Page\": 1,", | |
" \"Amount\": 10,", | |
" \"Expands\": [", | |
" {", | |
" \"Name\": \"Event\",", | |
" \"Expands\": [", | |
" {\"Name\": \"EventType\"},", | |
" {\"Name\": \"EventStatus\"},", | |
" ]", | |
" },", | |
" {", | |
" \"Name\": \"Reference\",", | |
" },", | |
" {", | |
" \"Name\": \"EventDetailType\",", | |
" }", | |
" ]", | |
"}", | |
"", | |
"// Convert the JSON object to a string", | |
"const json = JSON.stringify(operation);", | |
"", | |
"// Convert the string to a Base64 encoded string", | |
"const base64 = btoa(json);", | |
"", | |
"// Set the Base64 value to the `operation` parameter", | |
"pm.request.url.addQueryParams({", | |
" key: 'operation',", | |
" value: base64", | |
"});" | |
], | |
"type": "text/javascript", | |
"packages": {} | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/auditing/events/withEventDetailTypeAndReference", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"auditing", | |
"events", | |
"withEventDetailTypeAndReference" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "ContacIinfos", | |
"item": [ | |
{ | |
"name": "ContactInfos", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/ContactInfo/ContactInfos", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"ContactInfo", | |
"ContactInfos" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "ContactInfos Copy", | |
"event": [ | |
{ | |
"listen": "prerequest", | |
"script": { | |
"exec": [ | |
"const operation = {", | |
" \"Page\": 1,", | |
" \"Amount\": 10,", | |
" \"Filter\": {", | |
" \"Logic\": \"and\",", | |
" \"Filters\": [", | |
" {", | |
" \"Field\": \"referencedEntityId\",", | |
" \"Operator\": \"eq\",", | |
" \"Value\": \"946\"", | |
" }", | |
" ]", | |
" },", | |
" \"OrderBy\": [", | |
" {", | |
" \"Field\": \"name\",", | |
" \"Dir\": \"asc\"", | |
" }", | |
" ],", | |
" \"Expands\": [", | |
" {", | |
" \"Name\": \"ContactInfoSubType.ContactInfoType\",", | |
" }", | |
" ]", | |
"}", | |
"", | |
"// Convert the JSON object to a string", | |
"const json = JSON.stringify(operation);", | |
"", | |
"// Convert the string to a Base64 encoded string", | |
"const base64 = btoa(json);", | |
"", | |
"// Set the Base64 value to the `operation` parameter", | |
"pm.request.url.addQueryParams({", | |
" key: 'operation',", | |
" value: base64", | |
"});" | |
], | |
"type": "text/javascript", | |
"packages": {} | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/ContactInfo/ContactInfos", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"ContactInfo", | |
"ContactInfos" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "ContactInfoTypes", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/ContactInfo/ContactInfoTypes", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"ContactInfo", | |
"ContactInfoTypes" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "ContactInfoSubTypes", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/ContactInfo/ContactInfoSubTypes", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"ContactInfo", | |
"ContactInfoSubTypes" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "Entities", | |
"item": [ | |
{ | |
"name": "Entities", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/entities/Entities", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"entities", | |
"Entities" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "show entity", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/Entities/Entities/:id", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"Entities", | |
"Entities", | |
":id" | |
], | |
"variable": [ | |
{ | |
"key": "id", | |
"value": "134" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Document Mappings", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/entities/documentmappings", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"entities", | |
"documentmappings" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "Inventory", | |
"item": [ | |
{ | |
"name": "Parts", | |
"item": [ | |
{ | |
"name": "List parts", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/inventory/parts", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"inventory", | |
"parts" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"name": "Locations", | |
"item": [ | |
{ | |
"name": "Countries", | |
"event": [ | |
{ | |
"listen": "prerequest", | |
"script": { | |
"exec": [ | |
"const operation = {", | |
" \"Page\": 1,", | |
" \"Amount\": 100,", | |
" \"Filter\": {", | |
" \"Logic\": \"and\",", | |
" \"Filters\": [", | |
" {", | |
" \"Field\": \"countryId\",", | |
" \"Operator\": \"eq\",", | |
" \"Value\": \"1\"", | |
" }", | |
" ]", | |
" },", | |
"// \"OrderBy\": [", | |
"// {", | |
"// \"Field\": \"regions.regionName\",", | |
"// \"Dir\": \"asc\"", | |
"// }", | |
"// ],", | |
" \"Expands\": [", | |
" {", | |
" \"Name\": \"Regions\",", | |
" }", | |
" ]", | |
"}", | |
"", | |
"// Convert the JSON object to a string", | |
"const json = JSON.stringify(operation);", | |
"", | |
"// Convert the string to a Base64 encoded string", | |
"const base64 = btoa(json);", | |
"", | |
"// Set the Base64 value to the `operation` parameter", | |
"pm.request.url.addQueryParams({", | |
" key: 'operation',", | |
" value: base64", | |
"});" | |
], | |
"type": "text/javascript", | |
"packages": {} | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/Locations/Countries", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"Locations", | |
"Countries" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Regions", | |
"event": [ | |
{ | |
"listen": "prerequest", | |
"script": { | |
"exec": [ | |
"const operation = {", | |
" \"Page\": 1,", | |
" \"Amount\": 100,", | |
" \"Filter\": {", | |
" \"Logic\": \"and\",", | |
" \"Filters\": [", | |
" {", | |
" \"Field\": \"countryId\",", | |
" \"Operator\": \"eq\",", | |
" \"Value\": \"1\"", | |
" }", | |
" ]", | |
" },", | |
" \"OrderBy\": [", | |
" {", | |
" \"Field\": \"regionName\",", | |
" \"Dir\": \"asc\"", | |
" }", | |
" ],", | |
" \"Expands\": [", | |
" {", | |
" \"Name\": \"Country\",", | |
" }", | |
" ]", | |
"}", | |
"", | |
"// Convert the JSON object to a string", | |
"const json = JSON.stringify(operation);", | |
"", | |
"// Convert the string to a Base64 encoded string", | |
"const base64 = btoa(json);", | |
"", | |
"// Set the Base64 value to the `operation` parameter", | |
"pm.request.url.addQueryParams({", | |
" key: 'operation',", | |
" value: base64", | |
"});" | |
], | |
"type": "text/javascript", | |
"packages": {} | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/Locations/Regions", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"Locations", | |
"Regions" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "Maintenance", | |
"item": [ | |
{ | |
"name": "Tasks", | |
"item": [ | |
{ | |
"name": "Tasks", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/Maintenance/Tasks", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"Maintenance", | |
"Tasks" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "WorkOrders", | |
"item": [ | |
{ | |
"name": "WorkOrders", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/Maintenance/WorkOrders", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"Maintenance", | |
"WorkOrders" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "WorkRequests", | |
"item": [ | |
{ | |
"name": "WorkRequests", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/Maintenance/WorkRequests", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"Maintenance", | |
"WorkRequests" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "Warranties", | |
"item": [ | |
{ | |
"name": "Warranties", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/Maintenance/Warranties", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"Maintenance", | |
"Warranties" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"name": "Notifications", | |
"item": [ | |
{ | |
"name": "NotificationSubscribers", | |
"item": [ | |
{ | |
"name": "NotificationSubscribers", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/Notifications/NotificationSubscribers/337", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"Notifications", | |
"NotificationSubscribers", | |
"337" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "Notifications", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/Notifications/NotificationMessages", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"Notifications", | |
"NotificationMessages" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "Procurement", | |
"item": [ | |
{ | |
"name": "Vendors", | |
"item": [ | |
{ | |
"name": "Vendor Type", | |
"item": [ | |
{ | |
"name": "List vendor types", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/procurement/vendortypes", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"procurement", | |
"vendortypes" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "VendorParts", | |
"item": [ | |
{ | |
"name": "VendorParts", | |
"protocolProfileBehavior": { | |
"disableBodyPruning": true | |
}, | |
"request": { | |
"method": "GET", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"page\":1,\n \"amount\":10,\n \"expands\": [\n {\n \"name\":\"vendorVendorTypes\"\n }\n ]\n}", | |
"options": { | |
"raw": { | |
"language": "text" | |
} | |
} | |
}, | |
"url": { | |
"raw": "{{base_uri}}/procurement/VendorParts", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"procurement", | |
"VendorParts" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "Vendor Store", | |
"item": [ | |
{ | |
"name": "Vendor Stores", | |
"protocolProfileBehavior": { | |
"disableBodyPruning": true | |
}, | |
"request": { | |
"method": "GET", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"page\":1,\n \"amount\":10,\n \"expands\": [\n {\n \"name\":\"vendorVendorTypes\"\n }\n ]\n}", | |
"options": { | |
"raw": { | |
"language": "text" | |
} | |
} | |
}, | |
"url": { | |
"raw": "{{base_uri}}/Procurement/VendorStores", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"Procurement", | |
"VendorStores" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Show vendor store", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/procurement/VendorStores/:id", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"procurement", | |
"VendorStores", | |
":id" | |
], | |
"variable": [ | |
{ | |
"key": "id", | |
"value": "942" | |
} | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "Vendors", | |
"protocolProfileBehavior": { | |
"disableBodyPruning": true | |
}, | |
"request": { | |
"method": "GET", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "", | |
"options": { | |
"raw": { | |
"language": "text" | |
} | |
} | |
}, | |
"url": { | |
"raw": "{{base_uri}}/procurement/vendors", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"procurement", | |
"vendors" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Create vendor", | |
"request": { | |
"method": "POST", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"name\": \"Bar\",\n \"vendorIdentifier\": \"BAR\",\n \"description\": \"Bar, Inc.\",\n \"notes\": \"lorem ipsum\",\n \"templateId\": 41,\n \"dispositionId\": 1,\n \"billingMethodId\": null\n}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "{{base_uri}}/procurement/vendors/create", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"procurement", | |
"vendors", | |
"create" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Show vendor", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/procurement/vendors/:id", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"procurement", | |
"vendors", | |
":id" | |
], | |
"variable": [ | |
{ | |
"key": "id", | |
"value": "942" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Update vendor", | |
"request": { | |
"method": "PUT", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"vendorId\": 942,\n \"name\": \"Acme\",\n \"templateId\": 41,\n \"dispositionId\": 1,\n \"vendorIdentifier\": \"f47ac10b58cc4372a5670e02b2c3d479\"\n}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "{{base_uri}}/procurement/vendors/:id/update", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"procurement", | |
"vendors", | |
":id", | |
"update" | |
], | |
"variable": [ | |
{ | |
"key": "id", | |
"value": "942" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Delete vendor", | |
"request": { | |
"method": "DELETE", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"vendorId\": 942,\n \"name\": \"Acme\",\n \"templateId\": 41,\n \"dispositionId\": 1\n}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "{{base_uri}}/procurement/vendors/:id/delete", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"procurement", | |
"vendors", | |
":id", | |
"delete" | |
], | |
"variable": [ | |
{ | |
"key": "id", | |
"value": "942" | |
} | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "PurchaseOrders", | |
"item": [ | |
{ | |
"name": "PurchaseOrders", | |
"protocolProfileBehavior": { | |
"disableBodyPruning": true | |
}, | |
"request": { | |
"method": "GET", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"page\":1,\n \"amount\":10,\n \"expands\": [\n {\n \"name\":\"vendorVendorTypes\"\n }\n ]\n}", | |
"options": { | |
"raw": { | |
"language": "text" | |
} | |
} | |
}, | |
"url": { | |
"raw": "{{base_uri}}/procurement/PurchaseOrders", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"procurement", | |
"PurchaseOrders" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"name": "Personnel", | |
"item": [ | |
{ | |
"name": "Personnel", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/Personnel/Personnel/", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"Personnel", | |
"Personnel", | |
"" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "CertificationsTypes", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/Personnel/CertificationTypes", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"Personnel", | |
"CertificationTypes" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "TelematicsDevices", | |
"item": [ | |
{ | |
"name": "TelematicsDevices", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{base_uri}}/Assets/TelematicsDevices", | |
"host": [ | |
"{{base_uri}}" | |
], | |
"path": [ | |
"Assets", | |
"TelematicsDevices" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
} | |
], | |
"auth": { | |
"type": "bearer", | |
"bearer": [ | |
{ | |
"key": "token", | |
"value": "{{token}}", | |
"type": "string" | |
} | |
] | |
}, | |
"event": [ | |
{ | |
"listen": "prerequest", | |
"script": { | |
"type": "text/javascript", | |
"packages": {}, | |
"exec": [ | |
"" | |
] | |
} | |
}, | |
{ | |
"listen": "test", | |
"script": { | |
"type": "text/javascript", | |
"packages": {}, | |
"exec": [ | |
"" | |
] | |
} | |
} | |
], | |
"variable": [ | |
{ | |
"key": "client_id", | |
"value": "", | |
"type": "string" | |
}, | |
{ | |
"key": "client_secret", | |
"value": "", | |
"type": "string" | |
}, | |
{ | |
"key": "base_uri", | |
"value": "", | |
"type": "string" | |
}, | |
{ | |
"key": "token", | |
"value": "" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment