Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Implement APIs from the Other section #2

Merged
merged 1 commit into from
Apr 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Work on API implementation still in progress.
| User | + |
| Admin | +- |
| Preferences | + |
| Other | - |
| Other | + |

## Issue tracker

Expand Down
19 changes: 19 additions & 0 deletions grafana_api/grafana_face.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,3 +583,22 @@ def delete_api_key(self, id):
delete_api_key_path = '/auth/keys/%s' % (id)
r = self.api.DELETE(delete_api_key_path)
return r

# Other section
def get_frontend_settings(self):
"""

:return:
"""
get_frontend_settings_path = '/frontend/settings'
r = self.api.GET(get_frontend_settings_path)
return r

def get_login_ping(self):
"""

:return:
"""
get_login_ping_path = '/login/ping'
r = self.api.GET(get_login_ping_path)
return r
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
long_description = file.read()

setup(name='grafana_api',
version='0.2.6',
version='0.2.7',
description='Yet another Python library for Grafana API',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down