This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CreateResponse | |
{ | |
// use of JsonPropertyAttribute is supported on properties if needed. | |
public bool ok { get; set; } | |
public string id { get; set; } | |
public string rev { get; set; } | |
public string error { get; set; } | |
public string reason { get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task<R> Put<T, R>(T docObject) | |
{ | |
string DbName = "demodb"; | |
string NewDocId = "newDocId"; | |
// Valid paths, methods and response codes are documented here: http://docs.couchdb.org/en/stable/http-api.html | |
using (var httpClient = new HttpClient()) | |
{ | |
httpClient.BaseAddress = new Uri("http://server:5984/"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copies the Media folder from the previous release folder to the newly deployed folder. | |
# | |
cd $OctopusOriginalPackageDirectoryPath | |
cd .. | |
Write-Host "Moving media folder for release " $OctopusParameters["Octopus.Release.Number"] | |
$R = Get-ChildItem | Sort-Object Name | select -last 2 | |
$old = $R[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |