Join Slack
Communities
Powered by
where can i see/ read more about the adapter gener...
# http4k
o
Ollie
05/02/2024, 8:06 AM
where can i see/ read more about the adapter generation in http4k-connect?
d
dave
05/02/2024, 8:15 AM
There is an example here:
https://github.com/http4k/http4k-connect-examples/tree/master/custom-adapter-and-fake
o
Ollie
05/02/2024, 8:26 AM
yeah, that's cool. I'm looking for the adapter generation, rather than defining an adapter
d
dave
05/02/2024, 8:27 AM
When you say "adapter generation" what do you mean?
dave
05/02/2024, 8:28 AM
KSP will generate the various extension methods for you, but the rest of the adapters are hand written really
o
Ollie
05/02/2024, 8:30 AM
ahh, sorry. I glossed over the Http companion stuff. This is what I was looking for:
https://github.com/http4k/http4k-connect-examples/blob/master/custom-adapter-and-fake/src/main/kotlin/adapter/HttpExpensesSystem.kt#L13
Ollie
05/02/2024, 8:30 AM
I thought there was something that did that for you!
d
dave
05/02/2024, 8:31 AM
Nope. There is an open issue to generate adapters from smithy spec files, but there's been no work done on it
Open in Slack
Previous
Next