fix response handling

This commit is contained in:
Thomas Boksberger committed 2026-04-03 12:32:00 +02:00
1 parent d2048ea5b7
commit cf500a75d1
3 files changed
+11 -2

No files matched your search

@@ -68,7 +68,7 @@ class AnyTypeApi(
bearerAuth(apiKey)
setBody(CreateObjectRequest(name = title, body = details, typeKey = "ot-task"))
}
response.body<CreateObjectResponse>().objectId
response.body<CreateObjectResponse>().obj.id
}
fun close() = http.close()
@@ -1,8 +1,9 @@
package ch.ergon.anytask.api.dto
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class CreateObjectResponse(
val objectId: String,
@SerialName("object") val obj: CreatedObject,
)
@@ -0,0 +1,8 @@
package ch.ergon.anytask.api.dto
import kotlinx.serialization.Serializable
@Serializable
data class CreatedObject(
val id: String,
)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.