Skip to Content
Credentials Repositories

Get details of a repository by its name

GET
/credentials/{credential_id}/repositories/{repository_owner}/{repository_name}

Path Parameters

credential_id*integer

The ID of the credential.

Range1 <= value
repository_name*string

The repository name

repository_owner*string

The owner of the repository

Header Parameters

Accept*string

application/json

Authorization*string

Bearer {{access_token}}

Content-Type*string

application/json

Response Body

Ok

application/json
  1. response
name*string

The name of the repository

user_name*string

The name of the user/account on the Version Control System

full_name*string

The fully qualified repository name. Usually composed of user_name/name

html_url*string

The URL for viewing repository details on the provider's web application

branches*array<>

List of repository branches

tags*array<>

List of repository tags

Example Request
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"      }    }  ]}