Skip to content

Commit

Permalink
Some improvements and bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yostane committed Aug 28, 2024
1 parent 72176bf commit 486f5fc
Show file tree
Hide file tree
Showing 22 changed files with 1,040 additions and 505 deletions.
4 changes: 2 additions & 2 deletions material/rest-api-ui-ktor-quiz-collector/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ plugins {
id("org.jetbrains.kotlin.plugin.serialization") version "2.0.20"
}

group = "example.com"
version = "0.0.1"
group = "com.worldline.training"
version = "1.0.0"

application {
mainClass.set("io.ktor.server.cio.EngineMain")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: reset
type: http
seq: 7
}

get {
url: http://localhost:8080/reset
body: none
auth: none
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,149 @@ post {

body:json {
{
"responses": [
{
"question": "What is the primary goal of Kotlin Multiplatform?",
"answer": "Muzukashi"
},
{
"question": "How does Kotlin Multiplatform facilitate code sharing between platforms?",
"answer": "By sharing business logic and adapting UI"
"responses": [
{
"question": "What is the primary goal of Kotlin Multiplatform?",
"answer": "To build only Android applications",
"answerId": 1,
"id": 1,
"correctAnswerId": 4
},
{
"question": "How does Kotlin Multiplatform facilitate code sharing between platforms?",
"answer": "By writing separate code for each platform",
"answerId": 1,
"id": 2,
"correctAnswerId": 3
},
{
"question": "Which platforms does Kotlin Multiplatform support?",
"answer": "Only web applications",
"answerId": 1,
"id": 3,
"correctAnswerId": 3
},
{
"question": "What is a common use case for Kotlin Multiplatform?",
"answer": "Building a desktop-only application",
"answerId": 1,
"id": 4,
"correctAnswerId": 4
},
{
"question": "Which naming of KMP is deprecated?",
"answer": "Kodee multiplatform",
"answerId": 1,
"id": 5,
"correctAnswerId": 4
},
{
"question": "How does Kotlin Multiplatform handle platform-specific implementations?",
"answer": "By automatically translating code",
"answerId": 1,
"id": 6,
"correctAnswerId": 4
},
{
"question": "At which Google I/O, Google announced first-class support for Kotlin on Android?",
"answer": "2017",
"answerId": 1,
"id": 7,
"correctAnswerId": 1
},
{
"question": "What is the name of the Kotlin mascot?",
"answer": "Kotee",
"answerId": 1,
"id": 8,
"correctAnswerId": 4
},
{
"question": "The international yearly Kotlin conference is called...",
"answer": "KotlinKonf",
"answerId": 1,
"id": 9,
"correctAnswerId": 3
},
{
"question": "Where will be located the next international yearly Kotlin conference?",
"answer": "Lille, France",
"answerId": 1,
"id": 10,
"correctAnswerId": 3
},
{
"question": "What is the primary goal of Kotlin Multiplatform?",
"answer": "To build only Android applications",
"answerId": 1,
"id": 1,
"correctAnswerId": 4
},
{
"question": "How does Kotlin Multiplatform facilitate code sharing between platforms?",
"answer": "By writing separate code for each platform",
"answerId": 1,
"id": 2,
"correctAnswerId": 3
},
{
"question": "Which platforms does Kotlin Multiplatform support?",
"answer": "Only web applications",
"answerId": 1,
"id": 3,
"correctAnswerId": 3
},
{
"question": "What is a common use case for Kotlin Multiplatform?",
"answer": "Building a desktop-only application",
"answerId": 1,
"id": 4,
"correctAnswerId": 4
},
{
"question": "Which naming of KMP is deprecated?",
"answer": "Kodee multiplatform",
"answerId": 1,
"id": 5,
"correctAnswerId": 4
},
{
"question": "How does Kotlin Multiplatform handle platform-specific implementations?",
"answer": "By automatically translating code",
"answerId": 1,
"id": 6,
"correctAnswerId": 4
},
{
"question": "At which Google I/O, Google announced first-class support for Kotlin on Android?",
"answer": "2017",
"answerId": 1,
"id": 7,
"correctAnswerId": 1
},
{
"question": "What is the name of the Kotlin mascot?",
"answer": "Kotee",
"answerId": 1,
"id": 8,
"correctAnswerId": 4
},
{
"question": "The international yearly Kotlin conference is called...",
"answer": "KotlinKonf",
"answerId": 1,
"id": 9,
"correctAnswerId": 3
},
{
"question": "Where will be located the next international yearly Kotlin conference?",
"answer": "Lille, France",
"answerId": 1,
"id": 10,
"correctAnswerId": 3
}
],
"score": 1,
"nickname": "user-424"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,47 +12,149 @@ post {

body:json {
{
"responses": [
{
"question": "What is the primary goal of Kotlin Multiplatform?",
"answer": "To share code between multiple platforms"
},
{
"question": "How does Kotlin Multiplatform facilitate code sharing between platforms?",
"answer": "By sharing business logic and adapting UI"
},
{
"question": "Which platforms does Kotlin Multiplatform support?",
"answer": "Android, iOS, and web"
},
{
"question": "What is a common use case for Kotlin Multiplatform?",
"answer": "Developing a cross-platform app"
},
{
"question": "What is a shared code module in Kotlin Multiplatform called?",
"answer": "Shared module"
},
{
"question": "How does Kotlin Multiplatform handle platform-specific implementations?",
"answer": "Through expect and actual declarations"
},
{
"question": "What languages can be interoperable with Kotlin Multiplatform?",
"answer": "Java, JavaScript, Swift"
},
{
"question": "What tooling supports Kotlin Multiplatform development?",
"answer": "IntelliJ IDEA, Android Studio"
},
{
"question": "What is the benefit of using Kotlin Multiplatform for mobile development?",
"answer": "Code reuse and sharing"
},
{
"question": "How does Kotlin Multiplatform differ from Kotlin Native and Kotlin/JS?",
"answer": "Kotlin Multiplatform allows sharing code between different platforms using common modules."
"responses": [
{
"question": "What is the primary goal of Kotlin Multiplatform?",
"answer": "To build only Android applications",
"answerId": 1,
"id": 1,
"correctAnswerId": 4
},
{
"question": "How does Kotlin Multiplatform facilitate code sharing between platforms?",
"answer": "By writing separate code for each platform",
"answerId": 1,
"id": 2,
"correctAnswerId": 3
},
{
"question": "Which platforms does Kotlin Multiplatform support?",
"answer": "Only web applications",
"answerId": 1,
"id": 3,
"correctAnswerId": 3
},
{
"question": "What is a common use case for Kotlin Multiplatform?",
"answer": "Building a desktop-only application",
"answerId": 1,
"id": 4,
"correctAnswerId": 4
},
{
"question": "Which naming of KMP is deprecated?",
"answer": "Kodee multiplatform",
"answerId": 1,
"id": 5,
"correctAnswerId": 4
},
{
"question": "How does Kotlin Multiplatform handle platform-specific implementations?",
"answer": "By automatically translating code",
"answerId": 1,
"id": 6,
"correctAnswerId": 4
},
{
"question": "At which Google I/O, Google announced first-class support for Kotlin on Android?",
"answer": "2017",
"answerId": 1,
"id": 7,
"correctAnswerId": 1
},
{
"question": "What is the name of the Kotlin mascot?",
"answer": "Kotee",
"answerId": 1,
"id": 8,
"correctAnswerId": 4
},
{
"question": "The international yearly Kotlin conference is called...",
"answer": "KotlinKonf",
"answerId": 1,
"id": 9,
"correctAnswerId": 3
},
{
"question": "Where will be located the next international yearly Kotlin conference?",
"answer": "Lille, France",
"answerId": 1,
"id": 10,
"correctAnswerId": 3
},
{
"question": "What is the primary goal of Kotlin Multiplatform?",
"answer": "To build only Android applications",
"answerId": 1,
"id": 1,
"correctAnswerId": 4
},
{
"question": "How does Kotlin Multiplatform facilitate code sharing between platforms?",
"answer": "By writing separate code for each platform",
"answerId": 1,
"id": 2,
"correctAnswerId": 3
},
{
"question": "Which platforms does Kotlin Multiplatform support?",
"answer": "Only web applications",
"answerId": 1,
"id": 3,
"correctAnswerId": 3
},
{
"question": "What is a common use case for Kotlin Multiplatform?",
"answer": "Building a desktop-only application",
"answerId": 1,
"id": 4,
"correctAnswerId": 4
},
{
"question": "Which naming of KMP is deprecated?",
"answer": "Kodee multiplatform",
"answerId": 1,
"id": 5,
"correctAnswerId": 4
},
{
"question": "How does Kotlin Multiplatform handle platform-specific implementations?",
"answer": "By automatically translating code",
"answerId": 1,
"id": 6,
"correctAnswerId": 4
},
{
"question": "At which Google I/O, Google announced first-class support for Kotlin on Android?",
"answer": "2017",
"answerId": 1,
"id": 7,
"correctAnswerId": 1
},
{
"question": "What is the name of the Kotlin mascot?",
"answer": "Kotee",
"answerId": 1,
"id": 8,
"correctAnswerId": 4
},
{
"question": "The international yearly Kotlin conference is called...",
"answer": "KotlinKonf",
"answerId": 1,
"id": 9,
"correctAnswerId": 3
},
{
"question": "Where will be located the next international yearly Kotlin conference?",
"answer": "Lille, France",
"answerId": 1,
"id": 10,
"correctAnswerId": 3
}
],
"score": 1,
"nickname": "user-100"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rootProject.name = "com.worldline.training.quiz-collector"
rootProject.name = "com.worldline.training.ktor_quiz_collector"
Loading

0 comments on commit 486f5fc

Please sign in to comment.