Skip to content

Test task from SKYPRO. RESTful app in Java 17, Spring Boot, PostgreSQL and Docker for automating socks warehouse via dedicated endpoints.

Notifications You must be signed in to change notification settings

Lexxkit/SocksStockRESTapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SocksStockREST App

Test task from SKYPRO. Simple RESTful app for automating socks warehouse via dedicated endpoints.

Run

Project uses containerization with Docker Compose for PostgreSQL.

In IDE:
  1. clone git repository https://github.com/Lexxkit/SocksStockRESTapi.git
  2. run Docker on your machine
  3. open 'docker-compose.yaml'  in project and run it OR type 'docker-compose up' in a terminal
  4. run 'SocksStockAutApplication'

Documentation

Stack

Java 17
Spring Boot 2
Maven
SpringDoc OpenAPI UI
Mapstruct
Lombok
Liquibase
PostreSQL

Functionality

Create an application to automate the accounting of socks in the store. The storekeeper should be able to:

  • record the income and outcome of socks;
  • find out the total amount of socks of a certain color and composition at a given time.

The application's external interface is represented as an HTTP API (REST).

List of HTTP URL methods
POST /api/socks/income

Records socks income

POST /api/socks/outcome

Records socks outcome

GET /api/socks?color=red&operation=moreThan&cottonPart=90

Returns the total number of socks in stock that match the query criteria passed in the parameters.

About

Test task from SKYPRO. RESTful app in Java 17, Spring Boot, PostgreSQL and Docker for automating socks warehouse via dedicated endpoints.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages