This file contains hidden or 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
from flask import Flask, request, jsonify | |
app = Flask(__name__) | |
data = {} | |
@app.route("/<name>", methods=['GET', 'POST']) | |
def endpoint(name): | |
if request.method == 'POST': | |
if name not in data: | |
data[name] = [] |
This file contains hidden or 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
#!/usr/bin/python3 | |
""" | |
Author: Leo Vidarte <http://nerdlabs.com.ar> | |
This is free software, | |
you can redistribute it and/or modify it | |
under the terms of the GPL version 3 | |
as published by the Free Software Foundation. |
This file contains hidden or 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
#!/usr/bin/python3 | |
""" | |
Author: Leo Vidarte <http://nerdlabs.com.ar> | |
This is free software, | |
you can redistribute it and/or modify it | |
under the terms of the GPL version 3 | |
as published by the Free Software Foundation. |
This file contains hidden or 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
#!/usr/bin/python3 | |
""" | |
Author: Leo Vidarte <http://nerdlabs.com.ar> | |
This is free software, | |
you can redistribute it and/or modify it | |
under the terms of the GPL version 3 | |
as published by the Free Software Foundation. |
This file contains hidden or 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
#!/usr/bin/python3 | |
""" | |
Author: Leo Vidarte <http://nerdlabs.com.ar> | |
This is free software, | |
you can redistribute it and/or modify it | |
under the terms of the GPL version 3 | |
as published by the Free Software Foundation. |
This file contains hidden or 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
#!/usr/bin/python3 | |
""" | |
Author: Leo Vidarte <http://nerdlabs.com.ar> | |
This is free software, | |
you can redistribute it and/or modify it | |
under the terms of the GPL version 3 | |
as published by the Free Software Foundation. |
This file contains hidden or 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
#!/usr/bin/python3 | |
""" | |
Author: Leo Vidarte <http://nerdlabs.com.ar> | |
This is free software, | |
you can redistribute it and/or modify it | |
under the terms of the GPL version 3 | |
as published by the Free Software Foundation. |
This file contains hidden or 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
#!/usr/bin/python3 | |
""" | |
Author: Leo Vidarte <http://nerdlabs.com.ar> | |
This is free software, | |
you can redistribute it and/or modify it | |
under the terms of the GPL version 3 | |
as published by the Free Software Foundation. |
This file contains hidden or 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
#!/usr/bin/python3 | |
""" | |
Author: Leo Vidarte <http://nerdlabs.com.ar> | |
This is free software, | |
you can redistribute it and/or modify it | |
under the terms of the GPL version 3 | |
as published by the Free Software Foundation. |
This file contains hidden or 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
#!/usr/bin/python3 | |
""" | |
Author: Leo Vidarte <http://nerdlabs.com.ar> | |
This is free software, | |
you can redistribute it and/or modify it | |
under the terms of the GPL version 3 | |
as published by the Free Software Foundation. |