How iamsudhirv/incubytetest works
Incubyte Salary Management is an API-only Rails application for employee records, salary calculations, and salary metrics. The principal workflow is an API request routed to a v1 controller, which uses the Employee model to read or change employee data and returns JSON. Salary rules and country/job-title aggregations are model responsibilities; SQLite provides persistence. The graph reflects documented endpoints and the sampled routes, controllers, and model. Other Rails runtime details and unsampled implementation are not expanded.
Main entry points: employee.rb Employee rules · routes.rb V1 routes · employees_controller.rb Employee API · salary_metrics_controller.rb Metrics API
Components 10
API
- V1 routes
config/routes.rb - Employee API
app/controllers/api/v1/employees_controller.rb - Metrics API
app/controllers/api/v1/salary_metrics_controller.rb - API base
app/controllers/application_controller.rb
Salary domain
- Employee rules
app/models/employee.rb - Record base
app/models/application_record.rb
Persistence
- SQLite database
db/schema.rb
Rails runtime
- Application config
config/application.rb - Boot setup
config/boot.rb
Other components
- API client
Connections 10
- API client → V1 routes: requests endpoints
README.md - V1 routes → Employee API: dispatches employee routes
config/routes.rb - V1 routes → Metrics API: dispatches metric routes
config/routes.rb - Employee API → Employee rules: reads and updates
app/controllers/api/v1/employees_controller.rb - Metrics API → Employee rules: queries metrics
app/controllers/api/v1/salary_metrics_controller.rb - Employee API → API base: inherits from
app/controllers/api/v1/employees_controller.rb - Metrics API → API base: inherits from
app/controllers/api/v1/salary_metrics_controller.rb - Employee rules → Record base: inherits from
app/models/employee.rb - Employee rules → SQLite database: persists employee data
README.md - Application config → Boot setup: loads boot setup
config/application.rb