Springboot RESTful webservice to retrieve data from MySQL database. This webservice sends responses in JSON format.
JSON output generated by the webservice:
[{"pizzaId":0,"name":"Vege Pizza","description":"Vegetable pan pizza","price":2150.24,"imageUrl":"http://192.168.8.100/pizzaloop-images/01.png"},{"pizzaId":1,"name":"Cheese Pizza","description":"Cheese pan pizza","price":1750.0,"imageUrl":"http://192.168.8.100/pizzaloop-images/02.png"},{"pizzaId":2,"name":"Seven Cheese","description":"Extra cheese pizza for pizza lover","price":2450.5,"imageUrl":"http://192.168.8.100/pizzaloop-images/03.png"}]
You have to save images in a directory located in your web server and update the image_url column in the database table accordingly with the correct image URLs. Database table structure: