Skip to content

battorydev/springboot-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Job Data Repository

Requirements

  • Java 17

Main Class

io.github.battorydev.springboot.demo.DemoApplication

REST Endpoint

GET /job_data

Returns all job data.

Request Parameter

  • field - specify the fields to return.
    Filterable column: job title, salary, gender

  • condition - apply query condition. Filterable field and operation:

    • title operand: =
    • salary operand: =, >=, >, <=, <
    • gender operand: =
  • sort - field to sort. Sortable fields: title, salary

  • sort_type - Sort order. ASC (default) or DESC

Sample URL request

Documentation (Swagger)

http://localhost:8080/swagger-ui/index.html

Test Cases

  • JobDataControllerTests#givenTitleAndSalaryField_whenGetJobData_showTitleAndSalaryOnly
  • JobDataControllerTests#givenConditionSalaryGraterThan_whenGetJobData_returnJobSalaryGreaterThan
  • JobDataControllerTests#givenSortAndSortType_whenGetJobData_returnSortedData

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages