Hi I want to create Repository with Artifactory JFROG Api,But I got 406 error code with api
I can run this json request over postman with selected application/json mime type
But I cant run over my c# code.What should I do in my .net code to use jfrog artifactory api?
{"key":"ArtifactRepoGroup3","rclass":"virtual","packageType":"nuget","description":"This repo created by"}
using (HttpClient client = new HttpClient()) { client.BaseAddress = new Uri(BaseAddress); client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
............
HttpResponseMessage response = client.PutAsJsonAsync(puturi, value).Result; }