The project shows how we can make a rest api web service using Pedestal framework and Hug Sql. Currently this project has only two working endpoints.
/artists
: To get information about all the artists available in the table./artists/:artist-id
: To fetch the information of a particular artist.
- Make
.env
file in the root directory.DATABASE_SUB_NAME="//{{SQL_DATABASE_CURL}}:5432/{{SQL_DATABASE_NAME}}" DATABASE_USER_NAME="{{SQL_DATABASE_USERNAME}}" DATABASE_PASSWORD="{{SQL_DATABASE_PASSWORD}}"
- Start the application
lein run
.
- Print exceptions neatly
- Mocking/ testing