-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented API endpoint for getting employee count ranges #52
Conversation
…service' to support the implementation of this route. added a test case for the new service.
…unt-range' to be consistent with the '/file-upload' endpoint.
… the default value. removed the 'expiry_date' column from insert statements (so nulls are inserted)
…null expiry_date (if effective_date is valid)
…employee-count-ranges endpoint with auth steps
…d some initial tests for the /employee-count-ranges endpoint
[Pay Transparency Backend] Kudos, SonarCloud Quality Gate passed! 0 Bugs 92.9% Coverage The version of Java (11.0.17) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. |
[Pay Transparency Frontend] Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information The version of Java (11.0.17) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. |
Description
Added a new API endpoint to get employee count ranges (/api/v1/codes/employee-count-ranges). The new endpoint requires users to be authenticated and expects a valid "frontend token" in the HTTP Authorization header.
The new API endpoint is defined in src/v1/routes/code-routes.ts. It is suggested that the same file be used to define other endpoints used to access static content (such as NAICS codes).
"Under the hood" the implementation of the new API endpoint makes a query to the database table pay_transparency.employee_count_range. The PR includes a database migration to insert preliminary data into this table.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist