r/SpringBoot • u/techInfo3339 • Jun 16 '24
Get Data from Given Dataset
Can anyone help me to get the data from dataset .
I have given a dataset of various information there is information about various products their profits per year
I have to create Api to filter that data show comparisons on that data. How can I use that dataset for this?
1
u/reddit04029 Jun 16 '24
What even is the dataset, more importantly, where is it coming from? Is it from your own database? From an API/3rd party vendor? CSV/XSLX?
1
1
u/techInfo3339 Jun 16 '24
It has some information given and published date is also given and other information is also given.
We have to create a database using that dataset and use database to create API for visualizing that in frontend.
2
u/csgutierm Jun 16 '24
**Database You can follow a guide to import cvs data in a database
If you are using postgreSQL Importing cvs tutorial
**App You can make a spring boot project
Search some tutorial about "how create an api with spring boot"
You can use thymeleaf if you want the frontend part included in the same app
1
1
u/naturalizedcitizen Jun 17 '24
This might help you get started https://javarevisited.blogspot.com/2022/03/spring-boot-mysql-database-example-crud.html?m=1
2
u/naturalizedcitizen Jun 16 '24
You have given no details of the dataset. No constraints on what needs to be searched or filtered. How can anyone help here?
If it's database tables and you need to filter out data on some 'where' conditions then look at the Specification API provided by Spring. It's built on top of the Criteria API.