{"info":{"_postman_id":"f949f5ff-4c72-4782-850a-cc2b7817d4f9","name":"Adroit Platform Demo APIs","description":"<html><head></head><body><p>Welcome to <strong>Adroit's platform APIs</strong>.</p>\n<p>This is a simple set of APIs to access data feeds from the Adroit platform available at <a href=\"https://adroitplatform.com/\">https://adroitplatform.com/</a>.</p>\n<p>Contact Adroit to set up credentials for the Adroit platform and access to the demo dashboard data. Once logged in, you can access your dashboard by navigating to \"Visualisation and Monitoring\".</p>\n<p>Note: These APIs are for demo use. A more extensive list of APIs can be made available in accordance with the solution provided.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"11287390","collectionId":"f949f5ff-4c72-4782-850a-cc2b7817d4f9","publishedId":"SztBaT1d","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-06-15T04:17:33.000Z"},"item":[{"name":"emailSignIn","id":"69060055-2724-4b96-998e-d328b955e9ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"text/plain, application/vnd.user.v1+json"},{"key":"Content-Type","value":"application/json;charset=UTF-8"}],"body":{"mode":"raw","raw":"{\"username\":\"{{user-email}}\",\"password\":\"{{password}}\"}"},"url":"https://adroitplatform.com/api/emailSignIn","description":"<p><strong>Description</strong><br />Authenticates using <em>user-email</em> and <em>password</em>. \nReceive an <em>Access Token</em> from the platform on successful authentication.\nYou are required to provide valid <em>user-email</em> and <em>password</em></p>\n<p><strong>Responses</strong>  </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status</th>\n<th>Meaning</th>\n<th>Description</th>\n<th>Schema</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>OK</td>\n<td>OK</td>\n<td>SignInResponse</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not Found</td>\n<td>Not Found</td>\n<td>None</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>This operation does not require authentication</strong></p>\n","urlObject":{"protocol":"https","path":["api","emailSignIn"],"host":["adroitplatform","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"69060055-2724-4b96-998e-d328b955e9ba"},{"name":"api/feeds","id":"9525ba25-1c0f-49a7-bcc1-f352622c2df6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/vnd.snapshot.with.interval.v2+json"},{"key":"Authorization","value":"Bearer {{Bearer Token}}"}],"url":"https://adroitplatform.com/api/feeds","description":"<p><strong>Description</strong><br />Lists out all the data feed</p>\n<p><strong>Permissions</strong></p>\n<p>hasAnyAuthority('SEMANTIC_READ', 'SEMANTIC_WRITE')</p>\n<p><strong>Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>In</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>pointId</td>\n<td>query</td>\n<td>Long</td>\n<td>false</td>\n<td>pointId</td>\n</tr>\n<tr>\n<td>query</td>\n<td>query</td>\n<td>string</td>\n<td>false</td>\n<td>query</td>\n</tr>\n<tr>\n<td>alarmState</td>\n<td>query</td>\n<td>string</td>\n<td>false</td>\n<td>alarmState</td>\n</tr>\n<tr>\n<td>readingTypeId</td>\n<td>query</td>\n<td>Long</td>\n<td>false</td>\n<td>readingTypeId</td>\n</tr>\n<tr>\n<td>sourceTypes</td>\n<td>query</td>\n<td>List</td>\n<td>false</td>\n<td>sourceTypes</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Enumerated Values</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>alarmState</td>\n<td>ERROR</td>\n</tr>\n<tr>\n<td>alarmState</td>\n<td>WARNING</td>\n</tr>\n<tr>\n<td>alarmState</td>\n<td>NORMAL</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Example responses</strong></p>\n<p>200 Response</p>\n<p><strong>Responses</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status</th>\n<th>Meaning</th>\n<th>Description</th>\n<th>Schema</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>OK</td>\n<td>OK</td>\n<td>Inline</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Unauthorized</td>\n<td>Unauthorized</td>\n<td>None</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not Found</td>\n<td>Not Found</td>\n<td>None</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Response Schema</strong><br />Status Code 200</p>\n<p><strong>To perform this operation, you must be authenticated by means of one of the following methods: Bearer ( Scopes: endpoint )</strong></p>\n","urlObject":{"protocol":"https","path":["api","feeds"],"host":["adroitplatform","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9525ba25-1c0f-49a7-bcc1-f352622c2df6"},{"name":"api/points/{point_id}}/feeds/{feed_id}","id":"bd782373-4c47-4638-adbb-cb2117239c4a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Bearer {{Bearer Token}}"}],"url":"https://adroitplatform.com/api/points/{{point_id}}/feeds/{{feed_id}}","description":"<p><strong>Description</strong><br />Used to pull the data from a specific feed. You are required to provide the <em>pointId</em> and the <em>feedId</em> to retrieve data. </p>\n<p><strong>Permissions</strong><br />hasAnyAuthority('SEMANTIC_READ', 'SEMANTIC_WRITE')</p>\n<p><strong>Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>In</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>pointId</td>\n<td>path</td>\n<td>undefined</td>\n<td>true</td>\n<td>pointId</td>\n</tr>\n<tr>\n<td>feedId</td>\n<td>path</td>\n<td>undefined</td>\n<td>true</td>\n<td>feedId</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Responses</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status</th>\n<th>Meaning</th>\n<th>Description</th>\n<th>Schema</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>OK</td>\n<td>OK</td>\n<td>None</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Unauthorized</td>\n<td>Unauthorized</td>\n<td>None</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not Found</td>\n<td>Not Found</td>\n<td>None</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>To perform this operation, you must be authenticated by means of one of the following methods: Bearer ( Scopes: endpoint )</strong></p>\n","urlObject":{"protocol":"https","path":["api","points","{{point_id}}","feeds","{{feed_id}}"],"host":["adroitplatform","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"bd782373-4c47-4638-adbb-cb2117239c4a"},{"name":"/api/readings/feed","id":"9c61cd29-9f99-4447-8169-5a9796010102","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{Bearer Token}}"}],"url":"https://adroitplatform.com/api/readings/feeds?ids={{feed_id}}&from={{from_timestamp}}&to={{to_timestamp}}","description":"<p><strong>Description</strong><br />Get a CSV formatted data for a specific feed within a time period defined by the <em>feedId</em>, <em>from_timestamp</em> and <em>to_timestamp</em>.\nThe timestamp is formatted in milliseconds. </p>\n<p><strong>Responses</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status</th>\n<th>Meaning</th>\n<th>Description</th>\n<th>Schema</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>OK</td>\n<td>OK</td>\n<td>None</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Unauthorized</td>\n<td>Unauthorized</td>\n<td>None</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not Found</td>\n<td>Not Found</td>\n<td>None</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>To perform this operation, you must be authenticated by means of one of the following methods: Bearer ( Scopes: endpoint )</strong></p>\n","urlObject":{"protocol":"https","path":["api","readings","feeds"],"host":["adroitplatform","com"],"query":[{"key":"ids","value":"{{feed_id}}"},{"key":"from","value":"{{from_timestamp}}"},{"key":"to","value":"{{to_timestamp}}"}],"variable":[]}},"response":[],"_postman_id":"9c61cd29-9f99-4447-8169-5a9796010102"},{"name":"api/points/{point_id}}/feeds","id":"8d4314fd-1e3a-49c8-8aa0-4627fbabbb61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Bearer {{Bearer Token}}"}],"url":"https://adroitplatform.com/api/points/{{point_id}}/feeds/{{feed_id}}","urlObject":{"protocol":"https","path":["api","points","{{point_id}}","feeds","{{feed_id}}"],"host":["adroitplatform","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8d4314fd-1e3a-49c8-8aa0-4627fbabbb61"},{"name":"GET /api/readings","id":"1603794f-35e7-4b25-8696-cd7c4cb557ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","description":"<p>get bulk readings</p>\n","urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"1603794f-35e7-4b25-8696-cd7c4cb557ef"},{"name":"readUsingGET","id":"7ef092a3-f79f-4fd7-bf3a-38c82b42ef1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"7ef092a3-f79f-4fd7-bf3a-38c82b42ef1e"}],"event":[{"listen":"prerequest","script":{"id":"ee19bd67-4a48-4e20-9007-f4fc2f1b5204","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"5e6ea43e-97d6-4737-8886-ca96a64bc273","type":"text/javascript","exec":[""]}}]}