Skip to content

Commit

Permalink
Private User updated v2
Browse files Browse the repository at this point in the history
  • Loading branch information
exivity-bot committed Jan 13, 2025
1 parent 596031d commit 239a399
Showing 1 changed file with 232 additions and 7 deletions.
239 changes: 232 additions & 7 deletions proximity/v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -4935,7 +4935,8 @@
"pm.environment.set(\"service_key\", response.data.attributes.key);",
"console.log('SET service_key: ' + pm.environment.get(\"service_key\"));"
],
"type": "text/javascript"
"type": "text/javascript",
"packages": {}
}
},
{
Expand All @@ -4953,7 +4954,8 @@
" console.log(err);\r",
" });\r"
],
"type": "text/javascript"
"type": "text/javascript",
"packages": {}
}
}
],
Expand All @@ -4972,7 +4974,6 @@
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/vnd.api+json",
"type": "text"
},
Expand All @@ -4983,11 +4984,123 @@
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"data\": {\r\n\t\t\"type\": \"service\",\r\n\t\t\"attributes\": {\r\n\t\t\t\"key\": \"test - {{$randomInt}}\",\r\n\t\t\t\"description\": \"test service\",\r\n\t\t\t\"unit_label\": \"hours\",\r\n\t\t\t\"dset\": \"{{dset_id}}\",\r\n\t\t\t\"type\": \"service_name_in_header\",\r\n\t\t\t\"usage_col\": \"unique_key\",\r\n\t\t\t\"consumption_col\": \"quantity\",\r\n\t\t\t\"instance_col\": \"hostname\",\r\n\t\t\t\"interval\": \"month\",\r\n\t\t\t\"charge_type\": \"manual_per_unit\",\r\n\t\t\t\"cogs_type\": \"none\",\r\n\t\t\t\"proration_type\": \"full\",\r\n\t\t\t\"charge_model\": \"peak\"\r\n\t\t},\r\n\t\t\"relationships\": {\r\n\t\t\t\"servicecategory\": {\r\n\t\t\t\t\"data\": {\r\n\t\t\t\t\t\"type\": \"servicecategory\",\r\n\t\t\t\t\t\"id\": \"{{servicecategory_id}}\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t}\r\n\t}\r\n}"
"raw": "{\r\n\t\"data\": {\r\n\t\t\"type\": \"service\",\r\n\t\t\"attributes\": {\r\n\t\t\t\"key\": \"test - {{$randomInt}}\",\r\n\t\t\t\"description\": \"test service\",\r\n\t\t\t\"unit_label\": \"hours\",\r\n\t\t\t\"service_type\": \"service_name_in_header\",\r\n\t\t\t\"usage_col\": \"unique_key\",\r\n\t\t\t\"consumption_col\": \"quantity\",\r\n\t\t\t\"instance_col\": \"hostname\",\r\n\t\t\t\"interval\": \"month\",\r\n\t\t\t\"charge_type\": \"manual\",\r\n\t\t\t\"cogs_type\": \"none\",\r\n\t\t\t\"proration_type\": \"full\",\r\n\t\t\t\"charge_model\": \"peak\"\r\n\t\t},\r\n\t\t\"relationships\": {\r\n\t\t\t\"dataset\": {\r\n \"data\": {\r\n\t\t\t\t\t\"type\": \"dataset\",\r\n\t\t\t\t\t\"id\": \"{{dset_id}}\"\r\n\t\t\t\t}\r\n },\r\n \"servicecategory\": {\r\n\t\t\t\t\"data\": {\r\n\t\t\t\t\t\"type\": \"servicecategory\",\r\n\t\t\t\t\t\"id\": \"{{servicecategory_id}}\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t}\r\n\t}\r\n}"
},
"url": "{{base_url}}/v1/services"
"url": "{{base_url}}/v2/services"
},
"response": []
"response": [
{
"id": "cecf5578-c089-4c33-acb5-eaea5a1581da",
"name": "Add a new service",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/vnd.api+json",
"type": "text"
},
{
"key": "Accept",
"value": "application/vnd.api+json"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"data\": {\r\n\t\t\"type\": \"service\",\r\n\t\t\"attributes\": {\r\n\t\t\t\"key\": \"test - {{$randomInt}}\",\r\n\t\t\t\"description\": \"test service\",\r\n\t\t\t\"unit_label\": \"hours\",\r\n\t\t\t\"service_type\": \"service_name_in_header\",\r\n\t\t\t\"usage_col\": \"unique_key\",\r\n\t\t\t\"consumption_col\": \"quantity\",\r\n\t\t\t\"instance_col\": \"hostname\",\r\n\t\t\t\"interval\": \"month\",\r\n\t\t\t\"charge_type\": \"manual\",\r\n\t\t\t\"cogs_type\": \"none\",\r\n\t\t\t\"proration_type\": \"full\",\r\n\t\t\t\"charge_model\": \"peak\"\r\n\t\t},\r\n\t\t\"relationships\": {\r\n\t\t\t\"dataset\": {\r\n \"data\": {\r\n\t\t\t\t\t\"type\": \"dataset\",\r\n\t\t\t\t\t\"id\": \"{{dset_id}}\"\r\n\t\t\t\t}\r\n },\r\n \"servicecategory\": {\r\n\t\t\t\t\"data\": {\r\n\t\t\t\t\t\"type\": \"servicecategory\",\r\n\t\t\t\t\t\"id\": \"{{servicecategory_id}}\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t}\r\n\t}\r\n}"
},
"url": "{{base_url}}/v2/services"
},
"status": "Created",
"code": 201,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Host",
"value": "localhost:8012"
},
{
"key": "Connection",
"value": "close"
},
{
"key": "X-Powered-By",
"value": "PHP/8.4.1"
},
{
"key": "Location",
"value": "http://localhost:8012/v2/Service/Services"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Mon, 13 Jan 2025 09:08:20 GMT"
},
{
"key": "Content-Type",
"value": "application/vnd.api+json"
},
{
"key": "X-Clockwork-Id",
"value": "X5fdea33cfda671f244ab4cf3ec1767b1"
},
{
"key": "X-Clockwork-Version",
"value": "9"
},
{
"key": "X-Clockwork-Path",
"value": "_debugbar/clockwork/"
},
{
"key": "phpdebugbar-id",
"value": "X5fdea33cfda671f244ab4cf3ec1767b1"
},
{
"key": "ETag",
"value": "\"05508e23fa939d62d479ee080cc16582\""
},
{
"key": "X-XSS-Protection",
"value": "1; mode=block"
},
{
"key": "Strict-Transport-Security",
"value": "max-age=31536000; includeSubDomains"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Feature-Policy",
"value": "autoplay 'none'; camera 'none'"
},
{
"key": "Referrer-Policy",
"value": "strict-origin"
},
{
"key": "Content-Security-Policy",
"value": "base-uri 'self';connect-src 'self';default-src 'self';form-action 'self';img-src 'self' data:;media-src 'self';object-src 'none';script-src 'self' 'nonce-J5GLuXo4G91lFQWBJV43MgBPyRKmzehf';style-src 'self' 'nonce-J5GLuXo4G91lFQWBJV43MgBPyRKmzehf';font-src 'self' data:"
},
{
"key": "Request-Id",
"value": "9a97fca3-25d0-4bc7-97a0-70e7c279bba5"
}
],
"cookie": [],
"responseTime": null,
"body": "{\n \"data\": {\n \"type\": \"service\",\n \"id\": \"9\",\n \"attributes\": {\n \"key\": \"test - 77\",\n \"description\": \"test service\",\n \"unit_label\": \"hours\",\n \"service_type\": \"service_name_in_header\",\n \"usage_col\": \"unique_key\",\n \"consumption_col\": \"quantity\",\n \"instance_col\": \"hostname\",\n \"interval\": \"month\",\n \"cogs_type\": \"none\",\n \"proration_type\": \"full\",\n \"charge_model\": \"peak\",\n \"charge_model_specific_day\": null,\n \"created_at\": \"2025-01-13T09:08:21Z\",\n \"updated_at\": \"2025-01-13T09:08:20Z\",\n \"seen_at\": \"(not supported yet)\",\n \"charge_type\": \"manual\",\n \"orphan\": false\n },\n \"links\": {\n \"self\": \"http://localhost:8012/v2/services/9\"\n },\n \"relationships\": {\n \"adjustments\": {\n \"links\": {\n \"self\": \"http://localhost:8012/v2/services/9/relationships/adjustments\",\n \"related\": \"http://localhost:8012/v2/services/9/adjustments\"\n }\n },\n \"dataset\": {\n \"links\": {\n \"self\": \"http://localhost:8012/v2/services/9/relationships/dataset\",\n \"related\": \"http://localhost:8012/v2/services/9/dataset\"\n }\n },\n \"metadata\": {\n \"links\": {\n \"self\": \"http://localhost:8012/v2/services/9/relationships/metadata\",\n \"related\": \"http://localhost:8012/v2/services/9/metadata\"\n }\n },\n \"servicecategory\": {\n \"links\": {\n \"self\": \"http://localhost:8012/v2/services/9/relationships/servicecategory\",\n \"related\": \"http://localhost:8012/v2/services/9/servicecategory\"\n }\n },\n \"rates\": {\n \"links\": {\n \"self\": \"http://localhost:8012/v2/services/9/relationships/rates\",\n \"related\": \"http://localhost:8012/v2/services/9/rates\"\n }\n },\n \"budgetitems\": {\n \"links\": {\n \"self\": \"http://localhost:8012/v2/services/9/relationships/budgetitems\",\n \"related\": \"http://localhost:8012/v2/services/9/budgetitems\"\n }\n }\n }\n }\n}"
}
]
},
{
"name": "Retrieve a service",
Expand Down Expand Up @@ -5341,7 +5454,119 @@
]
}
},
"response": []
"response": [
{
"id": "56b066db-86d8-4e4d-be8f-ff8861b4bc05",
"name": "Delete a service",
"originalRequest": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"body": {
"mode": "formdata",
"formdata": []
},
"url": {
"raw": "{{base_url}}/v2/services/:service_id",
"host": [
"{{base_url}}"
],
"path": [
"v2",
"services",
":service_id"
],
"variable": [
{
"key": "service_id",
"value": "{{service_id}}",
"type": "string"
}
]
}
},
"status": "No Content",
"code": 204,
"_postman_previewlanguage": "plain",
"header": [
{
"key": "Host",
"value": "localhost:8012"
},
{
"key": "Connection",
"value": "close"
},
{
"key": "X-Powered-By",
"value": "PHP/8.4.1"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Mon, 13 Jan 2025 09:09:34 GMT"
},
{
"key": "X-Clockwork-Id",
"value": "X44dc4ec627ff2435be41e41387000784"
},
{
"key": "X-Clockwork-Version",
"value": "9"
},
{
"key": "X-Clockwork-Path",
"value": "_debugbar/clockwork/"
},
{
"key": "phpdebugbar-id",
"value": "X44dc4ec627ff2435be41e41387000784"
},
{
"key": "X-XSS-Protection",
"value": "1; mode=block"
},
{
"key": "Strict-Transport-Security",
"value": "max-age=31536000; includeSubDomains"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Feature-Policy",
"value": "autoplay 'none'; camera 'none'"
},
{
"key": "Referrer-Policy",
"value": "strict-origin"
},
{
"key": "Content-Security-Policy",
"value": "base-uri 'self';connect-src 'self';default-src 'self';form-action 'self';img-src 'self' data:;media-src 'self';object-src 'none';script-src 'self' 'nonce-b6qP1ZmiFCL2wg8lXGNPPeAHGyAzUam7';style-src 'self' 'nonce-b6qP1ZmiFCL2wg8lXGNPPeAHGyAzUam7';font-src 'self' data:"
},
{
"key": "Request-Id",
"value": "d8859119-bf71-4392-a2fe-9a5acf4a294f"
}
],
"cookie": [],
"responseTime": null,
"body": null
}
]
}
],
"id": "eb6d5ab6-fab0-4531-b009-b7390b4c0256",
Expand Down

0 comments on commit 239a399

Please sign in to comment.