Skip to content
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

Implement Vehicle Measurement API operation #123

Merged
merged 13 commits into from
Jan 1, 2025

Conversation

mthmulders
Copy link
Owner

@mthmulders mthmulders commented Dec 7, 2024

Related to #112


For more details, open the Copilot Workspace session.

* Add `runtime/src/main/liberty/config/localhost.p12` and `runtime/src/main/liberty/config/server.env`
* **Vehicle.java**
  - Rename `hasAuthorisationWithHashedKey` method to `hasAuthorisationWithKey`
  - Add logic to hash the raw key before checking authorization

* **VehicleTest.java**
  - Update tests to use `hasAuthorisationWithKey` method

* **MeasurementMapper.java**
  - Modify `toMeasurement` method to include `Vehicle` parameter

* **MeasurementResource.java**
  - Update authorization check to use raw API key
  - Pass `Vehicle` to `MeasurementMapper` when creating `Measurement`
@mthmulders mthmulders force-pushed the implement-vehicle-measurement-api-1 branch from 59fdbbf to 8be655b Compare December 8, 2024 20:53
@mthmulders mthmulders force-pushed the implement-vehicle-measurement-api-1 branch from 55f6158 to 0384171 Compare December 19, 2024 21:08
@mthmulders mthmulders force-pushed the implement-vehicle-measurement-api-1 branch from 1e0c24f to d4594ac Compare January 1, 2025 09:49
@mthmulders mthmulders merged commit 197b5f2 into main Jan 1, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant