Nobly.OnBaseRestApiClient
1.3.17
dotnet add package Nobly.OnBaseRestApiClient --version 1.3.17
NuGet\Install-Package Nobly.OnBaseRestApiClient -Version 1.3.17
<PackageReference Include="Nobly.OnBaseRestApiClient" Version="1.3.17" />
<PackageVersion Include="Nobly.OnBaseRestApiClient" Version="1.3.17" />
<PackageReference Include="Nobly.OnBaseRestApiClient" />
paket add Nobly.OnBaseRestApiClient --version 1.3.17
#r "nuget: Nobly.OnBaseRestApiClient, 1.3.17"
#:package Nobly.OnBaseRestApiClient@1.3.17
#addin nuget:?package=Nobly.OnBaseRestApiClient&version=1.3.17
#tool nuget:?package=Nobly.OnBaseRestApiClient&version=1.3.17
Modify and publish NoblyOnBaseRestApiClient
- Check out OnBaseRestApi
masterbranch and generate new client with NSwag. - Check out OnBaseRestApiClient
masterbranch, create a new branch from it and replace...\OnBaseRestApiClient\NoblyOnBaseRestApiClient\ApiClient.cswith the freshly generatedApiClient.cs. - Increment version numbers in NoblyOnBaseRestApiClient.csproj (normally one minor version greater than greatest minor version on GitHub).
- Build NoblyOnBaseRestApiClient.
- Update NoblyOnBaseRestApiClient ReadMe (this file), with the new version as title for new features and other important changes in this version.
- Commit the newly created NoblyOnBaseRestApiClient branch to GitHub and merge into
master. - Create Git tag on the commit of NoblyOnBaseRestApiClient
masterbranch with the same version as set in the .cproj file (e.g.git tag -a 1.3.12) - Publish NoblyOnBaseRestApiClient to a folder.
- Publish generated NoblyOnBaseRestApiClient package generated in that folder to nuget (e.g.
dotnet nuget push Nobly.OnBaseRestApiClient.1.3.12.nupkg -k xxxxxxxxxxxxxxxxxxxxxx -s https://api.nuget.org/v3/index.json) (Ask password,xxxxxxxxxxxxxxxxxxxxxx, for publishing to nuget of a colleague).
During development, the nuget package can be installed temporarily from local disk in a customer projects, provided that the folder to which it was published is added to VS nuget sources.
To generate a new ApiClient in NSwag:
- Install NSwagStudio.
- Double-click
\OnBaseRestApiClient\NoblyOnBaseRestApiClient\generate client.nswagto open it in NSwagStudio. - Fire up OnBaseRestApi and go to its swagger page.
- Copy the
https://localhost:{port}/openapi/v1/openapi.jsonURL. - Paste this URL into
Inputs->Specification URLand clickCreate local copy. - Click CTRL+S to save
generate client.nswagfile. - In
Output->CSharpClient->Settings->Output file path, write the output path, e.g.,C:\repro\OnBaseRestApiClient\NoblyOnBaseRestApiClient\ApiClient.cs. - Click
Outputs->Generate Outputsfor a preview, and thenGenerate Filesin order to save the generated API client to file.
Important note:
Client methods are susceptible to change since NSwag will only include the HTTP method in client names when there is a name conflict, e.g., if there is a GET and a POST method with the same route.
So, if there is no signature conflict for a method and another endpoint is added with the same signature but a different HTTP method, the original client method name will change, i.e., it will subsequently include the HTTP method in its client method name.
E.g. if only a GET method exists for the endpoint Document, this would generate a DocumentAsync client method, but if a POST method with the same route were added, the DocumentAsync client method name would change to DocumentGetAsync.
This means that method signatures in a newly generated client should always be compared to the ones in the existing client to detect whether any client method signatures have changed.
Changed method signatures will need to be modified accordingly in any consuming code.
v.1.3.8:
- Method name
ApiDocumentsNotesAsyncchanged toApiDocumentsNotesGetAsync. - Method name
ApiDocumentsHistoryAsyncchanged toApiDocumentsHistoryGetAsync.
v.1.3.9:
- Added method
ApiWorkViewSqlObjectsWorkViewsAsync
v.1.3.13:
- Added method
ApiWorkViewSqlObjectsSearchAsync - Added method
ApiWorkViewSqlObjectDeleteAsync - Method
ApiWorkViewSqlObjectsGetAsyncwas marked as obsolete - Method
ApiWorkViewSqlObjectsPostAsyncwas marked as obsolete
v.1.3.14
- Fixed support for data types
Text,FormattedTextand external datasets. - Fixed handling of attribute default value.
- Fixed bugs in base property filtering and retrieval.
- Manually added method
ApiWorkViewSqlObjectsSearchPostAsyncto get a list of WorkView objects. This was done to include discriminators in the request'sFilter.Expressionsin order to distinguishWrapperandComparisonobjects.
v.1.3.17
- Added method
ApiWorkViewSqlClassInfoAsync.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Newtonsoft.Json (>= 13.0.3)
- System.ComponentModel.Annotations (>= 4.7.0)
- System.Runtime.Serialization.Primitives (>= 4.3.0)
- System.Text.Json (>= 8.0.5)
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.3.17 | 172 | 7/18/2025 |
| 1.3.16 | 210 | 2/25/2025 |
| 1.3.15 | 199 | 11/28/2024 |
| 1.3.14 | 196 | 10/29/2024 |
| 1.3.13 | 212 | 9/3/2024 |
| 1.3.11 | 218 | 5/21/2024 |
| 1.3.10 | 184 | 5/16/2024 |
| 1.3.9 | 169 | 5/16/2024 |
| 1.3.8 | 247 | 3/21/2024 |
| 1.3.6 | 551 | 1/4/2024 |
| 1.3.3 | 506 | 12/12/2023 |
| 1.3.2 | 489 | 12/12/2023 |
| 1.3.1 | 493 | 12/11/2023 |
| 1.3.0 | 510 | 12/7/2023 |
| 1.2.10 | 1,546 | 2/2/2022 |
| 1.2.7 | 3,739 | 8/24/2020 |
| 1.2.6 | 1,195 | 8/21/2020 |
| 1.2.5 | 1,133 | 8/18/2020 |
| 1.2.4 | 1,228 | 8/18/2020 |
| 1.2.3 | 1,207 | 8/13/2020 |
| 1.2.2 | 1,457 | 6/26/2020 |
| 1.2.1 | 1,224 | 6/26/2020 |
| 1.2.0 | 1,233 | 6/26/2020 |
| 1.1.0 | 1,222 | 6/19/2020 |
| 1.0.1 | 1,246 | 6/19/2020 |
| 1.0.0 | 1,257 | 6/19/2020 |