Maintainers API
List maintainers
Parameter “url” in block “Package” is available only for new core.
GET /api/v1/platforms/:id/maintainers.json
Parameters:
- id
- Required Integer identifier of current platform
- package_name
- Optional string — package name. You can use this parameters for searching data about specific package or group of packages.
Request examples:
/api/v1/platforms/64/maintainers.json
/api/v1/platforms/64/maintainers.json?package_name=alpine
Response:
{
"maintainers": [
{
"project": {
"id": "project id",
"name": "project name",
"visibility": "visibility (open/hidden)",
"fullname": "project fullname",
"url": "url to project data page",
"git_url": "path to project git",
"ssh_url": "path to project git over ssh",
"maintainer": {
"id": "user id",
"uname": "user uname",
"name": "user name",
"url": "api user path",
"email": "user email"
}
},
"package": {
"id": "package id",
"name": "package name",
"type": "package type (source/binary)",
"epoch": "package epoch",
"version": "package version",
"release": "package release",
"updated_at": "package last updated date",
"url": "package url",
"dependent_projects": [
{
"id": "project id",
"name": "project name",
"visibility": "visibility (open/hidden)",
"fullname": "project fullname",
"url": "url to project data page",
"git_url": "path to project git",
"ssh_url": "path to project git over ssh",
"maintainer": {
"id": "user id",
"uname": "user uname",
"name": "user name",
"url": "api user path",
"email": "user email"
},
"dependent_packages": [
"package name"
]
}
]
},
"maintainer": {
"id": "user id",
"uname": "user uname",
"name": "user name",
"url": "api user path",
"email": "user email"
}
}
]
}
Example:
{
"maintainers": [
{
"project": {
"id": 666,
"name": "evil_tools",
"visibility": "open",
"fullname": "abf/evil_tools",
"url": "/api/v1/projects/666.json",
"git_url": "https:/ivan@abf.rosalinux.ru/jaroslav_garkin/hwinfo.git",
"ssh_url": "git@abf.rosalinux.ru:jaroslav_garkin/hwinfo.git",
"maintainer": {
"id": 1,
"name": "Ivan Aivazovsky",
"uname": "ivan_aivazovsky",
"url": "/api/v1/users/1.json",
"email": "ivan.aivazovsky@email.ru "
}
},
"package": {
"id": 1,
"name": "alpine",
"type": "binary",
"epoch": 1,
"version": "2.02",
"release": "1",
"updated_at": 1348060890,
"url": "http://file-store.rosalinux.ru/api/v1/file_stores/675bfe070075abd5b7b49ecf213e830ff2f56ae3",
"dependent_projects": [
{
"id": 666,
"name": "evil_tools",
"visibility": "open",
"fullname": "abf/evil_tools",
"url": "/api/v1/projects/666.json",
"git_url": "https:/ivan@abf.rosalinux.ru/jaroslav_garkin/hwinfo.git",
"ssh_url": "git@abf.rosalinux.ru:jaroslav_garkin/hwinfo.git",
"maintainer": {
"id": 1,
"name": "Ivan Aivazovsky",
"uname": "ivan_aivazovsky",
"url": "/api/v1/users/1.json",
"email": "ivan.aivazovsky@email.ru "
},
"dependent_packages": [
"rpmdrake"
]
}
]
},
"maintainer": {
"id": 1,
"name": "Ivan Aivazovsky",
"uname": "ivan_aivazovsky",
"url": "/api/v1/users/1.json",
"email": "ivan.aivazovsky@email.ru "
}
}
]
}