-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Added #16956: API Endpoint to Retrieve Current Snipe-IT Version #16957
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
base: develop
Are you sure you want to change the base?
Added #16956: API Endpoint to Retrieve Current Snipe-IT Version #16957
Conversation
I think we already have a version endpoint. Lines 1323 to 1328 in 8a44144
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for making this! But @snipe is right - we do already have this - but that being said, I'm totally fine with adding the additional information that you wanted - if you can add it to the existing endpoint in-line with the version that we're already returning, we'll be happy to take it. Thank you!
You’re right, I totally overlooked this, but I’ve made the changes now, so it should be all good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can pull that new controller tho?
It depends on what we want to implement in this API endpoint later on, but I can remove it for now if necessary. |
I'm not sure what you mean. The API endpoint already exists, you're just adding more data to it. |
'parameters' => ['setting' => 'setting_id'], | ||
] | ||
); // end settings API | ||
)->name('api.settings.backups.download'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need this? We don't allow updating most of the settings via API.
Description
This PR introduces a new API endpoint
/settings/version
that allows clients to retrieve the currently installed Snipe-IT version.The goal is to support automated update workflows and reduce the need for manual version checks.
This feature is especially useful for system administrators and integration scripts that need to validate or report the current installation state before applying updates or triggering other actions.
Key Features:
settings
namespace:GET /api/v1/settings/version
Fixes #16956
Attached below is an example of how the resulting output would look like:
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
The implementation has been tested through the following methods:
Test Configuration:
Checklist: