@@ -808,6 +808,15 @@ components:
808808 stack :
809809 type : string
810810 description : Stack trace
811+ LogEntryApiResult :
812+ description : Api response for getLog
813+ allOf :
814+ - $ref : " #/components/schemas/ApiResponse"
815+ - type : object
816+ required : [data]
817+ properties :
818+ data :
819+ $ref : " #/components/schemas/LogEntry"
811820 LogEntries :
812821 description : Log entries
813822 type : object
@@ -2652,6 +2661,90 @@ paths:
26522661 $ref : " #/components/schemas/ApiResponseError"
26532662 example :
26542663 { "ok": false, "status": 403, "error": "Permission denied." }
2664+ /log/{id} :
2665+ parameters :
2666+ - name : id
2667+ in : path
2668+ schema :
2669+ type : integer
2670+ format : int64
2671+ default : ' '
2672+ required : true
2673+ description : Log entry ID
2674+ delete :
2675+ operationId : deleteLog
2676+ summary : Delete a log entry
2677+ responses :
2678+ " 200 " :
2679+ description : OK
2680+ content :
2681+ application/json :
2682+ schema :
2683+ $ref : " #/components/schemas/ApiResponseTrue"
2684+ " 400 " :
2685+ description : Bad request
2686+ content :
2687+ application/json :
2688+ schema :
2689+ $ref : " #/components/schemas/ApiResponseError"
2690+ example :
2691+ { "ok": false, "status": 1, "error": "id is required." }
2692+ " 401 " :
2693+ description : Authorization information is missing or invalid
2694+ content :
2695+ application/json :
2696+ schema :
2697+ $ref : " #/components/schemas/ApiResponseError"
2698+ example : { "ok": false, "status": 401, "error": "Unauthorized" }
2699+ " 403 " :
2700+ description : Permission denied
2701+ content :
2702+ application/json :
2703+ schema :
2704+ $ref : " #/components/schemas/ApiResponseError"
2705+ example :
2706+ { "ok": false, "status": 403, "error": "Permission denied." }
2707+ get :
2708+ operationId : getLog
2709+ summary : Get a log entry
2710+ responses :
2711+ " 200 " :
2712+ description : OK
2713+ content :
2714+ application/json :
2715+ schema :
2716+ $ref : " #/components/schemas/LogEntryApiResult"
2717+ " 400 " :
2718+ description : Bad request
2719+ content :
2720+ application/json :
2721+ schema :
2722+ $ref : " #/components/schemas/ApiResponseError"
2723+ example :
2724+ { "ok": false, "status": 1, "error": "id is required." }
2725+ " 401 " :
2726+ description : Authorization information is missing or invalid
2727+ content :
2728+ application/json :
2729+ schema :
2730+ $ref : " #/components/schemas/ApiResponseError"
2731+ example : { "ok": false, "status": 401, "error": "Unauthorized" }
2732+ " 403 " :
2733+ description : Permission denied
2734+ content :
2735+ application/json :
2736+ schema :
2737+ $ref : " #/components/schemas/ApiResponseError"
2738+ example :
2739+ { "ok": false, "status": 403, "error": "Permission denied." }
2740+ " 404 " :
2741+ description : Not found
2742+ content :
2743+ application/json :
2744+ schema :
2745+ $ref : " #/components/schemas/ApiResponseError"
2746+ example :
2747+ { "ok": false, "status": 404, "error": "log not found." }
26552748 /shared_token :
26562749 delete :
26572750 operationId : deleteSharedToken
0 commit comments