Route : https://api.epiteks.xyz/blih/
Check if API is avaiable
Response :
{
"status":true/false
}
Check if credentials are rights
Parameters :
- "login":"login_x"
- "password":"password"
Response :
{
"status":true/false
}
Get repositories list
Parameters :
- "login":"login_x"
- "password":"password"
Response :
[
"project",
...
]
Create new repository
Parameters :
- "login":"login_x"
- "password":"password"
Body :
{
"name": "Project",
"description": "OPTIONAL"
}
Response :
{
"message": "Repository Project created"
}
Get repository informations
Parameters :
- "login":"login_x"
- "password":"password"
Response :
{
"uuid": "...",
"url": "https://blih.epitech.eu/repositories/Project",
"creation_time": "123456789",
"name": "Project",
"public": "False",
"description": "None"
}
Delete repository
Parameters :
- "login":"login_x"
- "password":"password"
Response :
{
"message": "Repository deleted"
}
Get repository ACLs
Parameters :
- "login":"login_x"
- "password":"password"
Response :
[
{
"login": "login_y",
"read": true,
"write": true,
"admin": false
},
...
]
Get repository ACLs for user
Parameters :
- "login":"login_x"
- "password":"password"
Response :
{
"login": "login_y",
"read": true,
"write": true,
"admin": false
}
Set repository ACLs for user
Parameters :
- "login":"login_x"
- "password":"password"
Body :
{
"read": true/false,
"write": true/false,
"admin": true/false
}
Response :
{
"message": "ACL correctly applied"
}
Get sshkeys list
Parameters :
- "login":"login_x"
- "password":"password"
Response :
[
{
"name": "login_x",
"key": "..."
},
...
]
Add sshkey
Parameters :
- "login":"login_x"
- "password":"password"
Body :
{
"key": "..."
}
Response :
{
"message": "sshkey uploaded"
}
Delete sshkey
Parameters :
- "login":"login_x"
- "password":"password"
Response :
{
"message": "sshkey deleted"
}