List the projects and branches visible to the caller
GET
/api/v1/drive/projects
const url = 'https://app.avera.io/api/v1/drive/projects';const options = {method: 'GET', headers: {'X-Avera-Drive-Contract': '1'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.avera.io/api/v1/drive/projects \ --header 'X-Avera-Drive-Contract: 1'A delegated OAuth client sees only the projects its grant was consented for, on top of what the permission register lets the delegating person read.
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”X-Avera-Drive-Contract
required
integer format: int32
Responses
Section titled “Responses”OK
Media type*/*
object
projects
required
Array<object>
object
id
required
string format: uuid
key
required
string
name
required
string
branches
required
Array<object>
object
key
required
string
name
required
string
isMain
required
boolean
seq
required
integer format: int64