WIP page leaf
This commit is contained in:
parent
2dcf1a2806
commit
7f9984b059
28 changed files with 164 additions and 75 deletions
|
|
@ -1,20 +0,0 @@
|
|||
using isn.abst;
|
||||
|
||||
namespace isnd.Entities
|
||||
{
|
||||
public static class ApiConfig
|
||||
{
|
||||
public const string Publish = "put";
|
||||
public const string Base = "index.json";
|
||||
public const string Catalog = "catalog";
|
||||
public const string CatalogPage = "catalog-page";
|
||||
public const string GetPackage = Constants.PaquetFileEstension;
|
||||
public const string GetVersion = "version";
|
||||
public const string Search = "search";
|
||||
public const string AutoComplete = "autocomplete";
|
||||
public const string CatalogLeaf = "catalog-leaf";
|
||||
public const string Delete = "delete";
|
||||
public const string Registration = "registration";
|
||||
internal const string GetNuspec = Constants.SpecFileEstension;
|
||||
}
|
||||
}
|
||||
38
src/isnd/Entities/CatalogRegistration.cs
Normal file
38
src/isnd/Entities/CatalogRegistration.cs
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
using System;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace isnd.Controllers
|
||||
{
|
||||
public class CatalogRegistration
|
||||
{
|
||||
[JsonProperty("@id")]
|
||||
public string Id { get; set; }
|
||||
|
||||
|
||||
/*
|
||||
"@id": "https://api.nuget.org/v3/registration3/nuget.versioning/4.3.0.json",
|
||||
"catalogEntry": "https://api.nuget.org/v3/catalog0/data/2017.08.11.18.24.22/nuget.versioning.4.3.0.json",
|
||||
"listed": true,
|
||||
"packageContent": "https://api.nuget.org/v3-flatcontainer/nuget.versioning/4.3.0/nuget.versioning.4.3.0.nupkg",
|
||||
"published": "2017-08-11T18:24:14.36+00:00",
|
||||
"registration": "https://api.nuget.org/v3/registration3/nuget.versioning/index.json"
|
||||
|
||||
|
||||
*/
|
||||
[JsonProperty("catalogEntry")]
|
||||
public string CatalogEntry { get; set; }
|
||||
|
||||
[JsonProperty("listed")]
|
||||
public bool Listed { get; set; } = true;
|
||||
|
||||
[JsonProperty("packageContent")]
|
||||
public string PackageContent { get; set; }
|
||||
|
||||
[JsonProperty("published")]
|
||||
public DateTime CommitTimeStamp { get; set; }
|
||||
|
||||
[JsonProperty("registration")]
|
||||
public string registration { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
11
src/isnd/Entities/NewReleaseInfo.cs
Normal file
11
src/isnd/Entities/NewReleaseInfo.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
using System;
|
||||
|
||||
namespace isnd.Data
|
||||
{
|
||||
public class NewReleaseInfo
|
||||
{
|
||||
public string Version { get; set; }
|
||||
public string ChangeLog { get; set; }
|
||||
public DateTime BuildDate { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue