Skip to content

Commit

Permalink
Update ContentApiSwagger.php (#54)
Browse files Browse the repository at this point in the history
* Update ContentApiSwagger.php

* Update src/Http/Controllers/Swagger/ContentApiSwagger.php
  • Loading branch information
qunabu authored Nov 19, 2021
1 parent 555cc70 commit 3bb1bb6
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions src/Http/Controllers/Swagger/ContentApiSwagger.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,4 +325,44 @@ public function destroy(Request $request, int $id): JsonResponse;
* )
*/
public function upload(LibraryStoreRequest $request): JsonResponse;

/**
* @OA\Get(
* path="/api/hh5p/content/{id}/export",
* summary="Downloads h5p content to packagee",
* tags={"H5P"},
* description="Downloads h5p content to package",
* @OA\Parameter(
* name="id",
* description="ID of content that will be exported",
* in="path",
* required=true,
* @OA\Schema(
* type="integer",
* )
* ),
* @OA\Response(
* response=200,
* description="successful operation",
* @OA\MediaType(
* mediaType="application/json"
* )
* ),
* @OA\Response(
* response=422,
* description="validation error",
* @OA\MediaType(
* mediaType="application/json"
* )
* ),
* @OA\Response(
* response=401,
* description="unauthorised",
* @OA\MediaType(
* mediaType="application/json"
* )
* )
* )
*/
public function download(Request $request, int $id);
}

0 comments on commit 3bb1bb6

Please sign in to comment.