API to provide a product's current price given its brand on a specific date.
- Java 17
- Maven
- IDE (e.g., IntelliJ IDEA, Eclipse)
-
Clone the repository:
git clone https://github.com/albertorg0/prices.git
-
Navigate to the project directory:
cd prices
-
Build the project:
mvn clean install
-
Run the application:
mvn spring-boot:run
The application will be accessible at http://localhost:8080.
- Endpoint:
/prices
- Method:
GET
- Parameters:
applicationDate
(String): The date and time of the price application (e.g., "2020-06-14T10:00:00").productId
(Long): Identifier of the product.brandId
(Long): Identifier of the brand.
- Response:
- JSON representation of the pricing information, including product and brand identifiers, price list, application dates, and final price.
Run the following command to execute tests:
mvn test
- Spring Boot - Framework for building Java-based enterprise applications.
- H2 Database - In-memory database for development and testing.
- Alberto Rojas
This Project is licensed under the MIT License.