Dynamically generate RESTful APIs from static CSVs. Provides JSON
The simplicity with which CSV files can be created has made them the default data format for bulk data. It is comparatively more difficult to create an API to share the same data atomically and transactionally.
- JDK 17 or later
- Gradle 6.8+
- Download and unzip the source repository for this guide, or clone it using Git:
git clone
https://github.com/opencelium/csv2api - By default, the embedded server starts on
port 8080
but you are able to changeserver.port
property in csvtoapi/src/main/resources/application.yml - Go to root folder of the project
csvtoapi
and type commandgradle build
in terminal - Switching to
/build/libs
and then runningjava -jar artifactname
source
: the URL to the source CSV
All examples use data from HERE
http://[Csv2APIServer]:8080?source=https://people.sc.fsu.edu/~jburkardt/data/csv/deniro.csv