Credentials Repositories
Get details of a repository by its name
GET
credential_id*integerThe ID of the credential.
Range
1 <= valuerepository_name*stringThe repository name
repository_owner*stringThe owner of the repository
Accept*stringapplication/json
Content-Type*stringapplication/json
Ok
application/json- response
name*stringThe name of the repository
user_name*stringThe name of the user/account on the Version Control System
full_name*stringThe fully qualified repository name. Usually composed of user_name/name
html_url*stringThe URL for viewing repository details on the provider's web application
branches*array<>List of repository branches
tags*array<>List of repository tags
curl -X GET 'https://api.devopness.com/credentials/123/repositories/repo_owner/repo_name' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <your_api_token>' \ -H 'Content-Type: application/json'Example Response
{ "name": "myrepo", "user_name": "myusername", "full_name": "myusername/myrepo", "html_url": "https://github.com/myusername/myrepo", "branches": [ { "name": "feature/some-branch", "repo_full_name": "devopness/devopness-site", "commit": { "hash": "4a03b9d21edeef8434c45818594a5d72027c14e7", "message": "Good developers always add messages to their commits", "committed_at": "2019-09-25T15:50:48.000000Z", "provider": "bitbucket", "repository": "devopness/devopness-site", "url": "https://github.com/myusername/myrepo", "author_email": "myusername@email.com", "author_name": "myusername" } } ], "tags": [ { "name": "v1.0.0", "commit": { "hash": "4a03b9d21edeef8434c45818594a5d72027c14e7", "url": "https://github.com/myusername/myrepo/commit/4a03b9d21edeef8434c45818594a5d72027c14e7" } } ]}