Add a read endpoint for application settings in the API #10950
Closed
danmt
started this conversation in
Feature Requests
Replies: 1 comment
-
|
Closing this one as its not released yet but its part of the next branch |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Application settings (
is_static,is_auto_deploy_enabled,is_force_https_enabled, build flags, GPU options, and so on) can be updated through the API viaPATCH /api/v1/applications/{uuid}, but there is no dedicated endpoint to read them back. On the current stable release the application response does not include them at all, so after writing a setting there is no way to confirm the resulting state. Onnextthey are only available embedded in the full application payload.I am building an external tool that needs to check an application's configuration before deciding whether to trigger a deployment, and right now it has to track that state on its own.
Expected behavior
A read-only endpoint that returns the settings record of a single application:
GET /api/v1/applications/{uuid}/settingsusing the same authentication and team scoping as
GET /api/v1/applications/{uuid}.Acceptance criteria
readtoken ability; 401 without a token, 404 for unknown applications or applications belonging to another team.I have a patch ready and will open a pull request for this.
Beta Was this translation helpful? Give feedback.
All reactions