XycloneDesigns.Apis.SAPS
1.4.0
dotnet add package XycloneDesigns.Apis.SAPS --version 1.4.0
NuGet\Install-Package XycloneDesigns.Apis.SAPS -Version 1.4.0
<PackageReference Include="XycloneDesigns.Apis.SAPS" Version="1.4.0" />
<PackageVersion Include="XycloneDesigns.Apis.SAPS" Version="1.4.0" />
<PackageReference Include="XycloneDesigns.Apis.SAPS" />
paket add XycloneDesigns.Apis.SAPS --version 1.4.0
#r "nuget: XycloneDesigns.Apis.SAPS, 1.4.0"
#:package XycloneDesigns.Apis.SAPS@1.4.0
#addin nuget:?package=XycloneDesigns.Apis.SAPS&version=1.4.0
#tool nuget:?package=XycloneDesigns.Apis.SAPS&version=1.4.0
Xyclone Designs SAPS API Wrapper
A simple wrapper to the Xyclone Designs SAPS API.
Include the library and then make calls to the various API end points.
Usage
<pre><code class='language-cs'> [Type].Request request = new [Type].Request(<args>) { ... };
HttpClient httpclient = new HttpClient(); using HttpRequestMessage httprequestmessage = request.ToHttpRequestMessage(); using HttpResponseMessage httpresponsemessage = await httpclient.SendAsync(httprequestmessage);
string json = await httpresponsemessage.Content.ReadAsStringAsync();
// System.Text.Json [Type].Response response = JsonSerializer.Deserialize<[Type]>(json);
// Newtonsoft [Type].Response response = JObject.Parse(json).ToObject<[Type].Response>();
</code></pre>
REST
Visit api.xyclonedesigns.co.za/saps/rest for a more comprehensive swagger documentation in regards to the API.
General Request
Base From XycloneDesigns.Apis.General. <pre> public class Request { public int Page { get; set; } = 1; public int PageSize { get; set; } = 10; public string[] OrderBy { get; set; } = []; public int[] Pk { get; set; } = []; public bool Reverse { get; set; } = false;
// Categories...
public string[]? Name { get; set; }
// PoliceStations...
public int[]? PkDistrict { get; set; }
public int[]? PkMunicipality { get; set; }
public int[]? PkProvince { get; set; }
// Records...
public int[]? PkPoliceStation { get; set; }
public int[]? Year { get; set; }
} </pre>
General Response
Base From XycloneDesigns.Apis.General. <pre> public class Reponse { public int Count { get; set; } = 1; public int Page { get; set; } = 1; public int Pages { get; set; } = 1; public IEnumerable<T> Items { get; set; } = Enumerable.Empty<T>(); } </pre>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- XycloneDesigns.Apis.General (>= 1.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Updates