Skip to content

Instantly share code, notes, and snippets.

@ricardo-melo-martins
Last active September 1, 2023 14:09
Show Gist options
  • Save ricardo-melo-martins/3732d4dab37a161abab49c459097758c to your computer and use it in GitHub Desktop.
Save ricardo-melo-martins/3732d4dab37a161abab49c459097758c to your computer and use it in GitHub Desktop.
Python restful api created with Flask 2.3.x
#!/usr/bin/python
# -*- coding: utf-8 -*-
# app.py
# # part of https://gist.github.com/ricardo-melo-martins/3732d4dab37a161abab49c459097758c
from flask import Flask
app = Flask(__name__)
@app.route('/', methods=['GET'])
def hello():
return "Hello World!"
if __name__ == "__main__":
app.run(host='127.0.0.1', port=8080)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment