diff --git a/src/Atlassian.Stash/Api/Labels.cs b/src/Atlassian.Stash/Api/Labels.cs new file mode 100644 index 0000000..0ecfacd --- /dev/null +++ b/src/Atlassian.Stash/Api/Labels.cs @@ -0,0 +1,66 @@ +using System.Threading.Tasks; +using Atlassian.Stash.Entities; +using Atlassian.Stash.Helpers; +using Atlassian.Stash.Workers; + +namespace Atlassian.Stash.Api +{ + public class Labels + { + private const string MANY_LABELS = "rest/api/1.0/labels"; + private const string ONE_LABEL = "rest/api/1.0/labels/{0}"; + private const string LABELED_REPOSITORY = "rest/api/1.0/labels/{0}/labeled"; + + private HttpCommunicationWorker _httpWorker; + + internal Labels(HttpCommunicationWorker httpWorker) + { + _httpWorker = httpWorker; + } + + public async Task> Get(RequestOptions requestOptions = null) + { + string requestUrl = UrlBuilder.FormatRestApiUrl(MANY_LABELS, requestOptions); + + ResponseWrapper