AlwaysVinyl API - Simple API to test my capabilities as a Back-End Engineer.
Simple API to test my capabilities as a Back-End Engineer.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
*Docker is only necessary if you want to build and run the project through a container
Clone the repository
git clone https://github.com/roqmarcelo/always-vinyl.git
Go to the project folder
cd always-vinyl
Build the project
mvn clean package
And then run
mvn spring-boot:run
Or if you prefer to run with Docker
docker build -t always-vinyl .
docker run -p 8080:8080 always-vinyl
To run only the tests
mvn test
This will run all unit tests and produce a coverage report located at target/jacoco-report/index.html
To see detailed information about the resources go to http://localhost:8080/swagger-ui.html with project running.
Albums are identified by their ids, which are unique integers, and live under /albums/<id>
.
Find Albums
Find Album By Id
Sales are identified by their ids, which are unique integers, and live under /sales/<id>
.
Find Sales
Find Sale By Id
Create Sale
{
"items": [
{
"albumId": 15
},
{
"albumId": 83
},
{
"albumId": 2
},
{
"albumId": 192
}
]
}