Currently, Artifact Store exposes a set of REST APIs.
Method: GET
Endpoint: /
Response: name of the project.
Method: GET
Endpoint: /ping
Response: "pong"
Method: GET
Endpoint: /repositories
Response:
{
"repos": [
{
"server": "git.example.com",
"owner": "username",
"repo": "repository-name",
"timeAdded": "RFC3339 string"
}
]
}
Method: GET
Endpoint: /:server/:owner/:repo
Response:
{
"server": "git.example.com",
"owner": "username",
"repo": "repository-name",
"commits": [
{
"commit": "commit-hash",
"timeAdded": "RFC3339 string"
}
]
}
Method: GET
Endpoint: /:server/:owner/:repo/:commit
Response:
{
"server": "git.example.com",
"owner": "username",
"repo": "repository-name",
"commit": "commit-hash",
"artifacts": [
{
"path": "artifact-path",
"timeAdded": "RFC3339 string"
}
]
}
Method: PUT
Endpoint: /:server/:owner/:repo/:commit/*path
Response:
{
"code": 200,
"message": "OK"
}
Method: GET
Endpoint: /:server/:owner/:repo/:commit/*path
Response: binary file