Add TagType CRUD
This commit is contained in:
		| @@ -51,5 +51,27 @@ namespace Core.Inventory.External.Clients | ||||
|         [Get("/api/v1/FurnitureVariant")] | ||||
|         Task<IEnumerable<FurnitureVariant>> GetAllFurnitureVariantAsync(CancellationToken cancellationToken = default); | ||||
|         #endregion | ||||
|  | ||||
|         #region TagType | ||||
|  | ||||
|         [Get("/api/v1/TagType")] | ||||
|         Task<IEnumerable<TagTypeAdapter>> GetAllTagTypesAsync(CancellationToken cancellationToken = default); | ||||
|  | ||||
|         [Post("/api/v1/TagType/GetTagTypeList")] | ||||
|         Task<IEnumerable<TagTypeAdapter>> GetAllTagTypesByListAsync([FromBody] string[] request, CancellationToken cancellationToken = default); | ||||
|  | ||||
|         [Get("/api/v1/TagType/{id}")] | ||||
|         Task<TagTypeAdapter> GetTagTypeByIdAsync([FromRoute] string id, CancellationToken cancellationToken = default); | ||||
|  | ||||
|         [Post("/api/v1/TagType")] | ||||
|         Task<TagTypeAdapter> CreateTagTypeAsync([FromBody] TagTypeRequest newTagType, CancellationToken cancellationToken = default); | ||||
|  | ||||
|         [Put("/api/v1/TagType/{id}")] | ||||
|         Task<TagTypeAdapter> UpdateTagTypeAsync([FromBody] TagTypeAdapter entity, [FromRoute] string id, CancellationToken cancellationToken = default); | ||||
|  | ||||
|         [Patch("/api/v1/TagType/{id}/{newStatus}/ChangeStatus")] | ||||
|         Task<TagTypeAdapter> ChangeStatusTagTypeAsync([FromRoute] string id, [FromRoute] StatusEnum newStatus, CancellationToken cancellationToken = default); | ||||
|  | ||||
|         #endregion | ||||
|     } | ||||
| } | ||||
|   | ||||
							
								
								
									
										10
									
								
								Core.Inventory.External/Clients/Requests/TagTypeRequest.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								Core.Inventory.External/Clients/Requests/TagTypeRequest.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| namespace Core.Inventory.External.Clients.Requests | ||||
| { | ||||
|     public class TagTypeRequest | ||||
|     { | ||||
|         public string TenantId { get; set; } = null!; | ||||
|         public string TypeName { get; set; } = null!; | ||||
|         public int Level { get; set; } | ||||
|         public string ParentTypeId { get; set; } = null!; | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Oscar Morales
					Oscar Morales