ganjoor museum: add an item to an existing book #457
This commit is contained in:
parent
e7d50a52b0
commit
cbc14aa78d
@ -2279,6 +2279,25 @@ namespace RMuseum.Controllers
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// add a new item to an artifact
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="artifactId"></param>
|
||||||
|
/// <param name="jpeg"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpPut("item/{artifactId}")]
|
||||||
|
[Authorize(Policy = RMuseumSecurableItem.ArtifactEntityShortName + ":" + SecurableItem.ModifyOperationShortName)]
|
||||||
|
[ProducesResponseType((int)HttpStatusCode.OK, Type = typeof(RArtifactItemRecord))]
|
||||||
|
[ProducesResponseType((int)HttpStatusCode.BadRequest, Type = typeof(string))]
|
||||||
|
[ProducesResponseType((int)HttpStatusCode.Unauthorized)]
|
||||||
|
public async Task<IActionResult> AddItemToArtifactAsync(Guid artifactId, IFormFile jpeg)
|
||||||
|
{
|
||||||
|
var res = await _artifactService.AddItemToArtifactAsync(artifactId, jpeg, null);
|
||||||
|
if (!string.IsNullOrEmpty(res.ExceptionString))
|
||||||
|
return BadRequest(res.ExceptionString);
|
||||||
|
return Ok(res.Result);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// readonly mode
|
/// readonly mode
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -674,6 +674,14 @@
|
|||||||
</summary>
|
</summary>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:RMuseum.Controllers.ArtifactController.AddItemToArtifactAsync(System.Guid,Microsoft.AspNetCore.Http.IFormFile)">
|
||||||
|
<summary>
|
||||||
|
add a new item to an artifact
|
||||||
|
</summary>
|
||||||
|
<param name="artifactId"></param>
|
||||||
|
<param name="jpeg"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
<member name="P:RMuseum.Controllers.ArtifactController.ReadOnlyMode">
|
<member name="P:RMuseum.Controllers.ArtifactController.ReadOnlyMode">
|
||||||
<summary>
|
<summary>
|
||||||
readonly mode
|
readonly mode
|
||||||
@ -15339,6 +15347,15 @@
|
|||||||
create images for ganjoor - offline
|
create images for ganjoor - offline
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:RMuseum.Services.IArtifactService.AddItemToArtifactAsync(System.Guid,Microsoft.AspNetCore.Http.IFormFile,System.IO.Stream)">
|
||||||
|
<summary>
|
||||||
|
add item to an artifact
|
||||||
|
</summary>
|
||||||
|
<param name="artifactId"></param>
|
||||||
|
<param name="file"></param>
|
||||||
|
<param name="jpegStream"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
<member name="T:RMuseum.Services.IDonationService">
|
<member name="T:RMuseum.Services.IDonationService">
|
||||||
<summary>
|
<summary>
|
||||||
donation service
|
donation service
|
||||||
@ -18021,6 +18038,15 @@
|
|||||||
<param name="term"></param>
|
<param name="term"></param>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:RMuseum.Services.Implementation.ArtifactService.AddItemToArtifactAsync(System.Guid,Microsoft.AspNetCore.Http.IFormFile,System.IO.Stream)">
|
||||||
|
<summary>
|
||||||
|
add item to an artifact
|
||||||
|
</summary>
|
||||||
|
<param name="artifactId"></param>
|
||||||
|
<param name="file"></param>
|
||||||
|
<param name="jpegStream"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
<member name="F:RMuseum.Services.Implementation.ArtifactService._context">
|
<member name="F:RMuseum.Services.Implementation.ArtifactService._context">
|
||||||
<summary>
|
<summary>
|
||||||
Database Contetxt
|
Database Contetxt
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user