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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="XycloneDesigns.Apis.SAPS" Version="1.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="XycloneDesigns.Apis.SAPS" Version="1.4.0" />
                    
Directory.Packages.props
<PackageReference Include="XycloneDesigns.Apis.SAPS" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add XycloneDesigns.Apis.SAPS --version 1.4.0
                    
#r "nuget: XycloneDesigns.Apis.SAPS, 1.4.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package XycloneDesigns.Apis.SAPS@1.4.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=XycloneDesigns.Apis.SAPS&version=1.4.0
                    
Install as a Cake Addin
#tool nuget:?package=XycloneDesigns.Apis.SAPS&version=1.4.0
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.4.0 17 7/21/2025
1.1.0 90 7/12/2025
1.0.5 70 7/5/2025

Updates