Skip to content

Commit

Permalink
release 0.1.0 alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
jlouros committed Oct 31, 2014
1 parent 43dfab4 commit 76bec3a
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 27 deletions.
5 changes: 5 additions & 0 deletions Atlassian.Stash.Api.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Atlassian.Stash.Api", "Atla
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Atlassian.Stash.Api.IntegrationTests", "Atlassian.Stash.Api.IntegrationTests\Atlassian.Stash.Api.IntegrationTests.csproj", "{AF376EF0-2FF2-4D2D-ADBF-309A7E78E278}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{DA59DCAC-4432-4D87-AE3A-72B57F704013}"
ProjectSection(SolutionItems) = preProject
README.md = README.md
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
1 change: 1 addition & 0 deletions Atlassian.Stash.Api/Atlassian.Stash.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<Compile Include="Workers\HttpCommunicationWorker.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Atlassian.Stash.Api.nuspec" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup />
Expand Down
41 changes: 23 additions & 18 deletions Atlassian.Stash.Api/Atlassian.Stash.Api.nuspec
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>$id$</id>
<version>$version$</version>
<authors>$author$</authors>
<owners>$author$</owners>
<iconUrl>https://developer.atlassian.com/imgs/charlie.png</iconUrl>
<licenseUrl>https://raw.githubusercontent.com/jlouros/StashApiCSharp/master/LICENSE</licenseUrl>
<projectUrl>https://github.com/jlouros/StashApiCSharp</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$description$</description>
<releaseNotes>"Alpha package"
<metadata>
<id>$id$</id>
<version>$version$</version>
<authors>$author$</authors>
<owners>$author$</owners>
<iconUrl>https://developer.atlassian.com/imgs/charlie.png</iconUrl>
<licenseUrl>https://raw.githubusercontent.com/jlouros/StashApiCSharp/master/LICENSE</licenseUrl>
<projectUrl>https://github.com/jlouros/StashApiCSharp</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$description$</description>
<releaseNotes>
*Warning this package isn't backwards compatible*
Functionality changes:
- More comprehensive API abstraction.
- API actions organized by Stash area (like projects, repositories, branches, etc)

Including only basic get methods for:
- GET all Projects
- GET all Repositories of a Projects
- GET all Tags from a Repository</releaseNotes>
<copyright>Copyright John Louros 2014</copyright>
<tags>Atlassian Stash API-Wrapper</tags>
New features:
- refactored StashClient class. Use it to access APIs actions (StashClient.Projects.{Action})
- Added GET capabilities for 'branches' and 'commits'
- Added DELETE capabilities for 'projects' and 'repositories'
</releaseNotes>
<copyright>Copyright John Louros 2014</copyright>
<tags>Atlassian Stash API-Wrapper</tags>
<dependencies>
<dependency id="Microsoft.AspNet.WebApi.Client" version="5.2.2" />
</dependencies>
</metadata>
</metadata>
</package>
8 changes: 4 additions & 4 deletions Atlassian.Stash.Api/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Atlassian.Stash.Api")]
[assembly: AssemblyDescription("API wrapper for Atlassian Stash")]
[assembly: AssemblyDescription("C# API wrapper for Atlassian Stash")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("John Louros")]
[assembly: AssemblyProduct("Atlassian.Stash.Api")]
Expand All @@ -31,6 +31,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.0.1.0")]
[assembly: AssemblyFileVersion("0.0.1.0")]
[assembly: AssemblyInformationalVersion("0.0.2-alpha")]
[assembly: AssemblyVersion("0.1.0.0")]
[assembly: AssemblyFileVersion("0.1.0.0")]
[assembly: AssemblyInformationalVersion("0.1.0-alpha")]
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,21 @@ There are 2 ways to use this library:
https://www.nuget.org/packages/Atlassian.Stash.Api/

##Sample Usage
To get a list of projects

var client = new StashClient("http://your_stash_server_url:7990/", "username", "password");
Create a Stash connection
// Stash client connection using basic authentication
var client = new StashClient("http://your_stash_server_url:7990/", "username", "password");

Gets a list of projects (by default a maximum of 25 results will be return)
// we recommend use of async/await instead of forcing synchronous execution
var projects = client.GetProjectsAsync().Result;

Also take a look at the integration tests project for more samples.
var projects = client.Projects.Get().Result;

Gets a list of repositories from project "PROJKEY" (by default a maximum of 25 results will be return)
// using async
var repositories = await client.Repositories.Get("PROJKEY");

Delete repository "REPOSLUG" from project "PROJKEY"
await client.Repositories.Delete("PROJKEY", "REPOSLUG");


*Take a look at the integration tests project for more samples.*

0 comments on commit 76bec3a

Please sign in to comment.