API Reference
Topic Viewpoint
Get viewpoint
code examples curl location globoff 'https //api catenda com/opencde/bcf/3 0/projects/{topic board id}/topics/{topic id}/viewpoints/{viewpoint id}' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //api catenda com/opencde/bcf/3 0/projects/{topic board id}/topics/{topic id}/viewpoints/{viewpoint id}", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api catenda com/opencde/bcf/3 0/projects/{topic board id}/topics/{topic id}/viewpoints/{viewpoint id}") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //api catenda com/opencde/bcf/3 0/projects/{topic board id}/topics/{topic id}/viewpoints/{viewpoint id}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // ok { "guid" "52959166 dbd2 44eb 81bb 74f955f30e0f", "orthogonal camera" { "camera view point" { "x" 100, "y" 100, "z" 100 }, "camera direction" { "x" 100, "y" 100, "z" 100 }, "camera up vector" { "x" 0, "y" 0, "z" 1 }, "view to world scale" 14, "aspect ratio" 1 }, "perspective camera" { "camera view point" { "x" 100, "y" 100, "z" 100 }, "camera direction" { "x" 100, "y" 100, "z" 100 }, "camera up vector" { "x" 0, "y" 0, "z" 1 }, "field of view" 60, "aspect ratio" 1 }, "lines" \[ { "start point" { "x" 100, "y" 100, "z" 100 }, "end point" { "x" 200, "y" 200, "z" 200 } } ], "clipping planes" \[ { "location" { "x" 100, "y" 100, "z" 100 }, "direction" { "x" 0, "y" 0, "z" 1 } } ], "bitmaps" \[ { "guid" "8c2f8818 e413 49d4 8978 7f7d95d2b27e", "bitmap type" "png", "location" { "x" 100, "y" 100, "z" 100 }, "normal" { "x" 0, "y" 1, "z" 0 }, "up" { "x" 0, "y" 0, "z" 1 }, "height" 20 } ], "snapshot" { "snapshot type" "png" }, "authorization" { "viewpoint actions" \[ "" ] } }