/nupkg/{id-lower}/{version-lower}/{id-lower}.{version-lower}.nupkg"
},
new Resource(apiBase + ApiConfig.AutoComplete,
@@ -67,6 +67,7 @@ namespace isnd.Services
Comment = "Search Query service"
},
+
new Resource(apiBase + ApiConfig.Registration,
"RegistrationsBaseUrl/Versioned")
{
@@ -100,7 +101,7 @@ namespace isnd.Services
public string[] GetVersions(
string id,
- NuGetVersion parsedVersion,
+ NuGetVersion parsedVersion = null,
bool prerelease = false,
string packageType = null,
int skip = 0,
@@ -110,7 +111,7 @@ namespace isnd.Services
v => v.PackageId == id
&& (prerelease || !v.IsPrerelease)
&& (packageType == null || v.Type == packageType)
- && (parsedVersion.CompareTo
+ && (parsedVersion==null || parsedVersion.CompareTo
(new SemanticVersion(v.Major, v.Minor, v.Patch)) < 0)
)
.OrderBy(v => v.NugetVersion)
@@ -287,6 +288,7 @@ namespace isnd.Services
.Include(p => p.LatestCommit)
.Where(p => p.Id.StartsWith(query.Query)
&& (query.Prerelease || p.Versions.Any(p => !p.IsPrerelease)))
+ .OrderBy(p => p.CommitNId)
.Skip(query.Skip).Take(query.Take)
.ToListAsync()
);
diff --git a/src/isnd/Startup.cs b/src/isnd/Startup.cs
index 963e3f2..d6ff1e0 100644
--- a/src/isnd/Startup.cs
+++ b/src/isnd/Startup.cs
@@ -93,7 +93,8 @@ namespace isnd
.AddNewtonsoftJson(s =>
{
s.SerializerSettings.ReferenceResolverProvider = () => new NSJWebApiReferenceResolver();
- });
+ })
+ .AddXmlSerializerFormatters();
services.AddSwaggerGen(options =>
{
options.SwaggerDoc("v1", new OpenApiInfo
diff --git a/src/isnd/Views/Home/Index.cshtml b/src/isnd/Views/Home/Index.cshtml
index 62e7d2b..50c0d68 100644
--- a/src/isnd/Views/Home/Index.cshtml
+++ b/src/isnd/Views/Home/Index.cshtml
@@ -8,9 +8,4 @@
@Model.PkgCount identifiant(s) de paquet dans le SI
-
-
-
-
-
\ No newline at end of file
diff --git a/test/data/test-isn/ANuGet.Config b/test/data/test-isn/ANuGet.Config
index ec3aa41..e778008 100644
--- a/test/data/test-isn/ANuGet.Config
+++ b/test/data/test-isn/ANuGet.Config
@@ -3,6 +3,6 @@
-
+
diff --git a/test/data/test-isn/test-isn.csproj b/test/data/test-isn/test-isn.csproj
index 9836c56..4d141a3 100644
--- a/test/data/test-isn/test-isn.csproj
+++ b/test/data/test-isn/test-isn.csproj
@@ -10,4 +10,7 @@
1.0.7+Branch.main.Sha.3695c1742965d93eba0ad851656cfaa3e44ba327
1.0.7
+
+
+
\ No newline at end of file
diff --git a/test/isn.tests/PushTest.cs b/test/isn.tests/PushTest.cs
index 5a7585c..057d9df 100644
--- a/test/isn.tests/PushTest.cs
+++ b/test/isn.tests/PushTest.cs
@@ -54,7 +54,7 @@ namespace isn.tests
[Fact]
public void GetServerResourcesUsingHttpClientAsyncTest()
{
- var model = SourceHelpers.GetServerResources("Https://isn.pschneider.fr/index.json");
+ var model = SourceHelpers.GetServerResources("Https://isn.pschneider.fr/v3/index");
Console.WriteLine(JsonConvert.SerializeObject(model));
Assert.NotNull(model.Resources);
var pub = model.Resources.FirstOrDefault((r) => r.Type.StartsWith("PackagePublish/"));
diff --git a/test/isnd.tests/isnd.tests.csproj b/test/isnd.tests/isnd.tests.csproj
index f3572a8..b5e25b5 100644
--- a/test/isnd.tests/isnd.tests.csproj
+++ b/test/isnd.tests/isnd.tests.csproj
@@ -10,12 +10,13 @@
1.0.7
-
+
+