Igtampe.Redistributables.Controllers
1.0.0
dotnet add package Igtampe.Redistributables.Controllers --version 1.0.0
NuGet\Install-Package Igtampe.Redistributables.Controllers -Version 1.0.0
<PackageReference Include="Igtampe.Redistributables.Controllers" Version="1.0.0" />
paket add Igtampe.Redistributables.Controllers --version 1.0.0
#r "nuget: Igtampe.Redistributables.Controllers, 1.0.0"
// Install Igtampe.Redistributables.Controllers as a Cake Addin #addin nuget:?package=Igtampe.Redistributables.Controllers&version=1.0.0 // Install Igtampe.Redistributables.Controllers as a Cake Tool #tool nuget:?package=Igtampe.Redistributables.Controllers&version=1.0.0
Controllers
Common abstract controllers that can handle a few reusable functions involving other objects in the Redistributables.
Most if not all functionality of these controllers were moved to the Actions portion of the Redistributables project rewrite. Do consider taking a look at the code there for more information!
ErrorResultControllerBase
A base controller that has shortcuts to generate IActionResults using ErrorResults. This also includes a few shortcuts for NotFound() results involving objects, and a shortcut to generate a 418 (I'm Teapot).
ErrorResult
An itty bitty object to return errors to a frontend that expects Json objects as a return from their requests.
Image Controller:
An image controller to handle images from ChopoImageHandling.
Method | Route | Description |
---|---|---|
GET | {ID} | Gets Image as file |
GET | {ID}/info | Gets image info (an image object from ChopoImageHandling) |
POST | Uploads a file to the DB |
Notification Controller:
A notification controller for notifications from Notifier. Uses a ChopoSessionManager and ChopoAuth to determine notification ownership.
Method | Route | Description |
---|---|---|
GET | Gets all notifications owned by session owner | |
DELETE | {ID} | Deletes notification |
DELETE | Deletes all notifications owned by session owner |
Users Controller:
Controller to handle authentication and session management. Uses a ChopoSessionManager and ChopoAuth.
Method | Route | Description |
---|---|---|
GET | Dir | Gets directory of all users |
GET | Gets User tied to active session | |
GET | {ID} | Gets specified user |
PUT | Using a ChangePasswordRequest, changes the user's password | |
PUT | {ID}/Reset | Resets a user's password. Requires executing session to be tied to admin user |
PUT | Image | Using an ImageURL in the body, updates a user's profile picture's image url |
POST | Using a UserRequest, logs a user in | |
POST | Register | Using a UserRequest, registers a user |
POST | Out | Logs a user out |
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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. |
-
net6.0
- Igtampe.Redistributables (>= 1.0.0)
- Igtampe.Redistributables.Actions (>= 1.0.0)
- Igtampe.Redistributables.DBContexts (>= 1.0.0)
- Microsoft.AspNetCore.Mvc.Core (>= 2.2.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.0.0 | 199 | 8/30/2022 |