-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sraw
committed
Mar 1, 2017
1 parent
0814c7d
commit 088f01f
Showing
5 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# file GENERATED by distutils, do NOT edit | ||
setup.cfg | ||
setup.py | ||
http_api_exporter/Log_helper.py | ||
http_api_exporter/__init__.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from http_api_exporter import * | ||
|
||
def test_function_no_params(): | ||
return { | ||
"result" : True | ||
} | ||
|
||
def test_function_no_return(): | ||
pass | ||
|
||
def test_function_params(paramone, paramtwo): | ||
return { | ||
"result" : True | ||
} | ||
|
||
app = ApiHttpServer() | ||
app.bind(diction = { | ||
"test_1" : test_function_no_params, | ||
"test_2" : test_function_no_return, | ||
"test_3" : test_function_params | ||
}) | ||
app.start(8080) |