Skip to content

Commit

Permalink
Merge pull request #99 from rahlvers/master
Browse files Browse the repository at this point in the history
Add support for query to /redfish
  • Loading branch information
mraineri authored Apr 30, 2021
2 parents 4487e4a + 73757de commit 2c05852
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion emulator.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python2
#
# Copyright Notice:
# Copyright 2016-2019 DMTF. All rights reserved.
# Copyright 2016-2021 DMTF. All rights reserved.
# License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/Redfish-Interface-Emulator/blob/master/LICENSE.md

# Redfish Interface Emulator - main
Expand Down Expand Up @@ -337,6 +337,10 @@ def reset():
def index():
return render_template('index.html')

@g.app.route('/redfish')
def serviceInfo():
return render_template('service.json')

@g.app.route('/browse.html')
def browse():
return render_template('browse.html')
Expand Down
3 changes: 3 additions & 0 deletions templates/service.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"v1": "/redfish/v1/"
}

0 comments on commit 2c05852

Please sign in to comment.