Adding JSON to my REST API in Apache Camel [Code-along]

preview_player
Показать описание
I started to build a little API for SPORTS in Camel, and wanted to show you how you can add support for reading and writing JSON, which means you can get Camel to convert implicitly to and from Java objects. Yasss! You can use Camel's REST DSL and the "bindingMode" feature to do all this.

Sections of the video, in case you want to go straight to a spot:

00:12 Introducing the setup
00:54 Testing the REST API with Insomnia
01:56 Enabling bindings (let's create some JSON)
03:21 Working with JSON in the request payload
05:51 Converting JSON into other objects, like Plain Old Java Objects (POJOs)
09:35 Returning JSON from our REST API

Music:
Oui Lele - By The Sea

Рекомендации по теме
Комментарии
Автор

For put endpoint also it is same as post? We would need one param and in the body the records to be updated for that id in the param?

kanikachhabra
Автор

Nice runthrough! I think servlet is now deprecated in newer versions as it hasn't been updated in a while.

boddahboy
Автор

Hello, can you do an API REST integration with MySQL?
Did you have any tutorial of this?

danielarriaga
Автор

Hi Tom, thank you very much for the video! May I ask how I can post a multipart/mixed message instead of json to the endpoint?

Leon-xgzj
Автор

Hi, Tom thank you very much for this vedio. Please make more vedios on Apache Camel with Springboot

mandadapukalyani
Автор

can you do one with a timer going to a log file please?

StuartWinchesterG
Автор

Hi Tom! Thanks for your videos! I tried to reproduce what you did there and I have no clue how to reach my service. The log says that caml-k-integrations listens on 0.0.0.0:8080 but I can't reach it with localhost. It's a mystery for me T.T I really hope you can give me a clue how to reach my service with a get/post request! Thanks in advance :)

dariobocale
welcome to shbcf.ru