Menu

1 / 2

A YAML-Driven Multi-Channel RestClient β€” The Story of Building mido-client

DEV Community: springΒ·skaca8Β·6 months ago
#fX4D4in7
#dev#client#mido#article#englishlanguage
Long article (1565 words) β€” no AI summary yet.
Reading 0:00
15s threshold

πŸ‘‹ Hi! I'm Hyunjun, a backend developer based in South Korea with 14 years of experience.

I built a Spring Boot 3.2+ open-source library that lets you declare and manage external API channels entirely from YAML.

It started in the travel industry

The thing is, every OTA has different API specs. One pattern that shows up often is when the lookup host and the booking/payment host are separated .

https://api-search.someota.com β†’ product lookup, price check

https://api-booking.someota.com β†’ actual booking and payment

Same OTA, but two endpoints β€” different auth tokens, different timeout policies.

Once you have 10 or 20 such OTAs, the problem starts in earnest.

Similar-looking @Bean declarations grow with the channel count β€” and double again for any channel with dual endpoints β€” honestly piling up.

The limits of RestClient + @bean

My first attempt was the obvious one: register RestClient (introduced in Spring Boot 3.2) as @Bean s.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.