pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/JcoderPaul/NeoFlexTask

ub.githubassets.com/assets/primer-70be7debc79a8eff.css" /> GitHub - JcoderPaul/NeoFlexTask: Vacation Pay Calculator - simple spring boot application (v. ReadMe.md) · GitHub
Skip to content

JcoderPaul/NeoFlexTask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

"Калькулятор отпускных"


Микросервис на SpringBoot + Java 11 c одним API: GET "/calculacte"

Приложение принимает среднюю зарплату за 12 месяцев и количество дней отпуска - отвечает суммой отпускных, которые придут сотруднику.

Доп. задание: При запросе также можно указать точные дни ухода в отпуск, тогда должен проводиться рассчет отпускных с учётом праздников и выходных.

Стек: Тестирование: Документирование:
Java Testcontainers Swagger
SpringBoot JUnit
AssertJ
Mockito
REST Assured

Код покрыт тестами на: Class 100% (16/16), Method 90% (40/44), Line 98% (240/244)


Примеры запросов:

  • С указанием двух параметров: средней зарплаты и количества дней отпуска:

      http://localhost:8080/api/calculacte?avgAmount=50000&vacationDays=14
    
  • С указанием трех параметров: средней зарплаты, количества дней отпуска и даты ухода в отпуск:

      http://localhost:8080/api/calculacte?avgAmount=50000&vacationDays=14&firstDate=2024-11-11 
    

Для работы со Swagger: http://localhost:8080/swagger-ui/index.html


Материалы для ознакомления с сутью вопроса:

Пример: Калькулятор от "Контур.Бухгалтерия"

About

Vacation Pay Calculator - simple spring boot application (v. ReadMe.md)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy