You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I wanted to ask a question regarding StringValues. I have to send an array of id's as formdata.
This is my implementation:
val groups: StringValues = StringValuesSingleImpl(
caseInsensitiveName = false,
name = "groupIds",
values = groupIds
)
val bodyParameters = Parameters.build {
appendAll(groups)
}
val result = provider.eventApi.addGroups(
eventId = eventId,
authToken = authHeader.value,
body = FormDataContent(bodyParameters)
)
where eventId: String, groupIds: List<String>
THE API works, if I send 2 or more data inside the groupIds field. But the server get's a different format if there is only 1 value in the list. Any advice?
Do you have questions on how to build the Ktorfit project? Feel free to ask them here.
I wrote a general overview over the components here
The text was updated successfully, but these errors were encountered: