Skip to content

Comments

Fix me#7

Open
Tozarin wants to merge 1 commit intomainfrom
api-change-downgrade
Open

Fix me#7
Tozarin wants to merge 1 commit intomainfrom
api-change-downgrade

Conversation

@Tozarin
Copy link
Collaborator

@Tozarin Tozarin commented Nov 1, 2025

No description provided.

Comment on lines +751 to +752
# Configurable Newsfeed API version (default: "v1")
NEWSFEED_API_VERSION = 'v1'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NEWSFEED_API_VERSION надо предварительно пытаться получить из configuration

Comment on lines +755 to +761
if NEWSFEED_API_VERSION == 'v1':
NEWSFEED_URL = 'https://api.netbox.oss.netboxlabs.com/v1/newsfeed/'
elif NEWSFEED_API_VERSION == 'v2':
NEWSFEED_URL = f'https://api.netbox.oss.netboxlabs.com/newsfeed/?version=2'
else:
# Fallback to base URL for any other version
NEWSFEED_URL = 'https://api.netbox.oss.netboxlabs.com/newsfeed/'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Базовый путь https://api.netbox.oss.netboxlabs.com/ надо вынести в отдельную переменную

Signed-off-by: Старцев Матвей <tozarin@yandex.ru>
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