Class AttachementsController
Inheritance
System.Object
Microsoft.AspNetCore.Mvc.ControllerBase
Microsoft.AspNetCore.Mvc.Controller
AttachementsController
Implements
Microsoft.AspNetCore.Mvc.Filters.IActionFilter
Microsoft.AspNetCore.Mvc.Filters.IAsyncActionFilter
Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
System.IDisposable
Inherited Members
Microsoft.AspNetCore.Mvc.Controller.View()
Microsoft.AspNetCore.Mvc.Controller.View(System.String)
Microsoft.AspNetCore.Mvc.Controller.View(System.Object)
Microsoft.AspNetCore.Mvc.Controller.View(System.String, System.Object)
Microsoft.AspNetCore.Mvc.Controller.PartialView()
Microsoft.AspNetCore.Mvc.Controller.PartialView(System.String)
Microsoft.AspNetCore.Mvc.Controller.PartialView(System.Object)
Microsoft.AspNetCore.Mvc.Controller.PartialView(System.String, System.Object)
Microsoft.AspNetCore.Mvc.Controller.ViewComponent(System.String)
Microsoft.AspNetCore.Mvc.Controller.ViewComponent(System.Type)
Microsoft.AspNetCore.Mvc.Controller.ViewComponent(System.String, System.Object)
Microsoft.AspNetCore.Mvc.Controller.ViewComponent(System.Type, System.Object)
Microsoft.AspNetCore.Mvc.Controller.Json(System.Object)
Microsoft.AspNetCore.Mvc.Controller.Json(System.Object, Newtonsoft.Json.JsonSerializerSettings)
Microsoft.AspNetCore.Mvc.Controller.OnActionExecuting(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext)
Microsoft.AspNetCore.Mvc.Controller.OnActionExecuted(Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext)
Microsoft.AspNetCore.Mvc.Controller.OnActionExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext, Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate)
Microsoft.AspNetCore.Mvc.Controller.Dispose()
Microsoft.AspNetCore.Mvc.Controller.Dispose(System.Boolean)
Microsoft.AspNetCore.Mvc.Controller.ViewData
Microsoft.AspNetCore.Mvc.Controller.TempData
Microsoft.AspNetCore.Mvc.Controller.ViewBag
Microsoft.AspNetCore.Mvc.ControllerBase.StatusCode(System.Int32)
Microsoft.AspNetCore.Mvc.ControllerBase.StatusCode(System.Int32, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.Content(System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.Content(System.String, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.Content(System.String, System.String, System.Text.Encoding)
Microsoft.AspNetCore.Mvc.ControllerBase.Content(System.String, Microsoft.Net.Http.Headers.MediaTypeHeaderValue)
Microsoft.AspNetCore.Mvc.ControllerBase.NoContent()
Microsoft.AspNetCore.Mvc.ControllerBase.Ok()
Microsoft.AspNetCore.Mvc.ControllerBase.Ok(System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.Redirect(System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectPermanent(System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectPreserveMethod(System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectPermanentPreserveMethod(System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.LocalRedirect(System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.LocalRedirectPermanent(System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.LocalRedirectPreserveMethod(System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.LocalRedirectPermanentPreserveMethod(System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToAction(System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToAction(System.String, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToAction(System.String, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToAction(System.String, System.String, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToAction(System.String, System.String, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToAction(System.String, System.String, System.Object, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToActionPreserveMethod(System.String, System.String, System.Object, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToActionPermanent(System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToActionPermanent(System.String, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToActionPermanent(System.String, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToActionPermanent(System.String, System.String, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToActionPermanent(System.String, System.String, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToActionPermanent(System.String, System.String, System.Object, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToActionPermanentPreserveMethod(System.String, System.String, System.Object, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToRoute(System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToRoute(System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToRoute(System.String, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToRoute(System.String, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToRoute(System.String, System.Object, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToRoutePreserveMethod(System.String, System.Object, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToRoutePermanent(System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToRoutePermanent(System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToRoutePermanent(System.String, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToRoutePermanent(System.String, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToRoutePermanent(System.String, System.Object, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToRoutePermanentPreserveMethod(System.String, System.Object, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToPage(System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToPage(System.String, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToPage(System.String, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToPage(System.String, System.String, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToPage(System.String, System.String, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToPage(System.String, System.String, System.Object, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToPagePermanent(System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToPagePermanent(System.String, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToPagePermanent(System.String, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToPagePermanent(System.String, System.String, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToPagePermanent(System.String, System.String, System.Object, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToPagePreserveMethod(System.String, System.String, System.Object, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.RedirectToPagePermanentPreserveMethod(System.String, System.String, System.Object, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.File(System.Byte[], System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.File(System.Byte[], System.String, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.File(System.Byte[], System.String, System.Nullable<System.DateTimeOffset>, Microsoft.Net.Http.Headers.EntityTagHeaderValue)
Microsoft.AspNetCore.Mvc.ControllerBase.File(System.Byte[], System.String, System.String, System.Nullable<System.DateTimeOffset>, Microsoft.Net.Http.Headers.EntityTagHeaderValue)
Microsoft.AspNetCore.Mvc.ControllerBase.File(System.IO.Stream, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.File(System.IO.Stream, System.String, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.File(System.IO.Stream, System.String, System.Nullable<System.DateTimeOffset>, Microsoft.Net.Http.Headers.EntityTagHeaderValue)
Microsoft.AspNetCore.Mvc.ControllerBase.File(System.IO.Stream, System.String, System.String, System.Nullable<System.DateTimeOffset>, Microsoft.Net.Http.Headers.EntityTagHeaderValue)
Microsoft.AspNetCore.Mvc.ControllerBase.File(System.String, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.File(System.String, System.String, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.File(System.String, System.String, System.Nullable<System.DateTimeOffset>, Microsoft.Net.Http.Headers.EntityTagHeaderValue)
Microsoft.AspNetCore.Mvc.ControllerBase.File(System.String, System.String, System.String, System.Nullable<System.DateTimeOffset>, Microsoft.Net.Http.Headers.EntityTagHeaderValue)
Microsoft.AspNetCore.Mvc.ControllerBase.PhysicalFile(System.String, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.PhysicalFile(System.String, System.String, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.PhysicalFile(System.String, System.String, System.Nullable<System.DateTimeOffset>, Microsoft.Net.Http.Headers.EntityTagHeaderValue)
Microsoft.AspNetCore.Mvc.ControllerBase.PhysicalFile(System.String, System.String, System.String, System.Nullable<System.DateTimeOffset>, Microsoft.Net.Http.Headers.EntityTagHeaderValue)
Microsoft.AspNetCore.Mvc.ControllerBase.Unauthorized()
Microsoft.AspNetCore.Mvc.ControllerBase.NotFound()
Microsoft.AspNetCore.Mvc.ControllerBase.NotFound(System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.BadRequest()
Microsoft.AspNetCore.Mvc.ControllerBase.BadRequest(System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.BadRequest(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary)
Microsoft.AspNetCore.Mvc.ControllerBase.Created(System.String, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.Created(System.Uri, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.CreatedAtAction(System.String, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.CreatedAtAction(System.String, System.Object, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.CreatedAtAction(System.String, System.String, System.Object, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.CreatedAtRoute(System.String, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.CreatedAtRoute(System.Object, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.CreatedAtRoute(System.String, System.Object, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.Accepted()
Microsoft.AspNetCore.Mvc.ControllerBase.Accepted(System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.Accepted(System.Uri)
Microsoft.AspNetCore.Mvc.ControllerBase.Accepted(System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.Accepted(System.String, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.Accepted(System.Uri, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.AcceptedAtAction(System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.AcceptedAtAction(System.String, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.AcceptedAtAction(System.String, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.AcceptedAtAction(System.String, System.String, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.AcceptedAtAction(System.String, System.Object, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.AcceptedAtAction(System.String, System.String, System.Object, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.AcceptedAtRoute(System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.AcceptedAtRoute(System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.AcceptedAtRoute(System.String, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.AcceptedAtRoute(System.Object, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.AcceptedAtRoute(System.String, System.Object, System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.Challenge()
Microsoft.AspNetCore.Mvc.ControllerBase.Challenge(System.String[])
Microsoft.AspNetCore.Mvc.ControllerBase.Challenge(Microsoft.AspNetCore.Authentication.AuthenticationProperties)
Microsoft.AspNetCore.Mvc.ControllerBase.Challenge(Microsoft.AspNetCore.Authentication.AuthenticationProperties, System.String[])
Microsoft.AspNetCore.Mvc.ControllerBase.Forbid()
Microsoft.AspNetCore.Mvc.ControllerBase.Forbid(System.String[])
Microsoft.AspNetCore.Mvc.ControllerBase.Forbid(Microsoft.AspNetCore.Authentication.AuthenticationProperties)
Microsoft.AspNetCore.Mvc.ControllerBase.Forbid(Microsoft.AspNetCore.Authentication.AuthenticationProperties, System.String[])
Microsoft.AspNetCore.Mvc.ControllerBase.SignIn(System.Security.Claims.ClaimsPrincipal, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.SignIn(System.Security.Claims.ClaimsPrincipal, Microsoft.AspNetCore.Authentication.AuthenticationProperties, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.SignOut(System.String[])
Microsoft.AspNetCore.Mvc.ControllerBase.SignOut(Microsoft.AspNetCore.Authentication.AuthenticationProperties, System.String[])
Microsoft.AspNetCore.Mvc.ControllerBase.TryUpdateModelAsync<TModel>(TModel)
Microsoft.AspNetCore.Mvc.ControllerBase.TryUpdateModelAsync<TModel>(TModel, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.TryUpdateModelAsync<TModel>(TModel, System.String, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider)
Microsoft.AspNetCore.Mvc.ControllerBase.TryUpdateModelAsync<TModel>(TModel, System.String, System.Linq.Expressions.Expression<System.Func<TModel, System.Object>>[])
Microsoft.AspNetCore.Mvc.ControllerBase.TryUpdateModelAsync<TModel>(TModel, System.String, System.Func<Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata, System.Boolean>)
Microsoft.AspNetCore.Mvc.ControllerBase.TryUpdateModelAsync<TModel>(TModel, System.String, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider, System.Linq.Expressions.Expression<System.Func<TModel, System.Object>>[])
Microsoft.AspNetCore.Mvc.ControllerBase.TryUpdateModelAsync<TModel>(TModel, System.String, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider, System.Func<Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata, System.Boolean>)
Microsoft.AspNetCore.Mvc.ControllerBase.TryUpdateModelAsync(System.Object, System.Type, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.TryUpdateModelAsync(System.Object, System.Type, System.String, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider, System.Func<Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata, System.Boolean>)
Microsoft.AspNetCore.Mvc.ControllerBase.TryValidateModel(System.Object)
Microsoft.AspNetCore.Mvc.ControllerBase.TryValidateModel(System.Object, System.String)
Microsoft.AspNetCore.Mvc.ControllerBase.HttpContext
Microsoft.AspNetCore.Mvc.ControllerBase.Request
Microsoft.AspNetCore.Mvc.ControllerBase.Response
Microsoft.AspNetCore.Mvc.ControllerBase.RouteData
Microsoft.AspNetCore.Mvc.ControllerBase.ModelState
Microsoft.AspNetCore.Mvc.ControllerBase.ControllerContext
Microsoft.AspNetCore.Mvc.ControllerBase.MetadataProvider
Microsoft.AspNetCore.Mvc.ControllerBase.ModelBinderFactory
Microsoft.AspNetCore.Mvc.ControllerBase.Url
Microsoft.AspNetCore.Mvc.ControllerBase.ObjectValidator
Microsoft.AspNetCore.Mvc.ControllerBase.User
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: MailHole.Api.Controllers
Assembly: MailHole.Api.dll
Syntax
public class AttachementsController : Controller, IActionFilter, IAsyncActionFilter, IFilterMetadata, IDisposable
Constructors
| Improve this Doc View SourceAttachementsController(IDatabaseAsync, MinioClient)
Declaration
public AttachementsController(IDatabaseAsync redisDb, MinioClient minio)
Parameters
Type | Name | Description |
---|---|---|
StackExchange.Redis.IDatabaseAsync | redisDb | |
Minio.MinioClient | minio |
Methods
| Improve this Doc View SourceGetAttachementFile(String, Nullable<Guid>, Nullable<Guid>, Nullable<Guid>)
Declaration
[HttpGet]
[Route("api/v1/{receiverAddress}/mails/{mailGuid}/attachements/{attachementGuid}/files/{attachementFileGuid}")]
[ProducesResponseType(200)]
[ProducesResponseType(typeof (void), 400)]
[ProducesResponseType(typeof (void), 404)]
public Task<IActionResult> GetAttachementFile([FromRoute, EmailAddress, Required] string receiverAddress, [FromRoute, Required] Guid? mailGuid, [FromRoute, Required] Guid? attachementGuid, [FromRoute, Required] Guid? attachementFileGuid)
Parameters
Type | Name | Description |
---|---|---|
System.String | receiverAddress | |
System.Nullable<System.Guid> | mailGuid | |
System.Nullable<System.Guid> | attachementGuid | |
System.Nullable<System.Guid> | attachementFileGuid |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.IActionResult> |
GetAttachemntDetails(String, Nullable<Guid>, Nullable<Guid>)
Get details of attachement like MIME type, hashes, download link, ...
Declaration
[HttpGet]
[Route("api/v1/{receiverAddress}/mails/{mailGuid}/attachements/{attachementGuid}")]
[ProducesResponseType(typeof (AttachementInfo), 200)]
[ProducesResponseType(typeof (void), 400)]
[ProducesResponseType(typeof (void), 404)]
public Task<IActionResult> GetAttachemntDetails([FromRoute, EmailAddress, Required] string receiverAddress, [FromRoute, Required] Guid? mailGuid, [FromRoute, Required] Guid? attachementGuid)
Parameters
Type | Name | Description |
---|---|---|
System.String | receiverAddress | Mail address of the original receiver |
System.Nullable<System.Guid> | mailGuid | GUID that was assigned to the mail by MailHole |
System.Nullable<System.Guid> | attachementGuid | GUID that was assigned to the attachement by MailHole |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.IActionResult> |
Validate(String, Nullable<Guid>, Nullable<Guid>, ValidationRequest)
Checks whether attachment was transferred successfully
Declaration
[HttpPut]
[Route("api/v1/{receiverAddress}/mails/{mailGuid}/attachements/{attachementGuid}")]
[ProducesResponseType(typeof (void), 200)]
[ProducesResponseType(typeof (void), 400)]
[ProducesResponseType(typeof (void), 404)]
[ProducesResponseType(typeof (void), 409)]
public Task<IActionResult> Validate([FromRoute, EmailAddress, Required] string receiverAddress, [FromRoute, Required] Guid? mailGuid, [FromRoute, Required] Guid? attachementGuid, [FromBody] ValidationRequest validationRequest)
Parameters
Type | Name | Description |
---|---|---|
System.String | receiverAddress | |
System.Nullable<System.Guid> | mailGuid | |
System.Nullable<System.Guid> | attachementGuid | |
ValidationRequest | validationRequest |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.IActionResult> |
Implements
Microsoft.AspNetCore.Mvc.Filters.IActionFilter
Microsoft.AspNetCore.Mvc.Filters.IAsyncActionFilter
Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
System.IDisposable