- Java 17
io.github.battorydev.springboot.demo.DemoApplication
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
- GET http://localhost:8080/job_data
- GET http://localhost:8080/job_data?fields=title,gender,salary
- GET http://localhost:8080/job_data?fields=title,salary&sort=salary
- GET http://localhost:8080/job_data?fields=title,salary&sort=salary&sort_type=DESC
- GET http://localhost:8080/job_data?fields=title,gender,salary&sort=title&condition=salary%3E=10000000
http://localhost:8080/swagger-ui/index.html
- JobDataControllerTests#givenTitleAndSalaryField_whenGetJobData_showTitleAndSalaryOnly
- JobDataControllerTests#givenConditionSalaryGraterThan_whenGetJobData_returnJobSalaryGreaterThan
- JobDataControllerTests#givenSortAndSortType_whenGetJobData_returnSortedData