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

Added assets endpoint for locations #15162

Merged
merged 2 commits into from
Jul 24, 2024
Merged

Conversation

snipe
Copy link
Owner

@snipe snipe commented Jul 24, 2024

This was never documented, and I'm not even sure if it ever existed, but we had a route for it. /locations/{id}/assets now returns a list of assets assigned to that location.

(This was tripping a rollbar, so I wanted to get rid of it.)

Copy link

what-the-diff bot commented Jul 24, 2024

PR Summary

  • Integration of AssetsTransformer and Asset Models into LocationsController
    The LocationsController now has integration for AssetsTransformer and Asset Models which allows the controller to handle the assets data more effectively.

  • New 'assets' Method in LocationsController
    A new 'assets' method has been added to the LocationsController. This method streamlines the handling of assets associated with specific locations.

  • Route Update in api.php
    The 'api.php' route configuration file has been updated. This is to incorporate the new 'assets' method from the LocationsController into the application's API interfaces.

  • Addition of New Test File: LocationsViewTest.php
    A new test file named 'LocationsViewTest.php' has been included in the testing suite. The file, which resides in 'tests/Feature/Locations/Api/', provides functional tests for the Locations API, ensuring accurate and reliable functionality.

Signed-off-by: snipe <[email protected]>
@snipe snipe merged commit 962ae52 into develop Jul 24, 2024
9 checks passed
@snipe snipe deleted the fixes/added_location_assets_endpoint branch July 24, 2024 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant