get__repo
Parameters
Name
In
Type
Required
Description
TypeScript Client Library
public getStorageRepos = async (workspaceId?: string): Promise<GetReposResponse> => {
const queryParams = workspaceId ? `?workspaceId=${workspaceId}` : '';
return this.makeRequest<GetReposResponse>(`repo${queryParams}`, 'GET', null);
};Code Samples
# You can also use wget
curl -X GET https://backend.flashback.tech/repo \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
# With workspaceId parameter
curl -X GET 'https://backend.flashback.tech/repo?workspaceId=workspace-123' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'GET https://backend.flashback.tech/repo HTTP/1.1
Host: localhost:3000
Accept: application/json
# With workspaceId parameter
GET https://backend.flashback.tech/repo?workspaceId=workspace-123 HTTP/1.1
Host: localhost:3000
Accept: application/jsonconst headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
// Without workspaceId
fetch('https://backend.flashback.tech/repo',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
// With workspaceId
const workspaceId = 'workspace-123';
fetch(`https://backend.flashback.tech/repo?workspaceId=${workspaceId}`,
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});Responses
Status
Meaning
Description
Schema
Response Schema
Name
Type
Required
Restrictions
Description
Last updated
Was this helpful?