lifedebugger commited on
Commit
ead599c
·
1 Parent(s): 51ec421

Deploy files from GitHub repository

Browse files
swagger/docs/docs.go CHANGED
@@ -1034,6 +1034,81 @@ const docTemplate = `{
1034
  }
1035
  }
1036
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1037
  "/api/v1/admin/academy/id/{academy_id}/exams": {
1038
  "get": {
1039
  "security": [
 
1034
  }
1035
  }
1036
  },
1037
+ "/api/v1/admin/academy/id/{academy_id}/exam/candidates": {
1038
+ "get": {
1039
+ "security": [
1040
+ {
1041
+ "BearerAuth": []
1042
+ }
1043
+ ],
1044
+ "description": "List all exams NOT assigned to a specific academy",
1045
+ "consumes": [
1046
+ "application/json"
1047
+ ],
1048
+ "produces": [
1049
+ "application/json"
1050
+ ],
1051
+ "tags": [
1052
+ "Admin Academy"
1053
+ ],
1054
+ "summary": "Admin: List Exam Candidates by Academy",
1055
+ "parameters": [
1056
+ {
1057
+ "type": "string",
1058
+ "description": "Academy ID",
1059
+ "name": "academy_id",
1060
+ "in": "path",
1061
+ "required": true
1062
+ },
1063
+ {
1064
+ "type": "integer",
1065
+ "default": 10,
1066
+ "description": "Items per page",
1067
+ "name": "limit",
1068
+ "in": "query"
1069
+ },
1070
+ {
1071
+ "type": "integer",
1072
+ "default": 1,
1073
+ "description": "Page number",
1074
+ "name": "page",
1075
+ "in": "query"
1076
+ },
1077
+ {
1078
+ "type": "string",
1079
+ "description": "Search by title / slug / description",
1080
+ "name": "search",
1081
+ "in": "query"
1082
+ },
1083
+ {
1084
+ "type": "string",
1085
+ "description": "Sort field (title, slug, duration, created_at)",
1086
+ "name": "sortBy",
1087
+ "in": "query"
1088
+ },
1089
+ {
1090
+ "type": "string",
1091
+ "description": "Sort direction (asc / desc)",
1092
+ "name": "orderBy",
1093
+ "in": "query"
1094
+ }
1095
+ ],
1096
+ "responses": {
1097
+ "200": {
1098
+ "description": "OK",
1099
+ "schema": {
1100
+ "$ref": "#/definitions/dto.SuccessResponse-array_models_Exam"
1101
+ }
1102
+ },
1103
+ "400": {
1104
+ "description": "Bad Request",
1105
+ "schema": {
1106
+ "$ref": "#/definitions/dto.ErrorResponse"
1107
+ }
1108
+ }
1109
+ }
1110
+ }
1111
+ },
1112
  "/api/v1/admin/academy/id/{academy_id}/exams": {
1113
  "get": {
1114
  "security": [
swagger/docs/swagger.json CHANGED
@@ -1031,6 +1031,81 @@
1031
  }
1032
  }
1033
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1034
  "/api/v1/admin/academy/id/{academy_id}/exams": {
1035
  "get": {
1036
  "security": [
 
1031
  }
1032
  }
1033
  },
1034
+ "/api/v1/admin/academy/id/{academy_id}/exam/candidates": {
1035
+ "get": {
1036
+ "security": [
1037
+ {
1038
+ "BearerAuth": []
1039
+ }
1040
+ ],
1041
+ "description": "List all exams NOT assigned to a specific academy",
1042
+ "consumes": [
1043
+ "application/json"
1044
+ ],
1045
+ "produces": [
1046
+ "application/json"
1047
+ ],
1048
+ "tags": [
1049
+ "Admin Academy"
1050
+ ],
1051
+ "summary": "Admin: List Exam Candidates by Academy",
1052
+ "parameters": [
1053
+ {
1054
+ "type": "string",
1055
+ "description": "Academy ID",
1056
+ "name": "academy_id",
1057
+ "in": "path",
1058
+ "required": true
1059
+ },
1060
+ {
1061
+ "type": "integer",
1062
+ "default": 10,
1063
+ "description": "Items per page",
1064
+ "name": "limit",
1065
+ "in": "query"
1066
+ },
1067
+ {
1068
+ "type": "integer",
1069
+ "default": 1,
1070
+ "description": "Page number",
1071
+ "name": "page",
1072
+ "in": "query"
1073
+ },
1074
+ {
1075
+ "type": "string",
1076
+ "description": "Search by title / slug / description",
1077
+ "name": "search",
1078
+ "in": "query"
1079
+ },
1080
+ {
1081
+ "type": "string",
1082
+ "description": "Sort field (title, slug, duration, created_at)",
1083
+ "name": "sortBy",
1084
+ "in": "query"
1085
+ },
1086
+ {
1087
+ "type": "string",
1088
+ "description": "Sort direction (asc / desc)",
1089
+ "name": "orderBy",
1090
+ "in": "query"
1091
+ }
1092
+ ],
1093
+ "responses": {
1094
+ "200": {
1095
+ "description": "OK",
1096
+ "schema": {
1097
+ "$ref": "#/definitions/dto.SuccessResponse-array_models_Exam"
1098
+ }
1099
+ },
1100
+ "400": {
1101
+ "description": "Bad Request",
1102
+ "schema": {
1103
+ "$ref": "#/definitions/dto.ErrorResponse"
1104
+ }
1105
+ }
1106
+ }
1107
+ }
1108
+ },
1109
  "/api/v1/admin/academy/id/{academy_id}/exams": {
1110
  "get": {
1111
  "security": [
swagger/docs/swagger.yaml CHANGED
@@ -2466,6 +2466,55 @@ paths:
2466
  summary: Get Academy Detail by ID
2467
  tags:
2468
  - Admin Academy
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2469
  /api/v1/admin/academy/id/{academy_id}/exams:
2470
  get:
2471
  consumes:
 
2466
  summary: Get Academy Detail by ID
2467
  tags:
2468
  - Admin Academy
2469
+ /api/v1/admin/academy/id/{academy_id}/exam/candidates:
2470
+ get:
2471
+ consumes:
2472
+ - application/json
2473
+ description: List all exams NOT assigned to a specific academy
2474
+ parameters:
2475
+ - description: Academy ID
2476
+ in: path
2477
+ name: academy_id
2478
+ required: true
2479
+ type: string
2480
+ - default: 10
2481
+ description: Items per page
2482
+ in: query
2483
+ name: limit
2484
+ type: integer
2485
+ - default: 1
2486
+ description: Page number
2487
+ in: query
2488
+ name: page
2489
+ type: integer
2490
+ - description: Search by title / slug / description
2491
+ in: query
2492
+ name: search
2493
+ type: string
2494
+ - description: Sort field (title, slug, duration, created_at)
2495
+ in: query
2496
+ name: sortBy
2497
+ type: string
2498
+ - description: Sort direction (asc / desc)
2499
+ in: query
2500
+ name: orderBy
2501
+ type: string
2502
+ produces:
2503
+ - application/json
2504
+ responses:
2505
+ "200":
2506
+ description: OK
2507
+ schema:
2508
+ $ref: '#/definitions/dto.SuccessResponse-array_models_Exam'
2509
+ "400":
2510
+ description: Bad Request
2511
+ schema:
2512
+ $ref: '#/definitions/dto.ErrorResponse'
2513
+ security:
2514
+ - BearerAuth: []
2515
+ summary: 'Admin: List Exam Candidates by Academy'
2516
+ tags:
2517
+ - Admin Academy
2518
  /api/v1/admin/academy/id/{academy_id}/exams:
2519
  get:
2520
  consumes: