{"info":{"_postman_id":"070fc657-b2da-4bd8-a5aa-6ba6f64644a0","name":"ECE-API","description":"This API allows you to manage Noraina's ECE services.","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"instance","item":[{"name":"get metrics","id":"f5922487-d0d3-4435-82f0-259c52706a30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-access-token","value":"{{token}}"}],"url":{"raw":"https://nacp01.noraina.net/api/instance/:instanceId/metrics?timewindow=lastDay","protocol":"https","host":["nacp01","noraina","net"],"path":["api","instance",":instanceId","metrics"],"query":[{"key":"timewindow","value":"lastDay","description":"lastHour, lastDay, lastWeek, lastMonth"}],"variable":[{"id":"c234c7b1-4a0e-4473-8309-b67c9be0c138","key":"instanceId","value":"{{instanceId}}","type":"string"}]},"description":"Provides a graphic with metrics for requested time interval."},"response":[],"_postman_id":"f5922487-d0d3-4435-82f0-259c52706a30"},{"name":"flush instance","id":"31c8dbdc-2ae2-45f8-aac9-6a05ce685a89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-access-token","value":"{{token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://nacp01.noraina.net/api/instance/flush/:instanceId","protocol":"https","host":["nacp01","noraina","net"],"path":["api","instance","flush",":instanceId"],"variable":[{"id":"09b198dd-9af0-4c2c-9a7d-8f583f103096","key":"instanceId","value":"{{instanceId}}","type":"string"}]},"description":"Deletes instance cache for all services."},"response":[],"_postman_id":"31c8dbdc-2ae2-45f8-aac9-6a05ce685a89"},{"name":"create instance","id":"bb73d933-bed4-4416-9d76-5ffba1703281","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-access-token","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"my_instance\",\n    \"services\": [\n        {\n            \"provider_region\": \"eu-west-2\",\n            \"provider_name\": \"aws\",\n            \"name\": \"my_service_1\",\n            \"fqdn\": \"my-service-1.example.com\",\n            \"origin_hostheader\": \"my-service-1.s3-us-west-2.amazonaws.com\",\n            \"origin_backend\": \"https://my-service-1.s3-us-west-2.amazonaws.com\",\n            \"secure_links\": {\n                \"enabled\": true,\n                \"secret\": \"someSecretPassword\"\n            },\n            \"cert_id\": \"012345678901234567890123\",\n            \"https_redirect\": false,\n            \"caching_mode\": \"uri\",\n            \"cache_expiration_time\": 1440,\n            \"custom_headers\": [\n            \t{\n                \t\"name\": \"header1\",\n                    \"value\": \"value1\"\n                },\n                {\n                    \"name\": \"header2\",\n                    \"value\": \"value2\"\n                }\n            ],\n          \t\"aliases\": [\n        \t\t\"www.mydomain.com\",\n        \t\t\"sub.otherdomain.net\"\n        \t]\n        },\n        {\n            \"provider_region\": \"us-west-1\",\n            \"provider_name\": \"aws\",\n            \"name\": \"my_service_2\",\n            \"fqdn\": \"my-service-2.example.com\",\n            \"origin_hostheader\": \"my-service-2.s3-us-west-1.amazonaws.com\",\n            \"origin_backend\": \"http://my-service-2.s3-us-west-1.amazonaws.com\",\n            \"cert_id\": \"012345678901234567890123\",\n            \"valid_referers\": {\n                \"enabled\": true,\n                \"list\": [\n                    \"www.example1.com\",\n                    \"*.example2.com\"\n                ]\n            }\n        }\n    ]\n}"},"url":"https://nacp01.noraina.net/api/instance","description":"Creates a new instance."},"response":[],"_postman_id":"bb73d933-bed4-4416-9d76-5ffba1703281"},{"name":"get logs","id":"31faebf3-f6f5-49d7-a825-b4adef5e2b70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-access-token","value":"{{token}}"}],"url":{"raw":"https://nacp01.noraina.net/api/instance/:instanceId/logs","protocol":"https","host":["nacp01","noraina","net"],"path":["api","instance",":instanceId","logs"],"variable":[{"id":"eabb6132-ccdf-48c0-8819-79052b9bbd42","key":"instanceId","value":"{{instanceId}}","type":"string"}]},"description":"Downloads instance logs from our temporary storage. Logs are kept for 15 days."},"response":[{"id":"25f4d8ef-2190-4e29-9534-d9218c93d692","name":"get log dates","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-access-token","value":"{{token}}"}],"url":{"raw":"https://nacp01.noraina.net/api/instance/:instanceId/logs","protocol":"https","host":["nacp01","noraina","net"],"path":["api","instance",":instanceId","logs"],"variable":[{"key":"instanceId","value":"5ba9ec50325486000508b35b"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, authorization","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"341","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 31 Oct 2018 15:40:47 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"ETag","value":"W/\"155-tzXElb23vYCvrm8GJRZ0CtC5K0k\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"X-Powered-By","value":"Express","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[{"expires":"Invalid Date","httpOnly":true,"domain":"nacp01.noraina.net","path":"/","secure":false,"value":"eae086fca97d98f3","key":"grafana_sess"}],"responseTime":null,"body":"[{\"Date\":\"20181015\"},{\"Date\":\"20181016\"},{\"Date\":\"20181017\"},{\"Date\":\"20181018\"},{\"Date\":\"20181019\"},{\"Date\":\"20181020\"},{\"Date\":\"20181021\"},{\"Date\":\"20181022\"},{\"Date\":\"20181023\"},{\"Date\":\"20181024\"},{\"Date\":\"20181025\"},{\"Date\":\"20181026\"},{\"Date\":\"20181027\"},{\"Date\":\"20181028\"},{\"Date\":\"20181029\"},{\"Date\":\"20181030\"},{\"Date\":\"20181031\"}]"},{"id":"2b81891d-3bc3-4713-ac24-a5fff99d980e","name":"get log files","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-access-token","value":"{{token}}"}],"url":{"raw":"https://nacp01.noraina.net/api/instance/:instanceId/logs/20181030","protocol":"https","host":["nacp01","noraina","net"],"path":["api","instance",":instanceId","logs","20181030"],"variable":[{"key":"instanceId","value":"5ba9ec50325486000508b35b"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, authorization","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"4701","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 31 Oct 2018 15:41:39 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"ETag","value":"W/\"125d-roFzEn9ebLyRz9TggR4XP3ggxbo\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"X-Powered-By","value":"Express","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[{"expires":"Invalid Date","httpOnly":true,"domain":"nacp01.noraina.net","path":"/","secure":false,"value":"eae086fca97d98f3","key":"grafana_sess"}],"responseTime":null,"body":"[{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810300000_0.gz\"},{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810300100_0.gz\"},{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810300200_0.gz\"},{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810300300_0.gz\"},{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810300400_0.gz\"},{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810300500_0.gz\"},{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810300600_0.gz\"},{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810300600_1.gz\"},{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810300700_0.gz\"},{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810300800_0.gz\"},{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810300900_0.gz\"},{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810301000_0.gz\"},{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810301100_0.gz\"},{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810301200_0.gz\"},{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810301300_0.gz\"},{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810301400_0.gz\"},{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810301500_0.gz\"},{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810301600_0.gz\"},{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810301700_0.gz\"},{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810301800_0.gz\"},{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810301900_0.gz\"},{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810302000_0.gz\"},{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810302100_0.gz\"},{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810302200_0.gz\"},{\"File\":\"5ef3f658501932578a807663ab98acf0a36f20e66cb7d702fa4c821eaf3e6b32_201810302300_0.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810300000_0.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810300100_0.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810300200_0.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810300300_0.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810300400_0.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810300500_0.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810300600_0.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810300600_1.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810300700_0.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810300800_0.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810300900_0.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810301000_0.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810301100_0.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810301200_0.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810301300_0.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810301400_0.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810301500_0.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810301600_0.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810301700_0.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810301800_0.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810301900_0.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810302000_0.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810302100_0.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810302200_0.gz\"},{\"File\":\"a8d18e73f096cdb6684ab3ab1e7c16fff74d6ef78734ed87138f678ffc04ea82_201810302300_0.gz\"}]"}],"_postman_id":"31faebf3-f6f5-49d7-a825-b4adef5e2b70"},{"name":"edit instance","id":"1cb96325-b847-4692-83ad-5db627a567dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-access-token","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"my_instance\",\n    \"services\": [\n        {\n            \"aliases\": [],\n            \"provider_region\": \"eu-west-1\",\n            \"provider_name\": \"aws\",\n            \"https_redirect\": true,\n            \"caching_mode\": \"uri\",\n            \"cache_expiration_time\": 7200,\n            \"custom_headers\": [],\n            \"name\": \"my_new_service_name\",\n            \"fqdn\": \"my_new_service_name.21buttons.com\",\n            \"origin_hostheader\": \"my_new_service_name.s3-website-eu-west-1.amazonaws.com\",\n            \"origin_backend\": \"http://my_new_service_name.s3-website-eu-west-1.amazonaws.com\",\n            \"cert_id\": \"xxxxxxxxxxxxxxxxxxx\"\n        }\n    ]\n}"},"url":{"raw":"https://nacp01.noraina.net/api/instance/:instanceId","protocol":"https","host":["nacp01","noraina","net"],"path":["api","instance",":instanceId"],"variable":[{"id":"71d0916c-241a-445f-b78c-499adc108276","key":"instanceId","value":"{{instanceId}}","type":"string"}]},"description":"Edit services from an alreade running instance."},"response":[],"_postman_id":"1cb96325-b847-4692-83ad-5db627a567dc"},{"name":"get user instances","id":"cee6c7c5-2889-4abb-911b-f302fc32d518","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-access-token","value":"{{token}}"}],"url":"https://nacp01.noraina.net/api/instance","description":"Retrieve all instances from current user."},"response":[],"_postman_id":"cee6c7c5-2889-4abb-911b-f302fc32d518"},{"name":"delete instance","id":"70805283-2010-4f5d-b64f-06a2ef46e409","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-access-token","value":"{{token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://nacp01.noraina.net/api/instance/:instanceId","protocol":"https","host":["nacp01","noraina","net"],"path":["api","instance",":instanceId"],"variable":[{"id":"c6290e60-f289-4237-9316-cbc55dc6751b","key":"instanceId","value":"{{instanceId}}","type":"string"}]},"description":"Terminates instance. Be careful! This operation has no rollback."},"response":[],"_postman_id":"70805283-2010-4f5d-b64f-06a2ef46e409"},{"name":"read instance","id":"e7755374-fc05-43ba-9d12-2234cd6d5f7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-access-token","value":"{{token}}"}],"url":{"raw":"https://nacp01.noraina.net/api/instance/:instanceId","protocol":"https","host":["nacp01","noraina","net"],"path":["api","instance",":instanceId"],"variable":[{"id":"72b84544-34ce-460f-8819-8603f8c10c12","key":"instanceId","value":"{{instanceId}}","type":"string"}]},"description":"Shows instance information."},"response":[],"_postman_id":"e7755374-fc05-43ba-9d12-2234cd6d5f7e"},{"name":"add server","id":"f55ed296-04a6-48ab-93f7-f7b3c81b434b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-access-token","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n\t\"hostId\": \"{{hostId}}\"\n}"},"url":{"raw":"https://nacp01.noraina.net/api/instance/:instanceId/server","protocol":"https","host":["nacp01","noraina","net"],"path":["api","instance",":instanceId","server"],"variable":[{"id":"2d709be9-fa61-4487-891f-4c4101546be8","key":"instanceId","value":"{{instanceId}}","type":"string"}]}},"response":[],"_postman_id":"f55ed296-04a6-48ab-93f7-f7b3c81b434b"},{"name":"remove server","id":"1119b97c-5975-4529-b365-b175fee8b605","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-access-token","value":"{{token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://nacp01.noraina.net/api/instance/:instanceId/server/:serverId","protocol":"https","host":["nacp01","noraina","net"],"path":["api","instance",":instanceId","server",":serverId"],"variable":[{"id":"3af227b8-47e8-4dff-9c63-c2827c0c46f8","key":"instanceId","value":"{{instanceId}}","type":"string"},{"id":"d67677df-9ca7-4b3b-8b00-ba43527e4040","key":"serverId","value":"{{serverId}}","type":"string"}]}},"response":[],"_postman_id":"1119b97c-5975-4529-b365-b175fee8b605"},{"name":"rollback instance","id":"da878bf7-8181-45cb-8af6-3c8f8d6a48d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-access-token","value":"{{token}}"},{"key":"x-access-adminpass","value":"72+Y_YE7|5f.3!4S8Q+4W9.a|V4apP","disabled":true}],"url":{"raw":"http://nacp01.noraina.net/api/instance/:instanceId/rollback/:rollbackId","protocol":"http","host":["nacp01","noraina","net"],"path":["api","instance",":instanceId","rollback",":rollbackId"],"variable":[{"key":"instanceId","value":"{{instanceId}}"},{"key":"rollbackId","value":"{{rollbackId}}"}]}},"response":[],"_postman_id":"da878bf7-8181-45cb-8af6-3c8f8d6a48d7"}],"id":"738a063e-037b-4118-9b08-58efcc5b3610","_postman_id":"738a063e-037b-4118-9b08-58efcc5b3610"},{"name":"service","item":[{"name":"flush url","id":"3947f5a2-f5df-4396-a4d7-e9e85176bf8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-access-token","value":"{{token}}"}],"url":{"raw":"https://nacp01.noraina.net/api/service/:serviceId/flush?url=www.example.com/filename.html","protocol":"https","host":["nacp01","noraina","net"],"path":["api","service",":serviceId","flush"],"query":[{"key":"url","value":"www.example.com/filename.html"}],"variable":[{"id":"48bd9ef5-ad92-4811-b951-381c2c0e5547","key":"serviceId","value":"{{serviceId}}","type":"string"}]}},"response":[],"_postman_id":"3947f5a2-f5df-4396-a4d7-e9e85176bf8e"},{"name":"get service","id":"0deb07ff-138f-425c-b640-394ea233aab0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-access-token","value":"{{token}}"}],"url":{"raw":"https://nacp01.noraina.net/api/service/:serviceId","protocol":"https","host":["nacp01","noraina","net"],"path":["api","service",":serviceId"],"variable":[{"id":"626034cc-6382-401f-b526-5b810c69d3d3","key":"serviceId","value":"{{serviceId}}","type":"string"}]}},"response":[],"_postman_id":"0deb07ff-138f-425c-b640-394ea233aab0"},{"name":"flush multiple urls","id":"83b5022e-b29b-4860-8988-18595d24cba2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-access-token","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"urls\":\n    [\n        \"my.domain.com/some/path/something.jpg\",\n        \"my.domain.com/other/path/something.png\",\n        \"my.domain.com/some/other/path/something.webp\"\n    ]\n}"},"url":{"raw":"https://nacp01.noraina.net/api/service/:serviceId/flush","protocol":"https","host":["nacp01","noraina","net"],"path":["api","service",":serviceId","flush"],"variable":[{"key":"serviceId","value":"61a9e8cc5f75cd000fed5770","type":"string"}]}},"response":[{"id":"2ad05f5e-6496-41e8-bcad-dadd96a808c9","name":"flush multiple urls","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"x-access-token","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"urls\": [\n        \"test.domain.com/primera\",\n        \"test.domain.com/segona\",\n        \"test.domain.com/tercera\",\n        \"test.domain.com/quarta\",\n        \"test.domain.com/cinquena\",\n        \"test.domain.com/sisena\",\n        \"test.domain.com/setena\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://nacp01.noraina.net/api/service/:serviceId/flush","protocol":"https","host":["nacp01","noraina","net"],"path":["api","service",":serviceId","flush"],"variable":[{"id":"56b9c43e-c21f-4cef-afdc-b223271dbd29","key":"serviceId","value":"62694384502d11c4f0a39fd2","type":"string"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"results\": [\n        {\n            \"message\": \"URLs successfully flushed from server XXX_myInstance01.\",\n            \"urls\": [\n                \"test.domain.com/primera\",\n                \"test.domain.com/segona\",\n                \"test.domain.com/tercera\",\n                \"test.domain.com/quarta\",\n                \"test.domain.com/cinquena\",\n                \"test.domain.com/sisena\",\n                \"test.domain.com/setena\"\n            ]\n        },\n        {\n            \"message\": \"URLs successfully flushed from server XXX_myInstance01.\",\n            \"urls\": [\n                \"test.domain.com/primera\",\n                \"test.domain.com/segona\",\n                \"test.domain.com/tercera\",\n                \"test.domain.com/quarta\",\n                \"test.domain.com/cinquena\",\n                \"test.domain.com/sisena\",\n                \"test.domain.com/setena\"\n            ]\n        }\n    ]\n}"}],"_postman_id":"83b5022e-b29b-4860-8988-18595d24cba2"}],"id":"cc857329-2d79-43ae-b94e-e63c94b4fe03","_postman_id":"cc857329-2d79-43ae-b94e-e63c94b4fe03"},{"name":"certificate","item":[{"name":"get my certificates","id":"e9561310-8719-44ce-8ba1-b956205c7e9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-access-token","value":"{{token}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://nacp01.noraina.net/api/certificate"},"response":[{"id":"4ff488a7-9547-4f15-b968-77607ca12c59","name":"OK","originalRequest":{"method":"GET","header":[{"key":"x-access-token","value":"{{token}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://nacp01.noraina.net/api/certificate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, authorization","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Origin","value":"https://noraina.lambdaloopers.com","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"36096","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 28 Sep 2018 14:10:26 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"ETag","value":"W/\"8d00-/RF9vH3O9lewQK9u2EG97a9o1r4\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"X-Powered-By","value":"Express","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": [\n        {\n            \"_id\": \"5ad8e391debd70226537c334\",\n            \"name\": \"my_certificate_001\",\n            \"created_date\": \"2018-04-19T18:44:33.059Z\"\n        },\n        {\n            \"_id\": \"5aeb5fd492c39a5c4418f73c\",\n            \"name\": \"my_certificate_002\",\n            \"created_date\": \"2018-04-19T18:44:33.059Z\"\n        },\n        {\n            \"_id\": \"5badfceb433bcc27c5051fff\",\n            \"name\": \"my_certificate_003\",\n            \"created_date\": \"2018-09-28T10:05:31.921Z\"\n        },\n        {\n            \"_id\": \"5badfcf6433bcc27c5052000\",\n            \"name\": \"my_certificate_004\",\n            \"created_date\": \"2018-09-28T10:05:42.178Z\"\n        }\n    ]\n}"},{"id":"c8886397-1229-442b-abcb-ee930bd50cb5","name":"Error","originalRequest":{"method":"GET","header":[{"key":"x-access-token","value":"{{token}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://nacp01.noraina.net/api/certificate"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, authorization","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Origin","value":"https://noraina.lambdaloopers.com","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"392","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Mon, 01 Oct 2018 15:07:47 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"ETag","value":"W/\"188-V4tjD3xVxo/16xaQfReA2wx1a6M\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"X-Powered-By","value":"Express","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{ \n\t\"status\": \"error\",\n    \"message\": \"The application has encountered an unexpected error.\",\n    \"data\": \"[Some error information and/or stacktrace.]\"\n}"}],"_postman_id":"e9561310-8719-44ce-8ba1-b956205c7e9a"},{"name":"read certificate","id":"354c49a2-a79e-473e-a06a-84f7d3827820","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-access-token","value":"{{token}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"https://nacp01.noraina.net/api/certificate/:certificateId","protocol":"https","host":["nacp01","noraina","net"],"path":["api","certificate",":certificateId"],"variable":[{"id":"5239b3dd-f40f-4c8e-871e-ecea13fc688e","key":"certificateId","value":"{{certificateId}}","type":"string"}]},"description":"List a specific certificate."},"response":[{"id":"96f64fd5-1c0a-485b-bccc-12064b76f268","name":"OK","originalRequest":{"method":"GET","header":[{"key":"x-access-token","value":"{{token}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"https://nacp01.noraina.net/api/certificate/:certificateId","protocol":"https","host":["nacp01","noraina","net"],"path":["api","certificate",":certificateId"],"variable":[{"key":"certificateId","value":"5aeb5fd492c39a5c4418f73c"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n\t\"status\": \"success\",\n\t\"data\": {\n    \t\"_id\": \"5aeb5fd492c39a5c4418f73c\",\n    \t\"name\": \"my_certificate\",\n    \t\"created_date\": \"2018-04-19T18:44:33.059Z\"\n    }\n}"},{"id":"e95118a5-91dc-482d-96d2-67b6ba987a01","name":"Error","originalRequest":{"method":"GET","header":[{"key":"x-access-token","value":"{{token}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"https://nacp01.noraina.net/api/certificate/:certificateId","protocol":"https","host":["nacp01","noraina","net"],"path":["api","certificate",":certificateId"],"variable":[{"key":"certificateId","value":"5aeb5fd492c39a5c4418f73c"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"The application has encountered an unexpected error.\",\n    \"data\": \"[Some error information and/or stacktrace.]\"\n}"}],"_postman_id":"354c49a2-a79e-473e-a06a-84f7d3827820"},{"name":"upload certificate","id":"e96598f8-ec9b-439d-9892-acedff307eb2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-access-token","value":"{{token}}"},{"key":"content-type","value":"multipart/form-data"}],"body":{"mode":"formdata","formdata":[{"key":"cert","value":null,"description":"Certificate file.","type":"file"},{"key":"key","value":null,"description":"Key file.","type":"file"},{"key":"chain","value":null,"type":"file"},{"key":"name","value":"","description":"Certificate's name.","type":"text"}]},"url":"https://nacp01.noraina.net/api/certificate","description":"List all certificates."},"response":[{"id":"3899cbde-dac4-41f2-92f3-d58a093a4055","name":"Error","originalRequest":{"method":"POST","header":[{"key":"x-access-token","value":"{{token}}"},{"key":"content-type","value":"multipart/form-data"}],"body":{"mode":"formdata","formdata":[{"key":"cert","description":"Certificate file.","type":"file","src":[""]},{"key":"key","description":"Key file.","type":"file","src":[""]},{"key":"chain","type":"file","src":[""]},{"key":"name","value":"","description":"Certificate's name.","type":"text"}]},"url":"https://nacp01.noraina.net/api/certificate"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"The application has encountered an unexpected error.\",\n    \"data\": \"[Some error information and/or stacktrace.]\"\n}"},{"id":"528a00c2-85b2-46e6-a921-62e94a9eceb8","name":"Missing Name","originalRequest":{"method":"POST","header":[{"key":"x-access-token","value":"{{token}}"},{"key":"content-type","value":"multipart/form-data"}],"body":{"mode":"formdata","formdata":[{"key":"cert","value":"@/path/to/certificate.pem","type":"text"},{"key":"key","value":"@/path/to/key.pem","type":"text"},{"key":"chain","value":"@/path/to/chain.pem","type":"text"},{"key":"name","value":"","type":"text"}]},"url":"https://nacp01.noraina.net/api/certificate"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, authorization","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Origin","value":"https://noraina.lambdaloopers.com","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"445","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 28 Sep 2018 12:47:10 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"ETag","value":"W/\"1bd-8XGec01JuEHcDF6QIhvMc+DwQRI\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"X-Powered-By","value":"Express","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\n\t\"status\": \"fail\",\n\t\"data\": {\n    \t\"message\": \"There where validation errors.\",\n\t    \"errors\": {\n\t        \"name\": {\n\t            \"message\": \"Kindly enter the name of the certificate\",\n\t            \"name\": \"ValidatorError\",\n\t            \"properties\": {\n\t                \"message\": \"Kindly enter the name of the certificate\",\n\t                \"type\": \"required\",\n\t                \"path\": \"name\",\n\t                \"value\": \"\"\n\t            },\n\t            \"kind\": \"required\",\n\t            \"path\": \"name\",\n\t            \"value\": \"\",\n\t            \"$isValidatorError\": true\n\t        }\n\t    }\n    }\n}"},{"id":"7386b8e0-92b4-4249-87b4-8b48ad51ae60","name":"OK","originalRequest":{"method":"POST","header":[{"key":"x-access-token","value":"{{token}}"},{"key":"Content-Type","value":"multipart/form-data"}],"body":{"mode":"formdata","formdata":[{"key":"cert","value":"@/path/to/certificate.pem","type":"text"},{"key":"key","value":"@/path/to/key.pem","type":"text"},{"key":"chain","value":"@/path/to/chain.pem","type":"text"},{"key":"name","value":"my_certificate","type":"text"}]},"url":"https://nacp01.noraina.net/api/certificate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, authorization","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Origin","value":"https://noraina.lambdaloopers.com","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"13221","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 28 Sep 2018 10:36:29 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"ETag","value":"W/\"33a5-VOnNQ35Stzfr5+DBUUUcopEzI3M\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"X-Powered-By","value":"Express","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"_id\": \"5bae042db690e90005d6571b\",\n        \"name\": \"my_certificate\",\n        \"created_date\": \"2018-10-03T08:43:22.269Z\"\n    }\n}"},{"id":"98bc7946-c93f-47d6-bb79-b21a8584b5b1","name":"Missing Key and/or Cert file(s)","originalRequest":{"method":"POST","header":[{"key":"x-access-token","value":"{{token}}"},{"key":"content-type","value":"multipart/form-data"}],"body":{"mode":"formdata","formdata":[{"key":"cert","type":"file","src":[],"disabled":true},{"key":"key","type":"file","src":[],"disabled":true},{"key":"chain","type":"file","src":[""]},{"key":"name","value":"my_certificate","type":"text"}]},"url":"https://nacp01.noraina.net/api/certificate"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, authorization","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Origin","value":"https://noraina.lambdaloopers.com","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"67","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 28 Sep 2018 12:43:45 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"ETag","value":"W/\"43-hnLOBVJv8BZyH+Dijgr8jo6kshM\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"X-Powered-By","value":"Express","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\n\t\"status\": \"fail\",\n\t\"data\": {\n    \t\"message\": \"There where validation errors.\",\n    \t\"errors\": \"Missing key and/or certificate file(s).\"\t\n\t}\n}"},{"id":"a084c40d-8787-4bd0-8818-73e9253490f7","name":"Error","originalRequest":{"method":"POST","header":[{"key":"x-access-token","value":"{{token}}"},{"key":"content-type","value":"multipart/form-data"}],"body":{"mode":"formdata","formdata":[{"key":"cert","description":"Certificate file.","type":"file","src":[""]},{"key":"key","description":"Key file.","type":"file","src":[""]},{"key":"chain","type":"file","src":[""]},{"key":"name","value":"","description":"Certificate's name.","type":"text"}]},"url":"https://nacp01.noraina.net/api/certificate"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, authorization","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Origin","value":"https://noraina.lambdaloopers.com","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"445","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 28 Sep 2018 12:47:10 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"ETag","value":"W/\"1bd-8XGec01JuEHcDF6QIhvMc+DwQRI\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"X-Powered-By","value":"Express","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"The application has encountered an unexpected error.\",\n    \"data\": \"[Some error information and/or stacktrace.]\"\n}"}],"_postman_id":"e96598f8-ec9b-439d-9892-acedff307eb2"},{"name":"edit certificate","id":"66f23c05-43bd-494c-ba28-44cefe4b8a8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"x-access-token","value":"{{token}}"},{"key":"content-type","value":"multipart/form-data"}],"body":{"mode":"formdata","formdata":[{"key":"cert","value":null,"description":"Certificate file.","type":"file"},{"key":"key","value":null,"description":"Key file.","type":"file"},{"key":"name","value":"","description":"Certificate's name.","type":"text"}]},"url":{"raw":"https://nacp01.noraina.net/api/certificate/:certificateId","protocol":"https","host":["nacp01","noraina","net"],"path":["api","certificate",":certificateId"],"variable":[{"id":"b9a864c0-d069-460a-a234-39f960a015ff","key":"certificateId","value":"{{certificateId}}","type":"string"}]},"description":"Upload a new certificate."},"response":[{"id":"054d2809-2e79-44da-96c5-20c8d88c4f1f","name":"Missing Key and/or Cert file(s)","originalRequest":{"method":"PUT","header":[{"key":"x-access-token","value":"{{token}}"},{"key":"content-type","value":"multipart/form-data"}],"body":{"mode":"formdata","formdata":[{"key":"cert","description":"Certificate file.","type":"file","src":[],"disabled":true},{"key":"key","description":"Key file.","type":"file","src":[],"disabled":true},{"key":"name","value":"my_certificate","description":"Certificate's name.","type":"text"}]},"url":{"raw":"https://nacp01.noraina.net/api/certificate/:certificateId","protocol":"https","host":["nacp01","noraina","net"],"path":["api","certificate",":certificateId"],"variable":[{"key":"certificateId","value":"{{certificateId}}"}]}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n\t\"status\": \"fail\",\n\t\"data\": {\n\t\t\"message\": \"There where validation errors.\",\n    \t\"errors\": \"Missing key and/or certificate file(s).\"\n\t}\n}"},{"id":"2c6b60cc-31b5-4bf9-93a6-e3dcd5b3a634","name":"OK","originalRequest":{"method":"POST","header":[{"key":"x-access-token","value":"{{token}}"},{"key":"content-type","value":"multipart/form-data"}],"body":{"mode":"formdata","formdata":[{"key":"cert","value":"@/path/to/certificate.pem","description":"Certificate file.","type":"text"},{"key":"key","value":"@/path/to/key.pem","description":"Key file.","type":"text"},{"key":"name","value":"my_certificate","description":"Certificate's name.","type":"text"}]},"url":{"raw":"https://nacp01.noraina.net/api/certificate/:certificateId","protocol":"https","host":["nacp01","noraina","net"],"path":["api","certificate",":certificateId"],"variable":[{"key":"certificateId","value":"{{certificateId}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, authorization","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Origin","value":"https://noraina.lambdaloopers.com","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"13220","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 26 Sep 2018 11:35:03 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"ETag","value":"W/\"33a4-C7Coy8vuIZ7g8pUhhj7KDZZ3lrw\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"X-Powered-By","value":"Express","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n    \t\"name\": \"my_certificate\",\n    \t\"cert_id\": \"5bab6ee77b5e67000868891d\"\n    }\n}"},{"id":"44e4aad7-019b-4de1-a3ed-1b5ac0da56de","name":"Error","originalRequest":{"method":"PUT","header":[{"key":"x-access-token","value":"{{token}}"},{"key":"content-type","value":"multipart/form-data"}],"body":{"mode":"formdata","formdata":[{"key":"cert","description":"Certificate file.","type":"file","src":[]},{"key":"key","description":"Key file.","type":"file","src":[]},{"key":"name","value":"","description":"Certificate's name.","type":"text"}]},"url":{"raw":"https://nacp01.noraina.net/api/certificate/:certificateId","protocol":"https","host":["nacp01","noraina","net"],"path":["api","certificate",":certificateId"],"variable":[{"key":"certificateId","value":"{{certificateId}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"The application has encountered an unexpected error.\",\n    \"data\": \"[Some error information and/or stacktrace.]\"\n}"},{"id":"e67dae67-a2e1-4ab4-92d6-b803d5ea2f26","name":"Missing Name","originalRequest":{"method":"POST","header":[{"key":"x-access-token","value":"{{token}}"},{"key":"content-type","value":"multipart/form-data"}],"body":{"mode":"formdata","formdata":[{"key":"cert","value":"@/path/to/certificate.pem","description":"Certificate file.","type":"text"},{"key":"key","value":"@/path/to/key.pem","description":"Key file.","type":"text"},{"key":"name","value":"","description":"Certificate's name.","type":"text","disabled":true}]},"url":{"raw":"https://nacp01.noraina.net/api/certificate/:certificateId","protocol":"https","host":["nacp01","noraina","net"],"path":["api","certificate",":certificateId"],"variable":[{"key":"certificateId","value":"{{certificateId}}"}]}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, authorization","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Origin","value":"https://noraina.lambdaloopers.com","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"13220","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 26 Sep 2018 11:35:03 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"ETag","value":"W/\"33a4-C7Coy8vuIZ7g8pUhhj7KDZZ3lrw\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"X-Powered-By","value":"Express","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\n\t\"status\": \"fail\",\n\t\"data\": {\n    \t\"message\": \"There where validation errors.\",\n\t    \"errors\": {\n\t        \"name\": {\n\t            \"message\": \"Kindly enter the name of the certificate\",\n\t            \"name\": \"ValidatorError\",\n\t            \"properties\": {\n\t                \"message\": \"Kindly enter the name of the certificate\",\n\t                \"type\": \"required\",\n\t                \"path\": \"name\",\n\t                \"value\": \"\"\n\t            },\n\t            \"kind\": \"required\",\n\t            \"path\": \"name\",\n\t            \"value\": \"\",\n\t            \"$isValidatorError\": true\n\t        }\n\t    }\n\t}\n}"}],"_postman_id":"66f23c05-43bd-494c-ba28-44cefe4b8a8d"},{"name":"delete certificate","id":"8950a5e3-6617-4426-9698-fd9ec1525a46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-access-token","value":"{{token}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"https://nacp01.noraina.net/api/certificate/:certificateId","protocol":"https","host":["nacp01","noraina","net"],"path":["api","certificate",":certificateId"],"variable":[{"id":"bda8ffa9-ef51-408f-b9f0-f51318992ff5","key":"certificateId","value":"{{certificateId}}","type":"string"}]},"description":"Delete a certificate."},"response":[{"id":"0010f1d9-a6cf-4031-b009-912c3ac8463e","name":"Error","originalRequest":{"method":"DELETE","header":[{"key":"x-access-token","value":"{{token}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"https://nacp01.noraina.net/api/certificate/:certificateId","protocol":"https","host":["nacp01","noraina","net"],"path":["api","certificate",":certificateId"],"variable":[{"key":"certificateId","value":"{{certificateId}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"The application has encountered an unexpected error.\",\n    \"data\": \"[Some error information and/or stacktrace.]\"\n}"},{"id":"2f34bc5f-93fd-4a6b-a6a5-f77408c9645a","name":"OK","originalRequest":{"method":"DELETE","header":[{"key":"x-access-token","value":"{{token}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"https://nacp01.noraina.net/api/certificate/:certificateId","protocol":"https","host":["nacp01","noraina","net"],"path":["api","certificate",":certificateId"],"variable":[{"key":"certificateId","value":"{{certificateId}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, authorization","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Origin","value":"https://noraina.lambdaloopers.com","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"61","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Mon, 01 Oct 2018 14:00:16 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"ETag","value":"W/\"3d-xS9wlxCMEiPp9vN1DZP591fdWNc\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"X-Powered-By","value":"Express","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[{"expires":"Invalid Date","httpOnly":true,"domain":"localhost","path":"/","secure":false,"value":"970c12ab94be8c68","key":"grafana_sess"}],"responseTime":null,"body":"{\"success\":true,\"message\":\"Certificate successfully deleted\"}"},{"id":"d53c532e-d5d5-47cc-9448-5037ef6d2e71","name":"Id not found or invalid","originalRequest":{"method":"DELETE","header":[{"key":"x-access-token","value":"{{token}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"https://nacp01.noraina.net/api/certificate/:certificateId","protocol":"https","host":["nacp01","noraina","net"],"path":["api","certificate",":certificateId"],"variable":[{"key":"certificateId","value":"{{certificateId}}"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, authorization","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Origin","value":"https://noraina.lambdaloopers.com","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"60","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Mon, 01 Oct 2018 14:05:30 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"ETag","value":"W/\"3c-Z6eRwxCZkcHca4+WYzRtrQ+Ypdc\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"X-Powered-By","value":"Express","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[{"expires":"Invalid Date","httpOnly":true,"domain":"localhost","path":"/","secure":false,"value":"970c12ab94be8c68","key":"grafana_sess"}],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"data\": \"Certificate id not found.\"\n}"}],"_postman_id":"8950a5e3-6617-4426-9698-fd9ec1525a46"}],"id":"9db07eab-4fb2-431a-9dc1-2b17095faa2f","_postman_id":"9db07eab-4fb2-431a-9dc1-2b17095faa2f"},{"name":"auth","item":[{"name":"me","event":[{"listen":"test","script":{"id":"296d7131-06b9-4fe3-b6c6-465ad0477ee0","exec":[""],"type":"text/javascript"}}],"id":"19542593-2613-4832-bd8a-40297c6f3d42","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-access-token","value":"{{token}}"}],"url":"https://nacp01.noraina.net/api/me"},"response":[{"id":"0b7c886e-2e80-4247-9346-e5852334b5c4","name":"OK","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-access-token","value":"{{token}}"}],"url":"https://nacp01.noraina.net/api/me"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, authorization","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Origin","value":"https://my.noraina.cloud","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"253","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Mon, 29 Oct 2018 11:33:13 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"ETag","value":"W/\"fd-Gs5fM6nTOvYK03oC/V+QcxMsR2A\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"X-Powered-By","value":"Express","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"permissions\": \"read\",\n        \"_id\": \"5af09871cdfc0000069a2f0e\",\n        \"name\": \"User\",\n        \"mail\": \"user@example.com\",\n        \"created_date\": \"2018-05-07T18:18:25.314Z\",\n        \"tenant_id\": \"5af09c6ecdfc0000069a2f10\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"19542593-2613-4832-bd8a-40297c6f3d42"},{"name":"login","event":[{"listen":"test","script":{"id":"5d32cb5e-e295-4e27-a290-22c62d7b5054","exec":["var jsonData = JSON.parse(responseBody);","pm.environment.set(\"token\", jsonData.data.token);",""],"type":"text/javascript"}}],"id":"04ab7f67-cf9a-46ed-8164-d264e3aa52cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"mail\": \"{{user}}\",\n\t\"password\": \"{{pass}}\"\n}"},"url":"https://nacp01.noraina.net/api/login"},"response":[{"id":"5b393c97-470b-4b09-a206-1873f861ad2a","name":"Wrong user or password","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"mail\": \"user\",\n\t\"password\": \"thisIsAWrongPassword\"\n}"},"url":"https://nacp01.noraina.net/api/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.0"},{"key":"Date","value":"Thu, 09 Jan 2020 11:43:43 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"137"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, authorization"},{"key":"X-RateLimit-Limit","value":"5"},{"key":"X-RateLimit-Remaining","value":"4"},{"key":"X-RateLimit-Reset","value":"1578573621"},{"key":"ETag","value":"W/\"89-lreNhNmuxWb4DkucLMD2UcdCF+Q\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"data\": {\n        \"message\": \"Attempt to login by user failed.\",\n        \"error\": \"Invalid user and/or password.\"\n    }\n}"},{"id":"f798a07e-52e3-4911-b4d6-f4c2f0301f7e","name":"OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"mail\": \"{{user}}\",\n\t\"password\": \"{{pass}}\"\n}"},"url":"https://nacp01.noraina.net/api/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, authorization","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Origin","value":"https://noraina.lambdaloopers.com","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"321","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 02 Oct 2018 12:57:09 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"ETag","value":"W/\"141-HGMPmiZDTmkugfJh6VmU3l5S77A\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"X-Powered-By","value":"Express","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"},{"key":"X-RateLimit-Limit","value":"5","name":"X-RateLimit-Limit","description":"Custom header"},{"key":"X-RateLimit-Remaining","value":"4","name":"X-RateLimit-Remaining","description":"Custom header"},{"key":"X-RateLimit-Reset","value":"1538486558","name":"X-RateLimit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"message\": \"Login successful.\",\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVhZjA5ODcxY2RmYzAwMDAwNjlhMmYwZSIsIm5hbWUiOiJodW1iZXJ0LnNpbW9uQGV4cGVydG9zZW50aS5jb20iLCJ0ZW5hbnQiOiI1YWYwOWM2ZWNkZmMwMDAwMDY5YTJmMTAiLCJvYmZ1c2NhdGVkIjoiWFBUIiwiaWF0IjoxNTcwNDM5MTYyLCJleHAiOjE1NzA1MjU1NjJ9.wjpioOLaNN9kC9_wH_yWT6Z8HQbgcuRtwYZY-njyajA\"\n    }\n}"}],"_postman_id":"04ab7f67-cf9a-46ed-8164-d264e3aa52cb"},{"name":"reset password","event":[{"listen":"test","script":{"id":"5d32cb5e-e295-4e27-a290-22c62d7b5054","exec":["var jsonData = JSON.parse(responseBody);","pm.environment.set(\"token\", jsonData.data.token);",""],"type":"text/javascript"}}],"id":"a7a08886-fbe4-46c1-9871-39a3764f3031","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"https://nacp01.noraina.net/api/reset/:userMail","protocol":"https","host":["nacp01","noraina","net"],"path":["api","reset",":userMail"],"variable":[{"key":"userMail","value":"user@example.com","type":"string"}]}},"response":[],"_postman_id":"a7a08886-fbe4-46c1-9871-39a3764f3031"},{"name":"change password","event":[{"listen":"test","script":{"id":"a7c2a240-f048-4ee9-a8d8-7d5e0eebacf1","exec":[""],"type":"text/javascript"}}],"id":"45adecb1-7b55-4783-90ff-af7f284c1a1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-access-token","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n\t\"password\": \"my_password\"\n}"},"url":"https://nacp01.noraina.net/api/change"},"response":[],"_postman_id":"45adecb1-7b55-4783-90ff-af7f284c1a1e"},{"name":"register","event":[{"listen":"test","script":{"id":"64de6158-bf5a-4cef-a114-f4bb77a3309d","exec":["var jsonData = JSON.parse(responseBody);","pm.environment.set(\"token\", jsonData.data.token);",""],"type":"text/javascript"}}],"id":"ff6813c4-7f70-4666-909d-e05768fbabc6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"User\",\n\t\"mail\": \"user@example.com\",\n\t\"password\": \"my_password\",\n\t\"billing\": {\n\t\t\"company\": \"my_company\",\n\t\t\"vatId\": \"12345678X\",\n\t\t\"address\": \"22nd my_company's Street, my_postal_code, my_city\",\n\t\t\"creditBalance\": 12345\n\t}\n}"},"url":"https://nacp01.noraina.net/api/register"},"response":[],"_postman_id":"ff6813c4-7f70-4666-909d-e05768fbabc6"},{"name":"delete","event":[{"listen":"test","script":{"id":"296d7131-06b9-4fe3-b6c6-465ad0477ee0","exec":[""],"type":"text/javascript"}}],"id":"d9092bac-2d61-4b11-845d-f6ba28b958d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-access-token","value":"{{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://nacp01.noraina.net/api/user"},"response":[],"_postman_id":"d9092bac-2d61-4b11-845d-f6ba28b958d0"},{"name":"read user","event":[{"listen":"test","script":{"id":"296d7131-06b9-4fe3-b6c6-465ad0477ee0","exec":[""],"type":"text/javascript"}}],"id":"9e40d6df-0d47-45ad-91d5-e6ca63688141","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-access-token","value":"{{token}}"}],"url":"https://nacp01.noraina.net/api/user"},"response":[],"_postman_id":"9e40d6df-0d47-45ad-91d5-e6ca63688141"}],"id":"ce065bb9-2f60-44cc-a928-59c9b22898f0","_postman_id":"ce065bb9-2f60-44cc-a928-59c9b22898f0"}],"event":[{"listen":"prerequest","script":{"id":"15c4aa02-cb8b-4901-a8d9-1cd9f138bff9","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7f35ed48-5842-4b70-9069-ee53616e132f","type":"text/javascript","exec":[""]}}]}