Postman Project
 🎯 Objective​
Create a Postman project with the REST requests that allow obtaining information about the CAs deployed in an OE Instance.
📄 Document
Attached below are the Postman project exports, both the Collections and the Environments, in case anyone needs to import them into their Workspace.
postman_collection
< types. Open each request and click \"Send\" to see what happens.\n\n#### **Step 2: View responses**\n\nObserve the response tab for status code (200 OK), response time, and size.\n\n#### **Step 3: Send new Body data**\n\nUpdate or add new data in \"Body\" in the POST request. Typically, Body data is also used in PUT request.\n\n```\n{\n \"name\": \"Add your name in the body\"\n}\n\n ```\n\n#### **Step 4: Update the variable**\n\nVariables enable you to store and reuse values in Postman. We have created a [variable](https://learning.postman.com/docs/sending-requests/variables/) called `base_url` with the sample request [https://postman-api-learner.glitch.me](https://postman-api-learner.glitch.me). Replace it with your API endpoint to customize this collection.\n\n#### **Step 5: Add tests in the \"Tests\" tab**\n\nTests help you confirm that your API is working as expected. You can write test scripts in JavaScript and view the output in the \"Test Results\" tab.\n\n<img src=\"https://content.pstmn.io/b5f280a7-4b09-48ec-857f-0a7ed99d7ef8/U2NyZWVuc2hvdCAyMDIzLTAzLTI3IGF0IDkuNDcuMjggUE0ucG5n\" />\n\n## 💪 Pro tips\n\n- Use folders to group related requests and organize the collection.\n- Add more [scripts](https://learning.postman.com/docs/writing-scripts/intro-to-scripts/) in \"Tests\" to verify if the API works as expected and execute workflows.\n \n\n## 💡Related templates\n\n[API testing basics](https://go.postman.co/redirect/workspace?type=personal&collectionTemplateId=e9a37a28-055b-49cd-8c7e-97494a21eb54&sourceTemplateId=ddb19591-3097-41cf-82af-c84273e56719) \n[API documentation](https://go.postman.co/redirect/workspace?type=personal&collectionTemplateId=e9c28f47-1253-44af-a2f3-20dce4da1f18&sourceTemplateId=ddb19591-3097-41cf-82af-c84273e56719) \n[Authorization methods](https://go.postman.co/redirect/workspace?type=personal&collectionTemplateId=31a9a6ed-4cdf-4ced-984c-d12c9aec1c27&sourceTemplateId=ddb19591-3097-41cf-82af-c84273e56719)",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "31122692",
"_collection_link": "https://universal-eclipse-549271.postman.co/workspace/VicoWorkspace~f5281760-7eb7-452a-ac9d-493a2e26f3df/collection/31122692-63d377ec-00af-48d5-84fe-4de4eead9e32?action=share&source=collection_link&creator=31122692"
},
"item": [
{
"name": "GetServiceAssemblies",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "admin",
"type": "string"
},
{
"key": "username",
"value": "admin",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/openesb/api/assemblies",
"host": [
"{{baseUrl}}"
],
"path": [
"openesb",
"api",
"assemblies"
]
}
},
"response": []
},
{
"name": "GetDescriptorCA",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "admin",
"type": "string"
},
{
"key": "username",
"value": "admin",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/openesb/api/assemblies/{{nombreCA}}/descriptor",
"host": [
"{{baseUrl}}"
],
"path": [
"openesb",
"api",
"assemblies",
"{{nombreCA}}",
"descriptor"
]
}
},
"response": []
},
{
"name": "GetGeneralCA",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "admin",
"type": "string"
},
{
"key": "username",
"value": "admin",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/openesb/api/assemblies/{{nombreCA}}",
"host": [
"{{baseUrl}}"
],
"path": [
"openesb",
"api",
"assemblies",
"{{nombreCA}}"
]
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
],
"variable": [
{
"key": "id",
"value": "1"
},
{
"key": "base_url",
"value": "https://postman-rest-api-learner.glitch.me/"
}
]
}]]>
postman_enviroment
<![CDATA[{
"id": "e8defb65-1f7c-4e87-bfa2-6e3c267a9c56",
"name": "InstanciaDEV",
"values": [
{
"key": "baseUrl",
"value": "http://dev-speg-0001.xunta.local:12448",
"type": "default",
"enabled": true
},
{
"key": "nombreCA",
"value": "alfrescoCA",
"type": "default",
"enabled": true
}
],
"_postman_variable_scope": "environment",
"_postman_exported_at": "2024-01-26T15:17:12.824Z",
"_postman_exported_using": "Postman/10.21.14"
}]]>