iR Engine API
project
/project
1 min
code examples curl location globoff '/project?filter={%22%24sort%22%3a{}%2c%22id%22%3a{}%2c%22name%22%3a{}%2c%22enabled%22%3a{}%2c%22thumbnail%22%3a{}%2c%22repositorypath%22%3a{}%2c%22version%22%3a{}%2c%22engineversion%22%3a{}%2c%22description%22%3a{}%2c%22needsrebuild%22%3a{}%2c%22haslocalchanges%22%3a{}%2c%22sourcerepo%22%3a{}%2c%22sourcebranch%22%3a{}%2c%22updatetype%22%3a{}%2c%22updateschedule%22%3a{}%2c%22updateuserid%22%3a{}%2c%22haswriteaccess%22%3a{}%2c%22commitsha%22%3a{}%2c%22commitdate%22%3a{}%2c%22visibility%22%3a{}}' \\ \ 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("/project?filter={\\"$sort\\" {},\\"id\\" {},\\"name\\" {},\\"enabled\\" {},\\"thumbnail\\" {},\\"repositorypath\\" {},\\"version\\" {},\\"engineversion\\" {},\\"description\\" {},\\"needsrebuild\\" {},\\"haslocalchanges\\" {},\\"sourcerepo\\" {},\\"sourcebranch\\" {},\\"updatetype\\" {},\\"updateschedule\\" {},\\"updateuserid\\" {},\\"haswriteaccess\\" {},\\"commitsha\\" {},\\"commitdate\\" {},\\"visibility\\" {}}", 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("/project?filter={\\"$sort\\" {},\\"id\\" {},\\"name\\" {},\\"enabled\\" {},\\"thumbnail\\" {},\\"repositorypath\\" {},\\"version\\" {},\\"engineversion\\" {},\\"description\\" {},\\"needsrebuild\\" {},\\"haslocalchanges\\" {},\\"sourcerepo\\" {},\\"sourcebranch\\" {},\\"updatetype\\" {},\\"updateschedule\\" {},\\"updateuserid\\" {},\\"haswriteaccess\\" {},\\"commitsha\\" {},\\"commitdate\\" {},\\"visibility\\" {}}") http = net http new(url host, url port); request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = http request(request) puts response read body import requests import json url = "/project?filter={\\"$sort\\" {},\\"id\\" {},\\"name\\" {},\\"enabled\\" {},\\"thumbnail\\" {},\\"repositorypath\\" {},\\"version\\" {},\\"engineversion\\" {},\\"description\\" {},\\"needsrebuild\\" {},\\"haslocalchanges\\" {},\\"sourcerepo\\" {},\\"sourcebranch\\" {},\\"updatetype\\" {},\\"updateschedule\\" {},\\"updateuserid\\" {},\\"haswriteaccess\\" {},\\"commitsha\\" {},\\"commitdate\\" {},\\"visibility\\" {}}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // success { "total" 0, "limit" 0, "skip" 0, "data" \[ { "id" "", "name" "", "enabled" false, "thumbnail" "", "repositorypath" "", "version" "", "engineversion" "", "description" "", "needsrebuild" false, "haslocalchanges" false, "sourcerepo" "", "sourcebranch" "", "updatetype" "", "updateschedule" "", "updateuserid" "", "haswriteaccess" false, "projectpermissions" \[ { "id" "", "projectid" "", "userid" "", "createdby" "", "type" "", "user" { "id" "", "name" "", "ageverified" false, "isguest" false, "invitecode" "", "lastlogin" { "id" "", "useragent" "", "ipaddress" "", "userid" "", "identityproviderid" "", "createdat" "" }, "createdat" "", "updatedat" "" }, "updatedby" "", "createdat" "", "updatedat" "" } ], "commitsha" "", "commitdate" "", "assetsonly" false, "visibility" "", "settings" \[ { "id" "", "key" "", "value" "", "type" "", "projectid" "", "userid" "", "createdat" "", "updatedat" "" } ], "updatedby" "", "createdat" "", "updatedat" "" } ] }// not authenticated // general error