File tree Expand file tree Collapse file tree 3 files changed +43
-0
lines changed
LearningHub.Nhs.OpenApi.Services.Interface/Services Expand file tree Collapse file tree 3 files changed +43
-0
lines changed Original file line number Diff line number Diff line change @@ -278,6 +278,13 @@ Task<AssessmentProgressViewModel> GetAssessmentProgress(
278278 /// <returns>The <see cref="Task{File}"/>.</returns>
279279 Task < File > GetFileAsync ( int fileId ) ;
280280
281+ /// <summary>
282+ /// The get image details by id async.
283+ /// </summary>
284+ /// <param name="resourceVersionId">The resourceVersionId<see cref="int"/>.</param>
285+ /// <returns>The <see cref="Task{ImageViewModel}"/>.</returns>
286+ Task < ImageViewModel > GetImageDetailsByIdAsync ( int resourceVersionId ) ;
287+
281288 /// <summary>
282289 /// The create file details for an article async.
283290 /// </summary>
Original file line number Diff line number Diff line change @@ -924,6 +924,8 @@ public async Task<IActionResult> UpdateScormDetailAsync(ScormUpdateRequestViewMo
924924 }
925925 }
926926
927+
928+
927929 /// <summary>
928930 /// Update HTML Detail.
929931 /// </summary>
@@ -945,6 +947,17 @@ public async Task<IActionResult> UpdateHtmlDetailAsync(HtmlResourceUpdateRequest
945947 }
946948 }
947949
950+ /// <summary>
951+ /// Get specific ImageDetails by ResourceVersionId.
952+ /// </summary>
953+ /// <param name="resourceVersionId">The resourceVersionId<see cref="int"/>.</param>
954+ /// <returns>The <see cref="Task{ActionResult}"/>.</returns>
955+ [ HttpGet ( "GetImageDetails/{resourceVersionId}" ) ]
956+ public async Task < ActionResult > GetImageDetailsAsync ( int resourceVersionId )
957+ {
958+ return this . Ok ( await this . resourceService . GetImageDetailsByIdAsync ( resourceVersionId ) ) ;
959+ }
960+
948961 /// <summary>
949962 /// The update image detail async.
950963 /// </summary>
Original file line number Diff line number Diff line change 50625062 }
50635063 }
50645064 },
5065+ "/Resource/GetImageDetails/{resourceVersionId}" : {
5066+ "get" : {
5067+ "tags" : [
5068+ " Resource"
5069+ ],
5070+ "parameters" : [
5071+ {
5072+ "name" : " resourceVersionId" ,
5073+ "in" : " path" ,
5074+ "required" : true ,
5075+ "schema" : {
5076+ "type" : " integer" ,
5077+ "format" : " int32"
5078+ }
5079+ }
5080+ ],
5081+ "responses" : {
5082+ "200" : {
5083+ "description" : " OK"
5084+ }
5085+ }
5086+ }
5087+ },
50655088 "/Resource/UpdateImageDetail" : {
50665089 "post" : {
50675090 "tags" : [
You can’t perform that action at this time.
0 commit comments