Slide 60
Slide 60 text
Hands-on time!
Implement endpoints for CRUD operations
@Test
fun `get all data`(): Unit = runBlocking {
...
}
@Test
fun `post data instance`(): Unit = runBlocking {
...
}
@Test
fun `put data instance`(): Unit = runBlocking {
...
}
@Test
fun `delete data instance`(): Unit = runBlocking {
...
}
@Serializable
data class User(
val userId: Int,
val userType: UserType,
val displayName: String,
val link: String,
val aboutMe: String? = null
)
enum class UserType {
REGISTERED,
MODERATOR,
}
Implement these tests
git branch
* branch01