Skip to content
Snippets Groups Projects

Feat/s4 sb56 backend list latihan

Merged Bayu Samudra requested to merge feat/s4-sb56-backend-list-latihan into staging
Files
27
+ 110
0
@@ -1440,6 +1440,54 @@ const docTemplate = `{
}
}
},
"/course/{id}/quiz": {
"get": {
"description": "Get all cours",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"course"
],
"summary": "Get Course quiz",
"parameters": [
{
"type": "string",
"format": "uuid",
"description": "Course id",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/web.BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/quiz.Quiz"
}
}
}
}
]
}
}
}
}
},
"/material/{id}": {
"post": {
"description": "Add content of material",
@@ -1599,6 +1647,51 @@ const docTemplate = `{
}
}
},
"/quiz/{id}": {
"get": {
"description": "Get Quiz Detail",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"quiz"
],
"summary": "Get Quiz Detail",
"parameters": [
{
"type": "string",
"format": "uuid",
"description": "Quiz id",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/web.BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/quiz.Quiz"
}
}
}
]
}
}
}
}
},
"/reset/confirm": {
"put": {
"description": "Do confirmation to reset password",
@@ -2110,6 +2203,23 @@ const docTemplate = `{
}
}
},
"quiz.Quiz": {
"type": "object",
"properties": {
"course_id": {
"type": "string"
},
"creator_email": {
"type": "string"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"refresh.RefreshResponsePayload": {
"description": "Refresh endpoint response when process success",
"type": "object",