-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #222 from AnalogIO/217-new-admin-endpoints
add a patch endpoint to update a user group of an account
- Loading branch information
Showing
4 changed files
with
81 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
coffeecard/CoffeeCard.Models/DataTransferObjects/v2/User/UpdateUserGroupRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
using CoffeeCard.Models.Entities; | ||
|
||
namespace CoffeeCard.Models.DataTransferObjects.v2.User | ||
{ | ||
/// <summary> | ||
/// Update the UserGroup property of a user | ||
/// </summary> | ||
/// <example> | ||
/// { | ||
/// "UserGroup": "Barista" | ||
/// } | ||
/// </example> | ||
public class UpdateUserGroupRequest | ||
{ | ||
/// <summary> | ||
/// The UserGroup of a user | ||
/// </summary> | ||
/// <value> UserGroup object </value> | ||
/// <example> UserGroup.Barista </example> | ||
[Required] | ||
public UserGroup UserGroup { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters