项目作者: roqmarcelo

项目描述 :
AlwaysVinyl API - Simple API to test my capabilities as a Back-End Engineer.
高级语言: Java
项目地址: git://github.com/roqmarcelo/always-vinyl.git
创建时间: 2019-07-27T19:27:57Z
项目社区:https://github.com/roqmarcelo/always-vinyl

开源协议:

下载


Build Status
Code Coverage

AlwaysVinyl API

Simple API to test my capabilities as a Back-End Engineer.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Java 8
  • Maven
  • Git
  • Docker*

*Docker is only necessary if you want to build and run the project through a container

Installing

Clone the repository

  1. git clone https://github.com/roqmarcelo/always-vinyl.git

Go to the project folder

  1. cd always-vinyl

Build the project

  1. mvn clean package

And then run

  1. mvn spring-boot:run

Or if you prefer to run with Docker

  1. docker build -t always-vinyl .
  2. docker run -p 8080:8080 always-vinyl

Running the tests

To run only the tests

  1. mvn test

This will run all unit tests and produce a coverage report located at target/jacoco-report/index.html

Resources

To see detailed information about the resources go to http://localhost:8080/swagger-ui.html with project running.

Albums

Albums are identified by their ids, which are unique integers, and live under /albums/<id>.

Sales

Sales are identified by their ids, which are unique integers, and live under /sales/<id>.

Built With

Authors

Notes

  • All the endpoints were made public intentionally
  • All the api resources have a limit of 50 calls per second (applied request throttling to make the api more resilient)
  • A pre-built docker image of this project is available at Docker Hub